|
| v0.14.0
|
Go to the documentation of this file.
7 #ifndef __NODAL_FORCES_HPP__
8 #define __NODAL_FORCES_HPP__
40 boost::ptr_vector<MethodForForceScaling> &
methodsOp;
43 boost::ptr_vector<MethodForForceScaling> &methods_op,
44 bool use_snes_f =
false);
56 bool use_snes_f =
false);
82 boost::shared_ptr<DofEntity>
dOf;
86 Nf *=
dOf->getFieldData();
94 Range *intersect_ptr = NULL) {
103 CHKERR m_field.
get_moab().get_entities_by_type(it->meshset, MBTRI, tris,
106 CHKERR m_field.
get_moab().get_entities_by_type(it->meshset, MBEDGE, edges,
113 CHKERR m_field.
get_moab().get_entities_by_type(it->meshset, MBVERTEX,
115 nodes = subtract(nodes, tris_nodes);
116 nodes = subtract(nodes, edges_nodes);
118 nodes = intersect(nodes, *intersect_ptr);
129 boost::ptr_map<std::string, NodalForce> &nodal_forces,
Vec F,
132 string fe_name =
"FORCE_FE";
133 nodal_forces.insert(fe_name,
new NodalForce(m_field));
143 #endif //__NODAL_FORCES_HPP__
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
OpNodalForce(const std::string field_name, Vec _F, bCForce &data, boost::ptr_vector< MethodForForceScaling > &methods_op, bool use_snes_f=false)
MoFEM::Interface & mField
virtual MoFEMErrorCode modify_finite_element_add_field_row(const std::string &fe_name, const std::string name_row)=0
set field row which finite element use
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
#define _IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP_(MESHSET_MANAGER, CUBITBCTYPE, IT)
Iterator that loops over a specific Cubit MeshSet in a moFEM field.
boost::ptr_vector< MethodForForceScaling > methodsOp
Deprecated interface functions.
virtual MoFEMErrorCode add_ents_to_finite_element_by_type(const EntityHandle entities, const EntityType type, const std::string &name, const bool recursive=true)=0
add entities to finite element
#define CHKERR
Inline error check.
virtual MoFEMErrorCode add_finite_element(const std::string &fe_name, enum MoFEMTypes bh=MF_EXCL, int verb=DEFAULT_VERBOSITY)=0
add finite element
virtual moab::Interface & get_moab()=0
virtual MoFEMErrorCode modify_finite_element_add_field_col(const std::string &fe_name, const std::string name_row)=0
set field col which finite element use
Class used to scale loads, f.e. in arc-length control.
virtual MoFEMErrorCode modify_finite_element_add_field_data(const std::string &fe_name, const std::string name_field)=0
set finite element field data
Operator to assemble nodal force into right hand side vector.
boost::ptr_vector< MethodForForceScaling > & methodsOp
EntitiesFieldData::EntData EntData
constexpr auto field_name
std::map< int, bCForce > mapForce
MoFEMErrorCode doWork(int side, EntityType type, EntitiesFieldData::EntData &data)
const FTensor::Tensor2< T, Dim, Dim > Vec
UBlasVector< double > VectorDouble
MyFE(MoFEM::Interface &m_field)
NodalForce(MoFEM::Interface &m_field)
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
default operator for VERTEX element
MoFEMErrorCode addForce(const std::string field_name, Vec F, int ms_id, bool use_snes_f=false)
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...