|
| v0.14.0
|
Go to the documentation of this file.
9 #ifndef __FIELD_BLAS_HPP__
10 #define __FIELD_BLAS_HPP__
38 boost::function<
double(
const double field_val)>;
45 boost::shared_ptr<FieldEntity> field_entity_ptr)>;
53 const double y_field_value_reference,
const double x_field_value)>;
61 boost::shared_ptr<FieldEntity> y_field_entity_ptr,
62 const boost::shared_ptr<FieldEntity> x_field_entity_ptr)>;
92 Range *ents_ptr =
nullptr);
117 Range *ents_ptr =
nullptr);
144 const std::string field_name_x,
145 const std::string field_name_y,
146 bool error_if_missing =
false,
147 Range *ents_ptr =
nullptr);
185 const std::string field_name_x,
186 const std::string field_name_y,
187 bool error_if_missing =
false,
188 Range *ents_ptr =
nullptr);
201 const std::string field_name_x,
202 const std::string field_name_y,
203 bool error_if_missing,
204 bool create_if_missing);
220 const std::string field_name_y,
221 bool error_if_missing =
false,
222 Range *ents_ptr =
nullptr);
238 const std::string field_name_x,
239 const std::string field_name_y,
240 bool error_if_missing,
241 bool create_if_missing);
258 const std::string field_name_y,
259 bool error_if_missing =
false,
260 Range *ents_ptr =
nullptr);
263 const std::string field_name_x,
264 const std::string field_name_y,
265 bool error_if_missing,
266 bool create_if_missing);
278 Range *ents_ptr =
nullptr);
282 double *ycoord,
double *zcoord)>;
312 Range *verts =
nullptr);
352 #endif // __FIELD_BLAS_HPP__
MoFEMErrorCode fieldLambdaOnEntities(OneFieldFunctionOnEntities lambda, const std::string field_name, Range *ents_ptr=nullptr)
filed lambda
MoFEMErrorCode setVertexDofs(VertexCoordsFunction lambda, const std::string field_name, Range *verts=nullptr)
Set DOFs on vertices using user function.
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
const MoFEM::Interface & cOre
Deprecated interface functions.
DEPRECATED MoFEMErrorCode fieldLambda(TwoFieldFunctionOnValues lambda, const std::string field_name_x, const std::string field_name_y, bool error_if_missing, bool create_if_missing)
implementation of Data Operators for Forces and Sources
MoFEMErrorCode query_interface(boost::typeindex::type_index type_index, UnknownInterface **iface) const
MoFEMErrorCode fieldLambdaOnValues(OneFieldFunctionOnValues lambda, const std::string field_name, Range *ents_ptr=nullptr)
filed lambda
boost::function< MoFEMErrorCode(boost::shared_ptr< FieldEntity > y_field_entity_ptr, const boost::shared_ptr< FieldEntity > x_field_entity_ptr)> TwoFieldFunctionOnEntities
boost::function< double(const double y_field_value_reference, const double x_field_value)> TwoFieldFunctionOnValues
VectorShallowArrayAdaptor< double > VectorAdaptor
constexpr auto field_name
MoFEMErrorCode fieldCopy(const double alpha, const std::string field_name_x, const std::string field_name_y, bool error_if_missing=false, Range *ents_ptr=nullptr)
copy and scale fields
base class for all interface classes
FieldBlas(const MoFEM::Core &core)
boost::function< MoFEMErrorCode(boost::shared_ptr< FieldEntity > field_entity_ptr)> OneFieldFunctionOnEntities
MoFEMErrorCode setField(const double val, const EntityType type, const std::string field_name)
MoFEMErrorCode fieldAxpy(const double alpha, const std::string field_name_x, const std::string field_name_y, bool error_if_missing=false, Range *ents_ptr=nullptr)
axpy fields
boost::function< MoFEMErrorCode(VectorAdaptor &&field_data, double *xcoord, double *ycoord, double *zcoord)> VertexCoordsFunction
boost::function< double(const double field_val)> OneFieldFunctionOnValues
function to set a field value
MoFEMErrorCode fieldScale(const double alpha, const std::string field_name, Range *ents_ptr=nullptr)
field scale