MAST
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
MAST::LevelSetConstrainDofs Class Reference

Detailed Description

constrains the dofs based on level set function.

Any dofs that are completely on the negative side are constrained.

Definition at line 41 of file level_set_constrain_dofs.h.

#include <level_set_constrain_dofs.h>

Inheritance diagram for MAST::LevelSetConstrainDofs:
Collaboration diagram for MAST::LevelSetConstrainDofs:

Public Member Functions

 LevelSetConstrainDofs (MAST::SystemInitialization &sys, MAST::FieldFunction< Real > &level_set)
 
virtual ~LevelSetConstrainDofs ()
 
virtual void constrain ()
 provides implementation of the libMesh::System::Constraint::constrain() virtual method More...
 
void constrain_all_negative_indices (bool f)
 if set to true, then if the element has a node on negative side of the level set, we will constrain all dofs of the node to be zero. More...
 
MAST::LevelSetIntersectionget_intersection ()
 

Protected Attributes

bool _constrain_all_negative_indices
 
MAST::LevelSetIntersection_intersection
 
MAST::FieldFunction< Real > & _level_set
 
MAST::SystemInitialization_sys
 

Constructor & Destructor Documentation

◆ LevelSetConstrainDofs()

MAST::LevelSetConstrainDofs::LevelSetConstrainDofs ( MAST::SystemInitialization sys,
MAST::FieldFunction< Real > &  level_set 
)

Definition at line 34 of file level_set_constrain_dofs.cpp.

◆ ~LevelSetConstrainDofs()

MAST::LevelSetConstrainDofs::~LevelSetConstrainDofs ( )
virtual

Definition at line 46 of file level_set_constrain_dofs.cpp.

Member Function Documentation

◆ constrain()

void MAST::LevelSetConstrainDofs::constrain ( )
virtual

provides implementation of the libMesh::System::Constraint::constrain() virtual method

Reimplemented in MAST::IndicatorFunctionConstrainDofs.

Definition at line 61 of file level_set_constrain_dofs.cpp.

◆ constrain_all_negative_indices()

void MAST::LevelSetConstrainDofs::constrain_all_negative_indices ( bool  f)
inline

if set to true, then if the element has a node on negative side of the level set, we will constrain all dofs of the node to be zero.

If false, then nodes will be constrained only if they get no contribution from elements with a positive level set region.

Definition at line 60 of file level_set_constrain_dofs.h.

◆ get_intersection()

MAST::LevelSetIntersection & MAST::LevelSetConstrainDofs::get_intersection ( )
Returns
a reference to the level set function

Definition at line 53 of file level_set_constrain_dofs.cpp.

Member Data Documentation

◆ _constrain_all_negative_indices

bool MAST::LevelSetConstrainDofs::_constrain_all_negative_indices
protected

Definition at line 79 of file level_set_constrain_dofs.h.

◆ _intersection

MAST::LevelSetIntersection* MAST::LevelSetConstrainDofs::_intersection
protected

Definition at line 85 of file level_set_constrain_dofs.h.

◆ _level_set

MAST::FieldFunction<Real>& MAST::LevelSetConstrainDofs::_level_set
protected

Definition at line 83 of file level_set_constrain_dofs.h.

◆ _sys

MAST::SystemInitialization& MAST::LevelSetConstrainDofs::_sys
protected

Definition at line 81 of file level_set_constrain_dofs.h.


The documentation for this class was generated from the following files: