"elements" block¶
The current parser uses the JSON block name "elements". The old [elmts] text block is obsolete.
json
{
"elements": {
"elmt1": {
"type": "mechanics",
"dofs": ["ux", "uy"],
"domain": ["alldomain"],
"material": {
"type": "linearelastic",
"parameters": {
"E": 210.0,
"nu": 0.3
}
}
}
}
}
Each subobject such as "elmt1" or "elmt2" is one element block.
Options inside each element block¶
"type": required string. This is the element or physics model name."dofs": required array of DoF names. Every entry must already exist in the"dofs"block."domain": optional array of bulk domain names. If omitted, AsFem uses["alldomain"]."material": optional object. If present, it must contain"type", and it can also contain a"parameters"object. If omitted, AsFem keeps the element material asnulland prints a warning.
"domain" names must match the bulk physical names stored in the mesh. For imported meshes this usually means the physical volume/surface names defined in the mesh file.
There is no standalone "mates" block anymore. Materials are defined inline under each element block.
Supported element types¶
text
poisson
diffusion
thermal
mechanics
dynamics
allencahn
cahnhilliard
wave
kobayashi
laplace
scalarbodysource
stresscahnhilliard
stressdiffusion
allencahnfracture
miehefracture
diffusionacfracture
user1 ... user10