Equation Input

Functions related to the PDE expressions.

Main.Finch.weakFormMethod
weakForm(var, wf)

Write the weak form of the PDE in residual form. This should be an expression that is assumed to be equal to zero. var can be a variable or an array of variables. When using arrays, wf must also be an array of matching size. wf is a string expression or array of them. It can include numbers, coefficients, variables, parameters, indexers, and symbolic operators.

source
Main.Finch.conservationFormMethod
conservationForm(var, cf)

Write the integral conservation form of the PDE. This should be an expression that is assumed to be equal to the time derivative of the variable. Surface integrals for the flux are wrapped in surface(), and all other terms are assumed to be volume integrals for the source. Do not include the time derivative as it is implicitly assumed. var can be a variable or an array of variables. When using arrays, cf must also be an array of matching size. cf is a string expression or array of them. It can include numbers, coefficients, variables, parameters, indexers, and symbolic operators.

source
Main.Finch.printLatexMethod
printLatex(var)

Print a string of Latex formatted code for the symbolic layer form of the PDE. This is somewhat limited and needs to be updated to a more useful output.

source