gf_mdbrick_set
Synopsis
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)
Description
gf_mdbrick_set(b,'param', name, MF,V | V) : change the value of a brick parameter. V should contain the new parameter value. If a meshfem is given , V should hold the field values over that meshfem (i.e. its last dimension should be gf_mesh_fem_get(MF,'nbdof')).
gf_mdbrick_set(b,'constraints', H, 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 HU=R.
gf_mdbrick_set(b,'constraints_rhs', H, 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.
gf_mdbrick_set(b,'penalization_coef', 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.
