-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnumEx-baseClass.h
42 lines (34 loc) · 1.29 KB
/
numEx-baseClass.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef NUMEX_BASECLASS_H
#define NUMEX_BASECLASS_H
/**
*
*/
template<int dim>
class numEx_class
{
public:
double search_tolerance = 1e-12;
virtual std::string numEx_name() {
return "numEx";
};
virtual unsigned int loading_direction() {
return enums::coord_none;
};
virtual std::vector< enums::enum_boundary_ids > id_boundary_loads() {
return std::vector< enums::enum_boundary_ids > ();
}
// @todo Check whether this virtual function is needed, because this is only called internally
virtual std::vector< types::manifold_id > manifold_ids() {
return std::vector< types::manifold_id > ();
}
// abstract function:
// Is never executed, thus must be overwritten in each derived class
virtual void make_grid( /*input-> */ const Parameter::GeneralParameters ¶meter,
/*output->*/ Triangulation<dim> &triangulation,
std::vector<double> &body_dimensions,
std::vector< numEx::EvalPointClass<3> > &eval_points_list,
const std::string relativePath ) =0;
virtual void make_constraints ( AffineConstraints<double> &constraints, const FESystem<dim> &fe, DoFHandler<dim> &dof_handler_ref,
const bool &apply_dirichlet_bc, double ¤t_load_increment, const Parameter::GeneralParameters ¶meter ) =0;
};
#endif //NUMEX_BASECLASS_H