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.
parameters_utilities.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 // Marjan Fathian,
12 // Gennady Markelov
13 //
14 
15 #pragma once
16 
18 
19 namespace Kratos
20 {
21 
23 {
24 public:
25  static Parameters CopyRequiredParameters(const Parameters& rSourceParameters,
26  const std::vector<std::string>& rNamesOfParametersToCopy);
27 
28  static Parameters CopyOptionalParameters(const Parameters& rSourceParameters,
29  const std::vector<std::string>& rNamesOfParametersToCopy);
30 
31  static void AppendParameterNameIfExists(const std::string& rParameterName,
32  const Parameters& rSourceParameters,
33  std::vector<std::string>& rResult);
34 
35  static bool HasTableAttached(const Parameters& rSettings);
36  static bool HasTableAttached(const Parameters& rSettings, int component);
37 };
38 
39 } // namespace Kratos
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
Definition: parameters_utilities.h:23
static Parameters CopyRequiredParameters(const Parameters &rSourceParameters, const std::vector< std::string > &rNamesOfParametersToCopy)
Definition: parameters_utilities.cpp:19
static Parameters CopyOptionalParameters(const Parameters &rSourceParameters, const std::vector< std::string > &rNamesOfParametersToCopy)
Definition: parameters_utilities.cpp:27
static bool HasTableAttached(const Parameters &rSettings)
Definition: parameters_utilities.cpp:54
static void AppendParameterNameIfExists(const std::string &rParameterName, const Parameters &rSourceParameters, std::vector< std::string > &rResult)
Definition: parameters_utilities.cpp:45
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21