CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
Boundary conditions and source terms must be added using function already added to the functions dictionary contained in every PDE problem. The syntax to add a function to the dictionary is described in this section.
A similar pattern is used to define boundary conditions and source terms from an input string of characters. The boundary conditions and source terms are added internally, but it is easy to get the inputs from the text input file.
Add a source term from its definition in the dictionary is quite simple and you can add some extra options.
params
has the form <label> <dict_label> <options>
where label
is a name given to this source term, dict_label
is the dictionary function that will be set as source term, and options
can contain several TAG value
pairs;
Tag | Value type | Default value | Description |
---|---|---|---|
UNKNOWN | integer | – | Mandatory Id of the unknown on which the source term is added. Depends on the problem |
TYPE | One of DEFAULT , KTERM or IAPP | DEFAULT | Default is regular source term added to the equation. Kterm is term of which the Laplacian is added to the equation (thus multiplied by stiffness matrix in finite element, hence the name). IAPP is for cardiac source terms , ie stimulations, that are linked to ionic models. |
ATTRIBUTE(S) | list of integers | -1 | Where to apply the source term. If the unknown is already restricted to a region, this restriction is aleady taken into account. |
SCALE | real number | 1. | Multiplicative factor |
In a similar way
params
has the form <label> <bc_type> <dict_label> <options>
where label
is a name given to this boundary condition, <bc_type>
is either DIRICHLET
NEUMANN
or ROBIN
, dict_label
is the dictionary function that will be set as source term, and options
can contain several TAG value
pairs;
Tag | Value type | Default value | Description |
---|---|---|---|
UNKNOWN | integer | – | Mandatory Id of the unknown for which the boundary condition applies. Depends on the problem |
ATTRIBUTE(S) | list of integers | -1 | Where to apply the boundary condition. If the unknown is already restricted to a region, this restriction is aleady taken into account. |
SCALE | real number | 1. | Multiplicative factor |
VOLUMIC | no argument | Add this keyword for Dirichlet boundary conditions applied to volumic regions. The parameter has no effect on Robin and Neumann boundary conditions. | |
ROBINCOEFF | dict function name | – | Robin coefficient as in . is the function designated with <dict_label> . |
Here is an implementation example for a problem derived from HeatProblem.