KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
stationarity_checker.h
Go to the documentation of this file.
1 #ifndef STATIONARITY_CHECKER_H
2 #define STATIONARITY_CHECKER_H
3 
4 #include "includes/variables.h"
5 #include "includes/define.h"
7 #include "includes/model_part.h"
8 #include "utilities/timer.h"
9 
10 namespace Kratos {
11 
12  class KRATOS_API(DEM_APPLICATION) StationarityChecker {
13 
14  public:
15 
17 
19 
20  virtual ~StationarityChecker();
21 
22  bool CheckIfItsTimeToChangeGravity(ModelPart& rSpheresModelPart,
23  const double velocity_threshold_for_gravity_change,
24  const double min_time_between_changes,
25  const double max_time_between_changes);
26 
27  bool CheckIfVariableIsNullInModelPart(ModelPart& rSpheresModelPart,
28  const Variable<double>& var,
29  const double tolerance,
30  const bool ignore_isolated_particles);
31 
32  virtual std::string Info() const;
33 
34  virtual void PrintInfo(std::ostream& rOStream) const;
35 
36  virtual void PrintData(std::ostream& rOStream) const;
37 
39 
40  protected:
41 
42  private:
43 
45 
46  }; // Class StationarityChecker
47 } // namespace Kratos
48 
49 #endif // STATIONARITY_CHECKER_H
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
Definition: stationarity_checker.h:12
double mPreviousChangeTime
Definition: stationarity_checker.h:38
KRATOS_CLASS_POINTER_DEFINITION(StationarityChecker)
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21