Skip to content

2. Building SBP Operators

Jason Hicken edited this page Mar 25, 2015 · 4 revisions

SBPOperator

SBPOperator is an abstract type that is used in generic methods. It is parameterized on a FloatingPoint type. SBPOperators are, in general, memory intensive, so only one should be created per element type. In addition, while the data fields are typically the same between SBPOperators, users should avoid accessing these directly, because they may change.


TriSBP

TriSBP is a concrete SBPOperator type for triangles. To build an SBP operator type for Float64 data that is exact for polynomials of degree p, you would call sbp = TriSBP{Float64}(degree=p). If you need to use a specific face ordering that is different than the native ordering, you can do so with the optional second arguement. For example, if the desired face ordering is [2;3;1] (e.g. the second new face is the old third face), then you would call sbp = TriSBP{Float64}(degree=p, facetorder=[2;3;1]).


TetSBP

TetSBP is an SBPOperator type for tetrahedra. It is used in much the same way as TriSBP, except that it builds an element for the reference tetrahedron.

Clone this wiki locally