cached_bem_solver

This solver loads precomputed charge densities from .kbd files. If a name is provided it will load the surface container with this name from any file in the active directory (normally the KEMField cache directory). If only the hash is provided it will scan the KEMField cache for a solution with the same hash.

The solution must have been computed before (e.g. with the same geometry and another charge density solver), so that it is available in the cache.

XML element: <cached_bem_solver>
C++ type: KCachedChargeDensitySolver
Also available as: cached_charge_density_solver
Attributes

Attribute

Type

Description

hash

string

the hash value of the geometry and boundary values. A solution with the same hash values if present is the loaded from the cache directory. Be aware that the hash may depend on the machine and one might not find soludions that have been computed on another machine by the hash value.

name

string

the name of the surface container. It normally is the the combination of the word SurfaceContainer and underscore and the hash value (see example in the code). Try this to avoid comparisions of hash values which may differ from machine to machine. To get the hash values of the surface containers, run the InspectEMFile command on the .kbd file.

Example:

<cached_charge_density_solver
    name="SurfaceContainer_25630838769cd7b820865b2f7c245ef2"
    hash="25630838769cd7b820865b2f7c245ef2"
/>

Used as: