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.
med_testing_utilities.h
Go to the documentation of this file.
1 // KRATOS __ __ _ _ _ _ _ _
2 // | \/ | ___ __| | / \ _ __ _ __ | (_) ___ __ _| |_(_) ___ _ ___
3 // | |\/| |/ _ \/ _` | / _ \ | '_ \| '_ \| | |/ __/ _` | __| |/ _ \| '_ |
4 // | | | | __/ (_| |/ ___ \| |_) | |_) | | | (_| (_| | |_| | (_) | | | |
5 // |_| |_|\___|\__,_/_/ \_\ .__/| .__/|_|_|\___\__,_|\__|_|\___/|_| |_|
6 // |_| |_|
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Philipp Bucher (https://github.com/philbucher)
11 //
12 
13 #pragma once
14 
15 // System includes
16 
17 // External includes
18 
19 // Project includes
20 #include "includes/model_part.h"
21 
22 
23 namespace Kratos {
24 
27 
30 
32 
34 class KRATOS_API(MED_APPLICATION) MedTestingUtilities
35 {
36 public:
39 
42 
46 
48  MedTestingUtilities() = delete;
49 
51  MedTestingUtilities(MedTestingUtilities const& rOther) = delete;
52 
56 
59 
63 
64  static void CheckModelPartsAreEqual(
65  const ModelPart& rModelPart1,
66  const ModelPart& rModelPart2,
67  const bool CheckSubModelParts=true);
68 
69  static void AddGeometriesFromElements(
70  ModelPart& rModelPart);
71 
72  static double ComputeLength(const ModelPart& rModelPart);
73 
74  static double ComputeArea(const ModelPart& rModelPart);
75 
76  static double ComputeVolume(const ModelPart& rModelPart);
77 
78  static double ComputeDomainSize(const ModelPart& rModelPart);
79 
81 
82 }; // Class MedTestingUtilities
83 
85 
87 
88 } // namespace Kratos
Short class definition.
Definition: med_testing_utilities.h:35
MedTestingUtilities & operator=(MedTestingUtilities const &rOther)=delete
Assignment operator.
KRATOS_CLASS_POINTER_DEFINITION(MedTestingUtilities)
Pointer definition of MedTestingUtilities.
MedTestingUtilities(MedTestingUtilities const &rOther)=delete
Copy constructor.
MedTestingUtilities()=delete
Default constructor.
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21