model.weak()
Weak form equations.
Syntax
model.weak().create(<tag>);
model.weak(<tag>).weak(<wlist>);
model.weak(<tag>).weak(<pos>,<wepxr>);
model.weak(<tag>).intRule(<irlist>);
model.weak(<tag>).intRule(<pos>,<irule>);
model.weak(<tag>).condition(<condition>);
 
model.weak(<tag>).weak();
model.weak(<tag>).intRule();
model.weak(<tag>).condition();
Description
model.weak(<tag>) returns the weak form equations with tag <tag>.
model.weak().create(<tag>) creates weak form equations with tag <tag>.
model.weak(<tag>).weak(<wlist>) sets the equations. You can supply a single weak expression or a list of weak expressions. <wlist> is a string or a string array.
model.weak(<tag>).weak(<pos>,<wexpr>) sets the equations at position <pos> in the list.
model.weak(<tag>).intRule(<irlist>) assigns the integration rules to the weak form equations. The list of integration rules must have the same length as the list of equations, or be of length 1. In the latter case all weak expressions use the same integration rule.
model.weak(<tag>).intRule(<pos>,<irule>) sets the integration rule at position <pos> in the integration rule list.
  model.weak(<tag>).condition(<condition>) introduces conditional assembly. The feature is assembled if <condition> is true.
model.weak(<tag>).selection().named(<seltag>) assigns the weak equations to the named selection <seltag>.
model.weak(<tag>).selection().named(<seltag>) defines a local selection that assigns the weak equations to geometric entities. Before assigning a selection, the variable’s model must be set using model.variable(<tag>).model(<mtag>). Only the global selection and selections on a geometry in the model can be used. For a complete list of methods available under selection(), see Selections.
Example
Define the weak expressions u*test(u) and v*test(v) on the selection dom1, using the integration rule gp1 and the frame ref.
Code for Use with Java
model.weak().create("w1").selection().named("dom1");
model.weak("w1").intRule("gp1");
model.weak("w1").weak(new String[]{"u*test(u)","v*test(v)"});
Code for Use with MATLAB
model.weak.create('w1').selection.named('dom1');
model.weak('w1').intRule('gp1');
model.weak('w1').weak({'u*test(u)','v*test(v)'});
See Also
model.coeff(), model.shape()