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.
geo_output_writer.h
Go to the documentation of this file.
1 // KRATOS___
2 // // ) )
3 // // ___ ___
4 // // ____ //___) ) // ) )
5 // // / / // // / /
6 // ((____/ / ((____ ((___/ / MECHANICS
7 //
8 // License: geo_mechanics_application/license.txt
9 //
10 // Main authors: Anne van de Graaf
11 //
12 
13 #pragma once
14 
15 #include <string>
16 
17 #include "includes/gid_io.h"
19 
20 namespace Kratos
21 {
22 
23 class Model;
24 class ModelPart;
25 
27 {
28 public:
29  GeoOutputWriter(const Parameters& rGidOutputSettings, const std::string& rWorkingDirectory, ModelPart& rModelPart);
30 
31  void WriteGiDOutput(ModelPart& rModelPart, Parameters Settings, bool WriteHydraulicHeadToNodes = true);
32 
33  void FinalizeResults();
34 
35 private:
36  void WriteNodalOutput(const std::vector<std::string>& rOutputItemNames, const ModelPart& rModelPart);
37  void WriteIntegrationPointOutput(const std::vector<std::string>& rOutputItemNames, const ModelPart& rModelPart);
38  void CalculateNodalHydraulicHead(ModelPart& rModelPart);
39 
40  static GidIO<> MakeGidIO(const std::string& rWorkingDirectory, const Parameters& rGidOutputSettings);
41 
42  GidIO<> mGidIO;
43 };
44 
45 } // namespace Kratos
Definition: geo_output_writer.h:27
void FinalizeResults()
Definition: geo_output_writer.cpp:181
void WriteGiDOutput(ModelPart &rModelPart, Parameters Settings, bool WriteHydraulicHeadToNodes=true)
Definition: geo_output_writer.cpp:95
GeoOutputWriter(const Parameters &rGidOutputSettings, const std::string &rWorkingDirectory, ModelPart &rModelPart)
Definition: geo_output_writer.cpp:84
This class defines an interface to the GiDPost library in order to provide GiD compliant I/O function...
Definition: gid_io.h:112
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
Kratos::ModelPart ModelPart
Definition: kratos_wrapper.h:31
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
dictionary Model
TODO replace this "model" for real one once available in kratos core.
Definition: script.py:94