v0.14.0
SimpleRodElement.hpp
Go to the documentation of this file.
1 /** \file SimpleRodElements.hpp
2  \brief Header file for SimpleRod element implementation
3 */
4 
5 
6 
7 #ifndef __SIMPLERODELEMENT_HPP__
8 #define __SIMPLERODELEMENT_HPP__
9 
10 /** \brief Set of functions declaring elements and setting operators
11  * for simple rod element
12  */
14 
15  /**
16  * \brief Declare SimpleRod element
17  *
18  * Search cubit sidesets and blockset ROD and declare
19  volume
20  * element
21 
22  * Blockset has to have name "ROD". The first attribute of the
23  * blockset is Young's modulus.
24 
25  *
26  * @param m_field Interface insurance
27  * @param field_name Field name (e.g. SPATIAL_POSITION)
28  * @param mesh_nodals_positions Name of field on which ho-geometry is defined
29  * @return Error code
30  */
32  MoFEM::Interface &m_field, const std::string field_name,
33  const std::string mesh_nodals_positions = "MESH_NODE_POSITIONS");
34 
35  /**
36  * \brief Implementation of SimpleRod element. Set operators to calculate LHS
37  * and RHS
38  *
39  * @param m_field Interface insurance
40  * @param fe_simple_rod_lhs_ptr Pointer to the FE instance for LHS
41  * @param fe_simple_rod_rhs_ptr Pointer to the FE instance for RHS
42  * @param field_name Field name (e.g. SPATIAL_POSITION)
43  * @param mesh_nodals_positions Name of field on which ho-geometry is
44  * defined
45  * @return Error code
46  */
48  MoFEM::Interface &m_field,
49  boost::shared_ptr<EdgeElementForcesAndSourcesCore>
50  fe_simple_rod_lhs_ptr,
51  boost::shared_ptr<EdgeElementForcesAndSourcesCore>
52  fe_simple_rod_rhs_ptr,
53  const std::string field_name,
54  const std::string mesh_nodals_positions = "MESH_NODE_POSITIONS");
55 };
56 
57 #endif //__SIMPLERODELEMENT_HPP__
MoFEM::Exceptions::MoFEMErrorCode
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
Definition: Exceptions.hpp:56
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:16
MetaSimpleRodElement::setSimpleRodOperators
static MoFEMErrorCode setSimpleRodOperators(MoFEM::Interface &m_field, boost::shared_ptr< EdgeElementForcesAndSourcesCore > fe_simple_rod_lhs_ptr, boost::shared_ptr< EdgeElementForcesAndSourcesCore > fe_simple_rod_rhs_ptr, const std::string field_name, const std::string mesh_nodals_positions="MESH_NODE_POSITIONS")
Implementation of SimpleRod element. Set operators to calculate LHS and RHS.
Definition: SimpleRodElement.cpp:298
MetaSimpleRodElement
Set of functions declaring elements and setting operators for simple rod element.
Definition: SimpleRodElement.hpp:13
field_name
constexpr auto field_name
Definition: poisson_2d_homogeneous.cpp:13
MetaSimpleRodElement::addSimpleRodElements
static MoFEMErrorCode addSimpleRodElements(MoFEM::Interface &m_field, const std::string field_name, const std::string mesh_nodals_positions="MESH_NODE_POSITIONS")
Declare SimpleRod element.
Definition: SimpleRodElement.cpp:270