Settings for the Discretization Sections
There are two categories of discretization — a section on the physics interface node’s Settings window (described here) and adding a Discretization (Node) for global equation-based modeling. To enable the other settings beyond the element order and shape function type and to be able to add separate Discretization nodes, click the Show button () and select Advanced Physics Options.
The settings described here are:
Element Order and Shape Function Type
The PDE and weak form interfaces have different shape functions available with the associated element order (the order of the shape functions). The element order (or, more precisely, the order of the shape function) directly affects the number of degrees of freedom in the solution and the accuracy of the solution. Increasing the order of the elements roughly corresponds to a uniform mesh refinement. Most physics interfaces use Lagrange elements, which can be of order 1 to 5 (or 1 to 7 for the PDE and weak form interfaces), with 2 being the default order in most cases. Where serendipity elements are available (in the mathematics interfaces and the Solid Mechanics interface, for example, for element orders 2, 3, and, in some cases, 4), they can be more efficient than Lagrange elements of the same order (in terms of number of elements and the solution time) for some mesh element types (especially hexahedral meshes), but they can also be more sensitive to distorted mesh elements.
The software adapts the order of the numerical integration to the element orders for the physics in the model. Some physics interfaces use special element types or a reduced element order for some of the field variables. Select the Shape function type and the Element order as, in most cases, Linear, Quadratic, Cubic, Quartic, or Quintic (for order 1–5, respectively).
Table 16-2 is an overview of the available shape function types and the element orders supported.
Additional information is included Shape Functions and Element Types in the COMSOL Multiphysics Programming Reference Manual.
Discretization of Fluids
The following is an example of the choices of element order for Fluid Flow interfaces:
P1+P1 means linear elements for both the velocity components and the pressure field. Linear elements are computationally cheaper than higher-order elements and are also less prone to introducing spurious oscillations, thereby improving the numerical robustness. In other words, this can be computationally efficient but requires streamline stabilization of the Navier-Stokes equations. This is the default element order for the Laminar Flow and Turbulent Flow single-phase flow interfaces and the discretization of fluids in the multiphase flow interfaces.
P2+P1 means second-order elements for the velocity components and linear elements for the pressure field. Second-order elements work well for low flow velocities. This is the default element order for the Creeping Flow interface.
P3+P2 means third-order elements for the velocity components and second-order elements for the pressure field. This can add additional accuracy but it also adds additional degrees of freedom compared to P2+P1 elements.
The abbreviation PmPn is often used to indicate the polynomial order of, in this case, the shape functions (elements) for the velocity components (m) and the pressure (n) when using tetrahedral or triangular elements. Here a corresponding nomenclature is used for all element shapes.
The theory about this is in P.M. Gresho and R.L. Sani, Incompressible Flow and the Finite Element Method, Volume 2: Isothermal Laminar Flow, John Wiley & Sons, 2000.
Accurate Boundary Fluxes
Some physics can create and compute variables that accurately represent the flux across all boundaries. To enable these variables, select the Compute boundary fluxes check box. Optionally, the smoothing can provide a more well-behaved flux value close to singularities. You add smoothing by selecting the Apply smoothing to boundary fluxes check box.
Splitting Complex-Valued Variables
From the Value type when using splitting of complex variables list, you can specify the value type (Real or Complex) of dependent variables when the Split complex variables in real and imaginary parts setting is activated in the Compile Equations node of any solver sequence used. The default is the complex value type, but you can specify that the value of a dependent variable is real to make sure that it does not get affected by small imaginary contributions, which can occur, for example, when combining a Time Dependent or Stationary study with a frequency-domain study. If the split complex variables setting is not active, the value type is ignored.