Assorted Function and Types

Assorted Function and Types

This page contains several types and functions that are used throughout the physics modules. Many of these are defined in ODLCommonTools

Abstract Functor Types

Abstract types are provided for commonly used Functors:

Abstract supertype of all boundary condition functors

source

Abstract supertype of all boundary condition functors that compute the reverse mode with respect to the metrics

source

Abstract supertype of all source term functors

source

Abstract supertype of all numerical flux functions used by standard DG face integrals

source

Abstract supertype of all numerical flux functions used by standard DG face integral that compute the reverse mode with respect to the metrics

source

Boundaries and Interfaces

All physics modules need to apply boundary conditions and all DG schemes and some CG schemes need to do face integrals. The types and functions described here assist in identifying them. PDESolver does not track the faces of elements directly, instead it tracks the element the face belongs to and the local face number, that is, the index of the face in the list of all faces that belong to the element. Using this representation, every interior face has two representations because it is part of two elements.

ODLCommonTools.Boundary

Used to identify boundary faces in a finite-element grid.

Fields

  • element : index of the element to which the boundary face belongs

  • face : the face index of the boundary (local index to the element)

Example

To mark face 2 of element 7 to be a boundary face, use Boundary(7,2)

source

ODLCommonTools.Interface

Used to identify interfaces between elements in a finite-element grid.

Fields

  • elementL : index of the so-called left element in the pair

  • elementR : index of the so-called right element in the pair

  • faceL : the face index of the interface with respect to the left element

  • faceR : the face index of the interface with respect to the right element

  • orient : orientation of the 'right' element relative to the 'left'

Example

Consider an interface between elements 2 and 5. Suppose the interface is on face 1 of element 2 and face 3 of element 5. Furthermore, suppose element 5 has orientation 1 relative to element 1 (defintion of orientation TBD). This can be indicated as Interface(2,5,1,3,1)

source

This function returns either the element field of a Boundary or the elementL field of an interface.

source

This function returns either the face field of a Boundary or the faceL field of an Interface

source
Base.showMethod.

Show method for Boundary objects

source
Base.showMethod.

Show method for Interface objects

source

Functionals

ODLCommonTools.AbstractFunctional

Abstract datatype for optimization related data structures. All data types corresponding to optimization problems should be a subtype of this.

Static Parameters

  • Topt

source

Abstract type for integral objective functions. Any integral objective function should be a subtype of this, which is a subtype ofi AbstractFunctional.

Static Parameters

  • Topt

source