Skip to content

Struct ae108::cpppetsc::EssentialBoundaryCondition

ClassList > ae108 > cpppetsc > EssentialBoundaryCondition

Describes an essential (Dirichlet) boundary condition applied to all mesh points tagged with a given label value. More...

  • #include <BoundaryCondition.h>

Public Attributes

Type Name
std::unordered_map< PetscInt, PetscScalar > constrained_dofs
PetscInt label_value = {-1}

Public Static Attributes

Type Name
std::string_view label_name = {"Face Sets"}

Detailed Description

Remark:

label_name / label_value identify a DMLabel that is either populated by Mesh::markBoundaryCells() (driven by LabelConstraints) or created automatically by Mesh::fromGmsh() when importing gmsh Physical Groups. The two are matched by convention on the label value, not by type.

Public Attributes Documentation

variable constrained_dofs

std::unordered_map<PetscInt, PetscScalar> ae108::cpppetsc::EssentialBoundaryCondition::constrained_dofs;

Maps a per-vertex dof index (e.g. 0/1/2 for x/y/z) to the value it is constrained to.


variable label_value

PetscInt ae108::cpppetsc::EssentialBoundaryCondition::label_value;

Value of the label identifying which tagged mesh points this condition applies to.


Public Static Attributes Documentation

variable label_name

std::string_view ae108::cpppetsc::EssentialBoundaryCondition::label_name;

Name of the DMLabel tagging boundary faces/edges; "Face Sets" is the default gmsh physical-group label name.



The documentation for this class was generated from the following file cpppetsc/src/include/ae108/cpppetsc/BoundaryCondition.h