My Project
Public Member Functions | Protected Member Functions | List of all members
DebugSimulation Class Reference

#include <simulation.hpp>

Inheritance diagram for DebugSimulation:
Inheritance graph
[legend]
Collaboration diagram for DebugSimulation:
Collaboration graph
[legend]

Public Member Functions

 DebugSimulation (string debug_parameters_path)
 
void main ()
 
- Public Member Functions inherited from Simulation
 Simulation (string parameters_path)
 
 Simulation (string parameters_path, bool friction_parallelized)
 
void main ()
 

Protected Member Functions

void printMatrix (arma::mat matrix, bool arra_format)
 
void printRowVector (arma::rowvec vector)
 
- Protected Member Functions inherited from Simulation
void setupModelVectorsMatrices ()
 
void setupBlockMatrix ()
 
void setupBlockMatrixDerivative ()
 
void setupPadVector ()
 
void setupPadVectorDerivative ()
 
void setupSaveVectorsMatrices ()
 
void setupSliderSpeedMode ()
 
void setupConstants ()
 
double phi (double y)
 
void setSpeedAfterThreshold ()
 
void updateSliderSpeed (int time_step)
 
void function_u (const arma::mat &current_block_matrix, const arma::rowvec &current_pad_vector, arma::mat &current_block_matrix_derivative)
 
void function_x (const arma::mat &current_block_matrix, const arma::rowvec &current_pad_vector, arma::rowvec &current_pad_vector_derivative)
 
void function_x_odof (const arma::rowvec &current_pad_vector, arma::rowvec &current_pad_vector_derivative)
 
double calculatePadSupportDamper (arma::rowvec current_pad_vector)
 
double calculatePadFriction (arma::mat current_block_matrix, arma::rowvec current_pad_vector)
 
void midpointMethod (int time_step)
 
void oneDegreeOfFreedomMidpointMethod (int time_step)
 
void writeValuesToLoggers (const int &time_step)
 
void printMidPointMethod (arma::mat block_matrix, arma::rowvec pad_vector, string explanation_text="")
 
void runMidpointMethod ()
 
void saveToCsv (string filename, string result_path)
 
void midpointMethodParallel (int timestep, arma::mat &block_matrix_parallel, arma::rowvec &pad_vector_parallel, arma::mat block_matrix_derivative_parallel, arma::rowvec pad_vector_derivative_parallel)
 
void setupAndRunFrictionInParallel (int time_step, double slider_speed)
 
void calculateFrictionInParallel ()
 
void saveToCsvParallel (const arma::colvec &armadillo_vector, const string &result_path, const double &slider_speed)
 

Additional Inherited Members

- Protected Attributes inherited from Simulation
string input_parameters_path
 
Parameters input_parameters
 
arma::mat block_matrix
 
arma::mat block_matrix_derivative
 
arma::rowvec pad_vector
 
arma::rowvec pad_vector_derivative
 
int number_of_time_steps
 
int number_of_save_steps
 
int number_of_interval_save_step
 
double m_u
 
double k_p
 
double m_c_crit
 
double c_p
 
double k_c
 
int updateSliderSpeedDtInterval
 
bool loggingSpecificBlocks = false
 
arma::uvec block_position_column_index = {0}
 
arma::uvec block_velocity_column_index = {1}
 
arma::mat block_position_to_file
 
arma::mat block_velocity_to_file
 
arma::colvec pad_position_to_file
 
arma::colvec pad_velocity_to_file
 
arma::colvec pad_friction_to_file
 
int index_pad_friction_to_file = 0
 
int index_to_file = 0
 
int friction_zero_counter = 0
 

Detailed Description

Definition at line 132 of file simulation.hpp.

Constructor & Destructor Documentation

◆ DebugSimulation()

DebugSimulation::DebugSimulation ( string  debug_parameters_path)
inline

Definition at line 134 of file simulation.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ main()

void DebugSimulation::main ( )

Definition at line 625 of file simulation.cpp.

Here is the call graph for this function:

◆ printMatrix()

void DebugSimulation::printMatrix ( arma::mat  matrix,
bool  arra_format = false 
)
protected

Definition at line 599 of file simulation.cpp.

◆ printRowVector()

void DebugSimulation::printRowVector ( arma::rowvec  vector)
protected

Definition at line 619 of file simulation.cpp.


The documentation for this class was generated from the following files: