"shapefuns" block¶
Custom shape functions are configured in the JSON block "shapefuns".
json
{
"shapefuns": {
"bulk": {
"type": "default"
},
"line": {
"type": "default"
},
"surface": {
"type": "user1",
"functions": 4
}
}
}
All three subblocks are optional. If a subblock is omitted, AsFem keeps the corresponding shape function as "default".
Available subblocks¶
"bulk": bulk-element shape functions."line": line shape functions. This is only valid when the mesh dimension is at least2."surface": surface shape functions. This is only valid when the mesh dimension is at least3.
Options inside each shape-function subblock¶
"type": required if the subblock is present. Supported values are listed below."functions": required positive integer for user-defined types, and not allowed for"default".
Supported shape-function types¶
text
default
user1
user2
user3
user4
user5
The current parser only reads "type" and "functions" here. Extra fields such as "description" from test_input/input-template.json are ignored.