forked from KratosMultiphysics/Kratos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdam_application.h
executable file
·196 lines (151 loc) · 8.13 KB
/
dam_application.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
//
// Project Name: KratosDamApplication $
// Last Modified by: $Author: LGracia $
// Date: $Date: March 2016 $
// Revision: $Revision: 1.0 $
//
#if !defined(KRATOS_DAM_APPLICATION_H_INCLUDED )
#define KRATOS_DAM_APPLICATION_H_INCLUDED
// System includes
#include <string>
#include <iostream>
// Project includes
#include "includes/define.h"
#include "includes/kratos_application.h"
//Variables
#include "dam_application_variables.h"
//Conditions
//~ #include "custom_conditions/added_mass_condition.hpp"
#include "custom_conditions/free_surface_condition.hpp"
#include "custom_conditions/infinite_domain_condition.hpp"
#include "custom_conditions/UP_condition.hpp"
#include "custom_conditions/added_mass_condition.hpp"
//Elements
#include "custom_elements/wave_equation_element.hpp"
#include "custom_elements/small_displacement_thermo_mechanic_element.hpp"
#include "custom_elements/small_displacement_interface_element.hpp"
#include "custom_elements/small_displacement_element.hpp"
//Constitutive Laws
#include "custom_constitutive/thermal_linear_elastic_3D_law.hpp"
#include "custom_constitutive/thermal_linear_elastic_2D_plane_strain.hpp"
#include "custom_constitutive/thermal_linear_elastic_2D_plane_stress.hpp"
#include "custom_constitutive/linear_elastic_3D_law_nodal.hpp"
#include "custom_constitutive/linear_elastic_2D_plane_strain_nodal.hpp"
#include "custom_constitutive/linear_elastic_2D_plane_stress_nodal.hpp"
#include "custom_constitutive/thermal_linear_elastic_3D_law_nodal.hpp"
#include "custom_constitutive/thermal_linear_elastic_2D_plane_strain_nodal.hpp"
#include "custom_constitutive/thermal_linear_elastic_2D_plane_stress_nodal.hpp"
#include "custom_constitutive/thermal_simo_ju_local_damage_3D_law.hpp"
#include "custom_constitutive/thermal_simo_ju_local_damage_plane_strain_2D_law.hpp"
#include "custom_constitutive/thermal_simo_ju_local_damage_plane_stress_2D_law.hpp"
#include "custom_constitutive/thermal_simo_ju_nonlocal_damage_3D_law.hpp"
#include "custom_constitutive/thermal_simo_ju_nonlocal_damage_plane_strain_2D_law.hpp"
#include "custom_constitutive/thermal_simo_ju_nonlocal_damage_plane_stress_2D_law.hpp"
#include "custom_constitutive/thermal_modified_mises_nonlocal_damage_3D_law.hpp"
#include "custom_constitutive/thermal_modified_mises_nonlocal_damage_plane_strain_2D_law.hpp"
#include "custom_constitutive/thermal_modified_mises_nonlocal_damage_plane_stress_2D_law.hpp"
namespace Kratos
{
class KRATOS_API(DAM_APPLICATION) KratosDamApplication : public KratosApplication
{
public:
KRATOS_CLASS_POINTER_DEFINITION(KratosDamApplication);
// Default constructor
KratosDamApplication();
// Destructor
virtual ~KratosDamApplication(){}
void Register() override;
// Turn back information as a string
std::string Info() const override
{
return "KratosDamApplication";
}
// Print information about this object
void PrintInfo(std::ostream& rOStream) const override
{
rOStream << Info();
PrintData(rOStream);
}
// Print object's data
void PrintData(std::ostream& rOStream) const override
{
KRATOS_WATCH("in my application");
KRATOS_WATCH(KratosComponents<VariableData>::GetComponents().size() );
rOStream << "Variables:" << std::endl;
KratosComponents<VariableData>().PrintData(rOStream);
rOStream << std::endl;
rOStream << "Elements:" << std::endl;
KratosComponents<Element>().PrintData(rOStream);
rOStream << std::endl;
rOStream << "Conditions:" << std::endl;
KratosComponents<Condition>().PrintData(rOStream);
}
private:
// Member Variables
const WaveEquationElement<2,3> mWaveEquationElement2D3N;
const WaveEquationElement<2,4> mWaveEquationElement2D4N;
const WaveEquationElement<3,4> mWaveEquationElement3D4N;
const WaveEquationElement<3,8> mWaveEquationElement3D8N;
const SmallDisplacementInterfaceElement<2,4> mSmallDisplacementInterfaceElement2D4N;
const SmallDisplacementInterfaceElement<3,6> mSmallDisplacementInterfaceElement3D6N;
const SmallDisplacementInterfaceElement<3,8> mSmallDisplacementInterfaceElement3D8N;
const SmallDisplacementThermoMechanicElement mSmallDisplacementThermoMechanicElement2D3N;
const SmallDisplacementThermoMechanicElement mSmallDisplacementThermoMechanicElement2D6N;
const SmallDisplacementThermoMechanicElement mSmallDisplacementThermoMechanicElement2D4N;
const SmallDisplacementThermoMechanicElement mSmallDisplacementThermoMechanicElement2D8N;
const SmallDisplacementThermoMechanicElement mSmallDisplacementThermoMechanicElement2D9N;
const SmallDisplacementThermoMechanicElement mSmallDisplacementThermoMechanicElement3D4N;
const SmallDisplacementThermoMechanicElement mSmallDisplacementThermoMechanicElement3D10N;
const SmallDisplacementThermoMechanicElement mSmallDisplacementThermoMechanicElement3D8N;
const SmallDisplacementThermoMechanicElement mSmallDisplacementThermoMechanicElement3D20N;
const SmallDisplacementThermoMechanicElement mSmallDisplacementThermoMechanicElement3D27N;
//small displacement
const SmallDisplacementElement mSmallDisplacementElement2D3N;
const SmallDisplacementElement mSmallDisplacementElement2D4N;
const SmallDisplacementElement mSmallDisplacementElement2D6N;
const SmallDisplacementElement mSmallDisplacementElement2D8N;
const SmallDisplacementElement mSmallDisplacementElement2D9N;
const SmallDisplacementElement mSmallDisplacementElement3D4N;
const SmallDisplacementElement mSmallDisplacementElement3D6N;
const SmallDisplacementElement mSmallDisplacementElement3D8N;
const SmallDisplacementElement mSmallDisplacementElement3D10N;
const SmallDisplacementElement mSmallDisplacementElement3D15N;
const SmallDisplacementElement mSmallDisplacementElement3D20N;
const SmallDisplacementElement mSmallDisplacementElement3D27N;
const FreeSurfaceCondition<2,2> mFreeSurfaceCondition2D2N;
const FreeSurfaceCondition<3,3> mFreeSurfaceCondition3D3N;
const FreeSurfaceCondition<3,4> mFreeSurfaceCondition3D4N;
const InfiniteDomainCondition<2,2> mInfiniteDomainCondition2D2N;
const InfiniteDomainCondition<3,3> mInfiniteDomainCondition3D3N;
const InfiniteDomainCondition<3,4> mInfiniteDomainCondition3D4N;
const UPCondition<2,2> mUPCondition2D2N;
const UPCondition<3,3> mUPCondition3D3N;
const UPCondition<3,4> mUPCondition3D4N;
const AddedMassCondition<2,2> mAddedMassCondition2D2N;
const AddedMassCondition<3,3> mAddedMassCondition3D3N;
const AddedMassCondition<3,4> mAddedMassCondition3D4N;
const ThermalLinearElastic3DLaw mThermalLinearElastic3DLaw;
const ThermalLinearElastic2DPlaneStrain mThermalLinearElastic2DPlaneStrain;
const ThermalLinearElastic2DPlaneStress mThermalLinearElastic2DPlaneStress;
const LinearElastic3DLawNodal mLinearElastic3DLawNodal;
const LinearElastic2DPlaneStrainNodal mLinearElastic2DPlaneStrainNodal;
const LinearElastic2DPlaneStressNodal mLinearElastic2DPlaneStressNodal;
const ThermalLinearElastic3DLawNodal mThermalLinearElastic3DLawNodal;
const ThermalLinearElastic2DPlaneStrainNodal mThermalLinearElastic2DPlaneStrainNodal;
const ThermalLinearElastic2DPlaneStressNodal mThermalLinearElastic2DPlaneStressNodal;
const ThermalSimoJuLocalDamage3DLaw mThermalSimoJuLocalDamage3DLaw;
const ThermalSimoJuLocalDamagePlaneStrain2DLaw mThermalSimoJuLocalDamagePlaneStrain2DLaw;
const ThermalSimoJuLocalDamagePlaneStress2DLaw mThermalSimoJuLocalDamagePlaneStress2DLaw;
const ThermalSimoJuNonlocalDamage3DLaw mThermalSimoJuNonlocalDamage3DLaw;
const ThermalSimoJuNonlocalDamagePlaneStrain2DLaw mThermalSimoJuNonlocalDamagePlaneStrain2DLaw;
const ThermalSimoJuNonlocalDamagePlaneStress2DLaw mThermalSimoJuNonlocalDamagePlaneStress2DLaw;
const ThermalModifiedMisesNonlocalDamage3DLaw mThermalModifiedMisesNonlocalDamage3DLaw;
const ThermalModifiedMisesNonlocalDamagePlaneStrain2DLaw mThermalModifiedMisesNonlocalDamagePlaneStrain2DLaw;
const ThermalModifiedMisesNonlocalDamagePlaneStress2DLaw mThermalModifiedMisesNonlocalDamagePlaneStress2DLaw;
// Assignment operator.
KratosDamApplication& operator=(KratosDamApplication const& rOther);
// Copy constructor.
KratosDamApplication(KratosDamApplication const& rOther);
}; // Class KratosDamApplication
} // namespace Kratos.
#endif // KRATOS_DAM_APPLICATION_H_INCLUDED defined