22 #include <sys/times.h>
54 std::fill(
E.begin(),
E.end(),0);
63 std::cout <<
"Approximate nearest neighbors:\n";
68 std::cout <<
"ANN memory error while allocating points" << std::endl;
73 std::cout <<
" points allocated\n";
85 std::cout <<
" building kd_tree\n";
91 std::cout <<
"ANN memory error while allocating kd_tree" << std::endl;
98 std::cout <<
" kd_tree allocated\n";
103 std::cout <<
"No recentering.\n";
141 std::array<double,NB_ENERGY_TERMS>
E;
156 void energy(
double const t
171 std::ofstream &fout ,
const int nt )
const;
185 char recentering_direction );
double Etot
Definition: fem.h:150
void direction(enum Nodes::index idx_dir)
Definition: recentering.cpp:7
void evolution(void)
Definition: fem.h:163
std::array< double, NB_ENERGY_TERMS > E
Definition: fem.h:141
double Etot0
Definition: fem.h:147
Mesh::mesh msh
Definition: fem.h:153
Fem(Settings const &mySets, timing &t_prm)
Definition: fem.h:51
bool recenter(double thres, char recentering_direction)
Definition: recentering.cpp:47
ANNpointArray pts
Definition: fem.h:191
ANNkd_tree * kdtree
Definition: fem.h:189
~Fem()
Definition: fem.h:128
double DW_dir
Definition: fem.h:144
bool recenter_mem
Definition: fem.h:188
void saver(Settings &settings, timing const &t_prm, std::ofstream &fout, const int nt) const
Definition: save.cpp:15
double vmax
Definition: fem.h:138
void energy(double const t, Settings &settings)
Definition: energy.cpp:5
const Eigen::Vector3d getNode_p(const int i) const
Definition: mesh.h:83
void init_distrib(Settings const &mySets)
Definition: mesh.h:147
int getNbNodes(void) const
Definition: mesh.h:74
double readSol(bool VERBOSE, const std::string fileName)
Definition: read.cpp:174
void evolution(void)
Definition: mesh.h:118
Container for all the settings provided by the user, with conversions to/from YAML.
Definition: feellgoodSettings.h:63
int verbose
Definition: feellgoodSettings.h:125
double initial_time
Definition: feellgoodSettings.h:188
std::string restoreFileName
Definition: feellgoodSettings.h:185
bool recenter
Definition: feellgoodSettings.h:134
Definition: time_integration.h:6
void set_t(double _t)
Definition: time_integration.h:53
many settings to give some parameters to the solver, boundary conditions for the problem,...
const int NB_ENERGY_TERMS
Definition: fem.h:32
ENERGY_TYPE
Definition: fem.h:36
class mesh, readMesh is expecting a mesh file in gmsh format either text or binary,...
index
Definition: node.h:34
const int DIM
Definition: node.h:20