![]() |
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.
|
Provides a tool to write UNV files. More...
#include <unv_output.h>
Public Member Functions | |
KRATOS_CLASS_POINTER_DEFINITION (UnvOutput) | |
template<typename Enumeration > | |
auto | as_integer (Enumeration const value) -> typename std::underlying_type< Enumeration >::type |
UnvOutput (Kratos::ModelPart &modelPart, const std::string &outFileWithoutExtension) | |
void | InitializeOutputFile () |
void | WriteMesh () |
Writes 'mrOutputModelPart' associated mesh. More... | |
void | WriteNodes () |
Writes 'mrOutputModelPart' associated nodes. More... | |
void | WriteElements () |
Writes 'mrOutputModelPart' associated conditions. More... | |
void | WriteNodalResults (const Variable< bool > &rVariable, const double timeStep) |
Writes a result dataset containing the rVariable value for a given timestep. More... | |
void | WriteNodalResults (const Variable< int > &rVariable, const double timeStep) |
void | WriteNodalResults (const Variable< double > &rVariable, const double timeStep) |
void | WriteNodalResults (const Variable< array_1d< double, 3 >> &rVariable, const double timeStep) |
void | WriteNodalResults (const Variable< Vector > &rVariable, const double timeStep) |
void | WriteNodalResults (const Variable< Matrix > &rVariable, const double timeStep) |
UnvOutput::DataCharacteristics | GetDataType (const Variable< bool > &) |
Returns the type of unv data associated to a Kratos Variable. More... | |
UnvOutput::DataCharacteristics | GetDataType (const Variable< int > &) |
UnvOutput::DataCharacteristics | GetDataType (const Variable< double > &) |
UnvOutput::DataCharacteristics | GetDataType (const Variable< array_1d< double, 3 >> &) |
UnvOutput::DataCharacteristics | GetDataType (const Variable< Vector > &) |
UnvOutput::DataCharacteristics | GetDataType (const Variable< Matrix > &) |
void | WriteNodalResultValues (std::ofstream &outputFile, const Node &node, const Variable< bool > &rVariable) |
Writes the variable value for a node. More... | |
void | WriteNodalResultValues (std::ofstream &outputFile, const Node &node, const Variable< int > &rVariable) |
void | WriteNodalResultValues (std::ofstream &outputFile, const Node &node, const Variable< double > &rVariable) |
void | WriteNodalResultValues (std::ofstream &outputFile, const Node &node, const Variable< array_1d< double, 3 >> &rVariable) |
void | WriteNodalResultValues (std::ofstream &outputFile, const Node &node, const Variable< Vector > &rVariable) |
void | WriteNodalResultValues (std::ofstream &outputFile, const Node &node, const Variable< Matrix > &rVariable) |
template<class TVariablebleType > | |
int | GetUnvVariableName (const TVariablebleType &rVariable) |
Get the id of the UNV variable name corresponding to rVariable. 1000+ if none found. More... | |
template<class TVariablebleType > | |
void | WriteNodalResultRecords (const TVariablebleType &rVariable, const int numComponents, const double timeStep) |
Writes a result dataset using the results in node mode. More... | |
Provides a tool to write UNV files.
Currently 3 datasets are supported: 2411 - Node Dataset 2412 - Element Dataset 2414 - Result Dataset
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Kratos::UnvOutput::UnvOutput | ( | Kratos::ModelPart & | modelPart, |
const std::string & | outFileWithoutExtension | ||
) |
|
inline |
UnvOutput::DataCharacteristics Kratos::UnvOutput::GetDataType | ( | const Variable< array_1d< double, 3 >> & | rVariable | ) |
UnvOutput::DataCharacteristics Kratos::UnvOutput::GetDataType | ( | const Variable< bool > & | rVariable | ) |
Returns the type of unv data associated to a Kratos Variable.
Vectors and Matrices are not supported at this time.
UnvOutput::DataCharacteristics Kratos::UnvOutput::GetDataType | ( | const Variable< double > & | rVariable | ) |
UnvOutput::DataCharacteristics Kratos::UnvOutput::GetDataType | ( | const Variable< int > & | rVariable | ) |
UnvOutput::DataCharacteristics Kratos::UnvOutput::GetDataType | ( | const Variable< Matrix > & | rVariable | ) |
UnvOutput::DataCharacteristics Kratos::UnvOutput::GetDataType | ( | const Variable< Vector > & | rVariable | ) |
|
inline |
void Kratos::UnvOutput::InitializeOutputFile | ( | ) |
Kratos::UnvOutput::KRATOS_CLASS_POINTER_DEFINITION | ( | UnvOutput | ) |
void Kratos::UnvOutput::WriteElements | ( | ) |
Writes 'mrOutputModelPart' associated conditions.
void Kratos::UnvOutput::WriteMesh | ( | ) |
Writes 'mrOutputModelPart' associated mesh.
|
inline |
Writes a result dataset using the results in node mode.
Fromat: Partially extracted from: http://users.ices.utexas.edu R. 1: unique number of dataset (dataset_label) R. 2: text describing content (dataset_name) R. 3: data belongs to: nodes, elements,... (dataset_location) R. 4: user-specified text (id_lines_1_to_5[0]) R. 5: user-specified text (id_lines_1_to_5[1]) R. 6: user-specified text (id_lines_1_to_5[2]) R. 7: user-specified text (id_lines_1_to_5[3]) R. 8: user-specified text (id_lines_1_to_5[4]) R. 9: (model_type) (analysis_type) (data_characteristic) (result_type) (data_type) (nvaldc) R. 10: (design_set_id) (iteration_number) (solution_set_id) (boundary_condition) (load_set) (mode_number) (time_stamp_number) (frequency_number) R. 11: (creation_option) (Unknown)*7 R. 12: (time) (frequency) (eigenvalue) (nodal_mass) (viscous_damping_ratio) (hysteretic_damping_ratio) R. 13: (eigenvalue_re) (eigenvalue_im) (modalA_re) (modalA_im) (modalB_re) (modalB_im)
For nodes (Repeat for every node):
R. 14: (node_id) R. 15: (result)*nvaldc
rVariable | Variable to be printed |
numComponents | Number of components of the variable |
timeStep | Current TimeStep |
void Kratos::UnvOutput::WriteNodalResults | ( | const Variable< array_1d< double, 3 >> & | rVariable, |
const double | timeStep | ||
) |
void Kratos::UnvOutput::WriteNodalResults | ( | const Variable< double > & | rVariable, |
const double | timeStep | ||
) |
void Kratos::UnvOutput::WriteNodalResults | ( | const Variable< int > & | rVariable, |
const double | timeStep | ||
) |
void Kratos::UnvOutput::WriteNodalResults | ( | const Variable< Matrix > & | rVariable, |
const double | timeStep | ||
) |
void Kratos::UnvOutput::WriteNodalResults | ( | const Variable< Vector > & | rVariable, |
const double | timeStep | ||
) |
void Kratos::UnvOutput::WriteNodalResultValues | ( | std::ofstream & | outputFile, |
const Node & | node, | ||
const Variable< array_1d< double, 3 >> & | rVariable | ||
) |
void Kratos::UnvOutput::WriteNodalResultValues | ( | std::ofstream & | outputFile, |
const Node & | node, | ||
const Variable< bool > & | rVariable | ||
) |
Writes the variable value for a node.
Vectors and Matrices are not supported at this time.
outputFile | Output file |
node | Input node |
rVariable | Variable to print |
void Kratos::UnvOutput::WriteNodalResultValues | ( | std::ofstream & | outputFile, |
const Node & | node, | ||
const Variable< double > & | rVariable | ||
) |
void Kratos::UnvOutput::WriteNodalResultValues | ( | std::ofstream & | outputFile, |
const Node & | node, | ||
const Variable< int > & | rVariable | ||
) |
void Kratos::UnvOutput::WriteNodalResultValues | ( | std::ofstream & | outputFile, |
const Node & | node, | ||
const Variable< Matrix > & | rVariable | ||
) |
void Kratos::UnvOutput::WriteNodalResultValues | ( | std::ofstream & | outputFile, |
const Node & | node, | ||
const Variable< Vector > & | rVariable | ||
) |
void Kratos::UnvOutput::WriteNodes | ( | ) |
Writes 'mrOutputModelPart' associated nodes.