Weak Contribution (ODEs and DAEs)
Another option is to enter equations in the weak form using the Weak Contribution node (). This can be convenient in advanced modeling because it controls the test variables multiplying the equations. Wherever a test function of a state variable appears (in the Global Equations node or elsewhere in the model), whatever it multiplies ends up in the same equation in the discrete system. To add a Weak Contribution, either right-click The Global ODEs and DAEs Interface and select it from the context menu or click Weak Contribution on the toolbar.
Weak Contribution
Enter the expression that contains the weak formulation in the Weak expression field.
See The Wall Distance Interface for an example of how to write an ODE using a weak formulation.