www.mooseframework.org
Functions | Variables
NodalNormalsPreprocessor.C File Reference

Go to the source code of this file.

Functions

template<>
InputParameters validParams< NodalNormalsPreprocessor > ()
 
bool hasBoundary (const std::vector< BoundaryID > &boundary_ids1, const std::vector< BoundaryID > &boundary_ids2)
 Local function to check to see if any intersection occurs between two vectors. More...
 

Variables

Threads::spin_mutex nodal_normals_preprocessor_mutex
 

Function Documentation

bool hasBoundary ( const std::vector< BoundaryID > &  boundary_ids1,
const std::vector< BoundaryID > &  boundary_ids2 
)

Local function to check to see if any intersection occurs between two vectors.

Neither can be assumed to be sorted but both are generally very short (just 1 or 2 entries) so doing an explicit double loop is probably the easiest.

Definition at line 49 of file NodalNormalsPreprocessor.C.

Referenced by NodalNormalsPreprocessor::execute().

51 {
52  for (auto id1 : boundary_ids1)
53  {
54  if (id1 == Moose::ANY_BOUNDARY_ID)
55  return true;
56 
57  for (auto id2 : boundary_ids2)
58  if (id1 == id2 || id2 == Moose::ANY_BOUNDARY_ID)
59  return true;
60  }
61  return false;
62 }
const BoundaryID ANY_BOUNDARY_ID
Definition: MooseTypes.h:119

Definition at line 30 of file NodalNormalsPreprocessor.C.

31 {
33  params.addRequiredParam<std::vector<BoundaryName>>(
34  "surface_boundary", "The list of boundary IDs where nodal normals are computed");
35  params.addParam<BoundaryName>("corner_boundary",
36  "Node set ID which contains the nodes that are in 'corners'.");
37  params.addPrivateParam<FEFamily>("fe_family", LAGRANGE);
38  params.addPrivateParam<Order>("fe_order", FIRST);
39 
40  return params;
41 }
InputParameters validParams< ElementUserObject >()
void addPrivateParam(const std::string &name, const T &value)
These method add a parameter to the InputParameters object which can be retrieved like any other para...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an option parameter and a documentation string to the InputParameters object...

Variable Documentation

Threads::spin_mutex nodal_normals_preprocessor_mutex

Definition at line 26 of file NodalNormalsPreprocessor.C.

Referenced by NodalNormalsPreprocessor::execute().