WORK IN PROGRESS
Navigate: ← Abort Criteria | Overview | Multi-Level Simulations →
Force as a source term.
An example testcase can be found in examples/tutorials/tutorial_cases/tutorial_PIP_Force
.
To define a force that affects the whole domain one uses the glob_source
table.
--! [Source]
glob_source = {
force = {press_grad, 0.0, 0.0},
force_order = 2
}
--! [Source]
The force press_grad
has to be defined inside the variable
table.
variable = {
{
name = 'press_grad',
ncomponents = 1,
vartype = 'st_fun',
st_fun = press_grad
},
: st_fun = press_grad
refers to a lua-function defined somewhere else in
the lua file.
Next chapter: Multi-Level Simulations →