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.
input_utility.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: Richard Faasse
11 //
12 
13 #pragma once
14 
15 #include <filesystem>
17 #include "containers/model.h"
18 
19 namespace Kratos {
20 
21 class InputUtility {
22 public:
23  virtual ~InputUtility() = default;
24 
25  [[nodiscard]] virtual Parameters ProjectParametersFromFile(const std::filesystem::path& rProjectFilePath) const = 0;
26  virtual void ReadModelFromFile(const std::filesystem::path& rModelPartFilePath, ModelPart& rModelPart) const = 0;
27  virtual void AddMaterialsFromFile(const std::filesystem::path& rMaterialFilePath, Model& rModel) const = 0;
28 };
29 
30 }
Definition: input_utility.h:21
virtual ~InputUtility()=default
virtual void ReadModelFromFile(const std::filesystem::path &rModelPartFilePath, ModelPart &rModelPart) const =0
virtual void AddMaterialsFromFile(const std::filesystem::path &rMaterialFilePath, Model &rModel) const =0
virtual Parameters ProjectParametersFromFile(const std::filesystem::path &rProjectFilePath) const =0
This class aims to manage different model parts across multi-physics simulations.
Definition: model.h:60
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
string path
Definition: DEM_run_all_benchmarks_analysis.py:10
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21