Forms

Bramble.BilinearFormType
struct BilinearForm{TrialType,TestType,F} <: BilinearFormType
	trial_space::TrialType
	test_space::TestType
	form_expr::F
end

Structure to store the data associated with a bilinear form

\[\begin{array}{rcll} a \colon & W_h \times V_h &\longrightarrow &\mathbb{R} \\ & (u,v) &\longmapsto & a(u,v). \end{array}\]

The field form_expr has the expression of the form and the remaining fields store the trial and test spaces $W_h$ and $V_h$.

source
Bramble.LinearFormType
struct LinearForm{TestType,F} <: LinearFormType
	test_space::TestType
	form_expr::F
end

Structure to store the data associated with a llinear form

\[\begin{array}{rcll} l \colon & W_h &\longrightarrow &\mathbb{R} \\ & v &\longmapsto & l(v). \end{array}\]

The field form_expr has the expression of the form and the remaining field stores the test space $W_h$.

source
Bramble.ConstraintsType
struct Constraints{D,FType} <: ConstraintsType
	markers::NTuple{D,Marker{FType}}
	constraint_type::Symbol
end

Structure to store boundary constraints. The constraint_type should be a symbol identifying the type of conditions (currently, only :dirichlet is supported). The tuple markers stores all the Markers informations related with the constraints.

source
Bramble.__set_diag_oneMethod
__set_diag_one(A::AbstractMatrix, npts, rows)

Set the diagonal elements of matrix A to one for the given rows.

source
Bramble.apply_dirichlet_bc!Method
apply_dirichlet_bc!(A, bcs::Constraints, M::MeshType)

Apply Dirichlet boundary conditions to matrix A using the Constraints object bcs and the mesh M. For each index i associated with a Dirichlet boundary condition, we set the i-th row of matrix A to zero and change the diagonal element A[i,i] to 1.

source