gf_mdbrick_set — Modify a model brick object.
gf_mdbrick_set(b,'param', string name, mesh_fem MF,V | V) gf_mdbrick_set(b,'constraints', spmat H, vec R) gf_mdbrick_set(b,'constraints_rhs', spmat H, vec R) gf_mdbrick_set(b,'penalization_coef', scalar eps)
gf_mdbrick_set(b,'param',string name,list(MeshFem mf,V | V)) :
Change the value of a brick parameter. name
is the
name of the parameter. V
should contain the new
parameter value (vector or float). If a MeshFem is given,
V
should hold the field values over that MeshFem
(i.e. its last dimension should be gf_meshfem_get(mf,'nbdof') or 1 for
constant field).
gf_mdbrick_set(b,'penalization_epsilon',scalar eps) : Change the
penalization coefficient of a constraint brick. This is only
applicable to the bricks which inherit from the constraint brick, such
as the Dirichlet ones. And of course it is not effective when the
constraint is enforced via direct elimination or via Lagrange
multipliers. The default value of eps
is
1e-9.
gf_mdbrick_set(b,'constraints',mat H, vec R) : Set the constraints imposed by a constraint brick. This is only applicable to the bricks which inherit from the constraint brick, such as the Dirichlet ones. Imposes H.U=R.
gf_mdbrick_set(b,'constraints_rhs',mat H, vec R) : Set the right hand side of the constraints imposed by a constraint brick. This is only applicable to the bricks which inherit from the constraint brick, such as the Dirichlet ones.