-
Notifications
You must be signed in to change notification settings - Fork 248
/
Copy pathkratos_application.h
726 lines (541 loc) · 24.9 KB
/
kratos_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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ \.
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Pooyan Dadvand
// Riccardo Rossi
//
#pragma once
// System includes
#include <string>
#include <iostream>
// Project includes
#include "includes/element.h"
#include "includes/condition.h"
#include "includes/kratos_components.h"
#include "includes/geometrical_object.h"
#include "includes/periodic_condition.h"
#include "includes/master_slave_constraint.h"
#include "input_output/logger.h"
#include "utilities/quaternion.h"
#include "constraints/linear_master_slave_constraint.h"
// Geometries definition
#include "geometries/register_kratos_components_for_geometry.h"
#include "geometries/line_2d_2.h"
#include "geometries/line_2d_3.h"
#include "geometries/line_3d_2.h"
#include "geometries/line_3d_3.h"
#include "geometries/point.h"
#include "geometries/point_2d.h"
#include "geometries/point_3d.h"
#include "geometries/sphere_3d_1.h"
#include "geometries/triangle_2d_3.h"
#include "geometries/triangle_2d_6.h"
#include "geometries/triangle_3d_3.h"
#include "geometries/triangle_3d_6.h"
#include "geometries/quadrilateral_2d_4.h"
#include "geometries/quadrilateral_2d_8.h"
#include "geometries/quadrilateral_2d_9.h"
#include "geometries/quadrilateral_3d_4.h"
#include "geometries/quadrilateral_3d_8.h"
#include "geometries/quadrilateral_3d_9.h"
#include "geometries/tetrahedra_3d_4.h"
#include "geometries/tetrahedra_3d_10.h"
#include "geometries/prism_3d_6.h"
#include "geometries/prism_3d_15.h"
#include "geometries/pyramid_3d_5.h"
#include "geometries/pyramid_3d_13.h"
#include "geometries/hexahedra_3d_8.h"
#include "geometries/hexahedra_3d_20.h"
#include "geometries/hexahedra_3d_27.h"
#include "geometries/quadrature_point_geometry.h"
#include "geometries/coupling_geometry.h"
// Elements
#include "elements/mesh_element.h"
#include "elements/distance_calculation_element_simplex.h"
#include "elements/edge_based_gradient_recovery_element.h"
#include "elements/levelset_convection_element_simplex.h"
#include "elements/levelset_convection_element_simplex_algebraic_stabilization.h"
// Conditions
#include "conditions/mesh_condition.h"
// Modelers
#include "modeler/modeler.h"
#include "modeler/cad_io_modeler.h"
#include "modeler/cad_tessellation_modeler.h"
#include "modeler/serial_model_part_combinator_modeler.h"
#include "modeler/combine_model_part_modeler.h"
#include "modeler/connectivity_preserve_modeler.h"
#include "modeler/voxel_mesh_generator_modeler.h"
#include "modeler/clean_up_problematic_triangles_modeler.h"
namespace Kratos {
///@name Kratos Classes
///@{
/**
* @class KratosApplication
* @brief This class defines the interface with kernel for all applications in Kratos.
* @details The application class defines the interface necessary for providing the information needed by Kernel in order to configure the whole system correctly.
* @ingroup KratosCore
* @author Pooyan Dadvand
* @author Riccardo Rossi
*/
class KRATOS_API(KRATOS_CORE) KratosApplication {
public:
///@name Type Definitions
///@{
typedef Node NodeType;
typedef Geometry<NodeType> GeometryType;
/// Pointer definition of KratosApplication
KRATOS_CLASS_POINTER_DEFINITION(KratosApplication);
///@}
///@name Life Cycle
///@{
/// Default constructor.
explicit KratosApplication(const std::string& ApplicationName);
KratosApplication() = delete;
/// Copy constructor.
KratosApplication(KratosApplication const& rOther)
: mpVariableData(rOther.mpVariableData),
mpIntVariables(rOther.mpIntVariables),
mpUnsignedIntVariables(rOther.mpUnsignedIntVariables),
mpDoubleVariables(rOther.mpDoubleVariables),
mpArray1DVariables(rOther.mpArray1DVariables),
mpArray1D4Variables(rOther.mpArray1D4Variables),
mpArray1D6Variables(rOther.mpArray1D6Variables),
mpArray1D9Variables(rOther.mpArray1D9Variables),
mpVectorVariables(rOther.mpVectorVariables),
mpMatrixVariables(rOther.mpMatrixVariables),
mpGeometries(rOther.mpGeometries),
mpElements(rOther.mpElements),
mpConditions(rOther.mpConditions),
mpMasterSlaveConstraints(rOther.mpMasterSlaveConstraints),
mpModelers(rOther.mpModelers) {}
/// Destructor.
virtual ~KratosApplication()
{
DeregisterVariables();
DeregisterCommonComponents();
DeregisterApplication();
}
///@}
///@name Operations
///@{
virtual void Register()
{
RegisterKratosCore();
}
void RegisterKratosCore();
void DeregisterVariables();
template<class TComponentsContainer>
void DeregisterComponent(std::string const & rComponentName);
/**
* @brief This method is used to unregister common components of the application.
* @details This method is used to unregister common components of the application.
* The list of unregistered components are the ones exposed in the common KratosComponents interface:
* - Geometries
* - Elements
* - Conditions
* - MasterSlaveConstraints
* - Modelers
* - ConstitutiveLaws
*/
void DeregisterCommonComponents();
/**
* @brief This method is used to unregister specific application components.
* @details This method is used to unregister specific application components.
*/
virtual void DeregisterApplication();
/**
* @brief This method is used to unregister mappers registered by the application..
* @details This method is used to unregister mappers registered by the application..
*/
void DeregisterMappers();
///////////////////////////////////////////////////////////////////
void RegisterVariables(); // This contains the whole list of common variables in the Kratos Core
void RegisterDeprecatedVariables(); //TODO: remove, this variables should not be there
void RegisterCFDVariables(); //TODO: move to application
void RegisterALEVariables(); //TODO: move to application
void RegisterMappingVariables(); //TODO: move to application
void RegisterDEMVariables(); //TODO: move to application
void RegisterFSIVariables(); //TODO: move to application
void RegisterMATVariables(); //TODO: move to application
void RegisterGlobalPointerVariables();
const std::string& Name() const { return mApplicationName; }
///@}
///@name Access
///@{
// I have to see why the above version is not working for multi thread ...
// Anyway its working with these functions.Pooyan.
KratosComponents<Variable<int> >::ComponentsContainerType& GetComponents(
Variable<int> const& rComponentType) {
return *mpIntVariables;
}
KratosComponents<Variable<unsigned int> >::ComponentsContainerType&
GetComponents(Variable<unsigned int> const& rComponentType) {
return *mpUnsignedIntVariables;
}
KratosComponents<Variable<double> >::ComponentsContainerType& GetComponents(
Variable<double> const& rComponentType) {
return *mpDoubleVariables;
}
KratosComponents<Variable<array_1d<double, 3> > >::ComponentsContainerType&
GetComponents(Variable<array_1d<double, 3> > const& rComponentType) {
return *mpArray1DVariables;
}
KratosComponents<Variable<array_1d<double, 4> > >::ComponentsContainerType&
GetComponents(Variable<array_1d<double, 4> > const& rComponentType) {
return *mpArray1D4Variables;
}
KratosComponents<Variable<array_1d<double, 6> > >::ComponentsContainerType&
GetComponents(Variable<array_1d<double, 6> > const& rComponentType) {
return *mpArray1D6Variables;
}
KratosComponents<Variable<array_1d<double, 9> > >::ComponentsContainerType&
GetComponents(Variable<array_1d<double, 9> > const& rComponentType) {
return *mpArray1D9Variables;
}
KratosComponents<Variable<Quaternion<double> > >::ComponentsContainerType&
GetComponents(Variable<Quaternion<double> > const& rComponentType) {
return *mpQuaternionVariables;
}
KratosComponents<Variable<Vector> >::ComponentsContainerType& GetComponents(
Variable<Vector> const& rComponentType) {
return *mpVectorVariables;
}
KratosComponents<Variable<Matrix> >::ComponentsContainerType& GetComponents(
Variable<Matrix> const& rComponentType) {
return *mpMatrixVariables;
}
KratosComponents<VariableData>::ComponentsContainerType& GetVariables() {
return *mpVariableData;
}
KratosComponents<Geometry<Node>>::ComponentsContainerType& GetGeometries() {
return *mpGeometries;
}
KratosComponents<Element>::ComponentsContainerType& GetElements() {
return *mpElements;
}
KratosComponents<Condition>::ComponentsContainerType& GetConditions() {
return *mpConditions;
}
KratosComponents<MasterSlaveConstraint>::ComponentsContainerType& GetMasterSlaveConstraints() {
return *mpMasterSlaveConstraints;
}
KratosComponents<Modeler>::ComponentsContainerType& GetModelers() {
return *mpModelers;
}
void SetComponents(
KratosComponents<VariableData>::ComponentsContainerType const&
VariableDataComponents)
{
for (auto it = mpVariableData->begin(); it != mpVariableData->end(); it++) {
std::string const& r_variable_name = it->second->Name();
auto it_variable = VariableDataComponents.find(r_variable_name);
KRATOS_ERROR_IF(it_variable == VariableDataComponents.end()) << "This variable is not registered in Kernel : " << *(it_variable->second) << std::endl;
}
}
void SetComponents(KratosComponents<Geometry<Node>>::ComponentsContainerType const& GeometryComponents)
{
mpGeometries->insert(GeometryComponents.begin(), GeometryComponents.end());
}
void SetComponents(KratosComponents<Element>::ComponentsContainerType const&
ElementComponents)
{
// It's better to make a loop over new components and add them if they are NOT already exist in application. Or make an ERROR for incompatibility between applications.
mpElements->insert(ElementComponents.begin(), ElementComponents.end());
}
void SetComponents(KratosComponents<MasterSlaveConstraint>::ComponentsContainerType const&
MasterSlaveConstraintComponents)
{
mpMasterSlaveConstraints->insert(MasterSlaveConstraintComponents.begin(), MasterSlaveConstraintComponents.end());
}
void SetComponents(KratosComponents<Modeler>::ComponentsContainerType const& ModelerComponents)
{
mpModelers->insert(ModelerComponents.begin(), ModelerComponents.end());
}
void SetComponents(
KratosComponents<Condition>::ComponentsContainerType const&
ConditionComponents)
{
mpConditions->insert(
ConditionComponents.begin(), ConditionComponents.end());
}
Serializer::RegisteredObjectsContainerType& GetRegisteredObjects() {
return *mpRegisteredObjects;
}
Serializer::RegisteredObjectsNameContainerType& GetRegisteredObjectsName() {
return *mpRegisteredObjectsName;
}
///@}
///@name Inquiry
///@{
///@}
///@name Input and output
///@{
/// Turn back information as a string.
virtual std::string Info() const
{
return "KratosApplication";
}
/// Print information about this object.
virtual void PrintInfo(std::ostream& rOStream) const
{
rOStream << Info();
}
/// Print object's data.
virtual void PrintData(std::ostream& rOStream) const
{
rOStream << "Variables:" << std::endl;
KratosComponents<VariableData>().PrintData(rOStream);
rOStream << std::endl;
rOStream << "Geometries:" << std::endl;
KratosComponents<Geometry<Node>>().PrintData(rOStream);
rOStream << "Elements:" << std::endl;
KratosComponents<Element>().PrintData(rOStream);
rOStream << std::endl;
rOStream << "Conditions:" << std::endl;
KratosComponents<Condition>().PrintData(rOStream);
rOStream << std::endl;
rOStream << "MasterSlaveConstraints:" << std::endl;
KratosComponents<MasterSlaveConstraint>().PrintData(rOStream);
rOStream << std::endl;
rOStream << "Modelers:" << std::endl;
KratosComponents<Modeler>().PrintData(rOStream);
}
///@}
///@name Friends
///@{
///@}
protected:
///@name Protected static Member Variables
///@{
///@}
///@name Protected member Variables
///@{
std::string mApplicationName;
// General geometries must be defined
//Points:
const Point mPointPrototype;
const Point2D<NodeType> mPoint2DPrototype = Point2D<NodeType>(GeometryType::PointsArrayType(1));
const Point3D<NodeType> mPoint3DPrototype = Point3D<NodeType>(GeometryType::PointsArrayType(1));
//Sphere
const Sphere3D1<NodeType> mSphere3D1Prototype = Sphere3D1<NodeType>(GeometryType::PointsArrayType(1));
//Lines:
const Line2D2<NodeType> mLine2D2Prototype = Line2D2<NodeType>(GeometryType::PointsArrayType(2));
const Line2D3<NodeType> mLine2D3Prototype = Line2D3<NodeType>(GeometryType::PointsArrayType(3));
const Line3D2<NodeType> mLine3D2Prototype = Line3D2<NodeType>(GeometryType::PointsArrayType(2));
const Line3D3<NodeType> mLine3D3Prototype = Line3D3<NodeType>(GeometryType::PointsArrayType(3));
//Triangles:
const Triangle2D3<NodeType> mTriangle2D3Prototype = Triangle2D3<NodeType>(GeometryType::PointsArrayType(3));
const Triangle2D6<NodeType> mTriangle2D6Prototype = Triangle2D6<NodeType>(GeometryType::PointsArrayType(6));
const Triangle3D3<NodeType> mTriangle3D3Prototype = Triangle3D3<NodeType>(GeometryType::PointsArrayType(3));
const Triangle3D6<NodeType> mTriangle3D6Prototype = Triangle3D6<NodeType>( GeometryType::PointsArrayType(6));
//Quadrilaterals:
const Quadrilateral2D4<NodeType> mQuadrilateral2D4Prototype = Quadrilateral2D4<NodeType>( GeometryType::PointsArrayType(4));
const Quadrilateral2D8<NodeType> mQuadrilateral2D8Prototype = Quadrilateral2D8<NodeType>( GeometryType::PointsArrayType(8));
const Quadrilateral2D9<NodeType> mQuadrilateral2D9Prototype = Quadrilateral2D9<NodeType>( GeometryType::PointsArrayType(9));
const Quadrilateral3D4<NodeType> mQuadrilateral3D4Prototype = Quadrilateral3D4<NodeType>( GeometryType::PointsArrayType(4));
const Quadrilateral3D8<NodeType> mQuadrilateral3D8Prototype = Quadrilateral3D8<NodeType>( GeometryType::PointsArrayType(8));
const Quadrilateral3D9<NodeType> mQuadrilateral3D9Prototype = Quadrilateral3D9<NodeType>( GeometryType::PointsArrayType(9));
//Coupling
const CouplingGeometry<NodeType> mCouplingGeometry = CouplingGeometry<NodeType>();
//Tetrahedra:
const Tetrahedra3D4<NodeType> mTetrahedra3D4Prototype = Tetrahedra3D4<NodeType>( GeometryType::PointsArrayType(4));
const Tetrahedra3D10<NodeType> mTetrahedra3D10Prototype = Tetrahedra3D10<NodeType>( GeometryType::PointsArrayType(10));
//Prisms:
const Prism3D6<NodeType> mPrism3D6Prototype = Prism3D6<NodeType>( GeometryType::PointsArrayType(6));
const Prism3D15<NodeType> mPrism3D15Prototype = Prism3D15<NodeType>( GeometryType::PointsArrayType(15));
//Pyramids:
const Pyramid3D5<NodeType> mPyramid3D5Prototype = Pyramid3D5<NodeType>( GeometryType::PointsArrayType(5));
const Pyramid3D13<NodeType> mPyramid3D13Prototype = Pyramid3D13<NodeType>( GeometryType::PointsArrayType(13));
//Hexahedra:
const Hexahedra3D8<NodeType> mHexahedra3D8Prototype = Hexahedra3D8<NodeType>( GeometryType::PointsArrayType(8));
const Hexahedra3D20<NodeType> mHexahedra3D20Prototype = Hexahedra3D20<NodeType>( GeometryType::PointsArrayType(20));
const Hexahedra3D27<NodeType> mHexahedra3D27Prototype = Hexahedra3D27<NodeType>( GeometryType::PointsArrayType(27));
//QuadraturePointGeometries:
const QuadraturePointGeometry<Node,1> mQuadraturePointGeometryPoint1D = QuadraturePointGeometry<Node,1>(GeometryType::PointsArrayType(),
GeometryShapeFunctionContainer<GeometryData::IntegrationMethod>(GeometryData::IntegrationMethod::GI_GAUSS_1, IntegrationPoint<3>(), Matrix(), Matrix()));
const QuadraturePointGeometry<Node,2,1> mQuadraturePointGeometryPoint2D = QuadraturePointGeometry<Node,2,1>(GeometryType::PointsArrayType(),
GeometryShapeFunctionContainer<GeometryData::IntegrationMethod>(GeometryData::IntegrationMethod::GI_GAUSS_1, IntegrationPoint<3>(), Matrix(), Matrix()));
const QuadraturePointGeometry<Node,3,1> mQuadraturePointGeometryPoint3D = QuadraturePointGeometry<Node,3,1>(GeometryType::PointsArrayType(),
GeometryShapeFunctionContainer<GeometryData::IntegrationMethod>(GeometryData::IntegrationMethod::GI_GAUSS_1, IntegrationPoint<3>(), Matrix(), Matrix()));
const QuadraturePointGeometry<Node,2> mQuadraturePointGeometrySurface2D = QuadraturePointGeometry<Node,2>(GeometryType::PointsArrayType(),
GeometryShapeFunctionContainer<GeometryData::IntegrationMethod>(GeometryData::IntegrationMethod::GI_GAUSS_1, IntegrationPoint<3>(), Matrix(), Matrix()));
const QuadraturePointGeometry<Node,3,2> mQuadraturePointGeometrySurface3D = QuadraturePointGeometry<Node,3,2>(GeometryType::PointsArrayType(),
GeometryShapeFunctionContainer<GeometryData::IntegrationMethod>(GeometryData::IntegrationMethod::GI_GAUSS_1, IntegrationPoint<3>(), Matrix(), Matrix()));
const QuadraturePointGeometry<Node,3> mQuadraturePointGeometryVolume3D = QuadraturePointGeometry<Node,3>(GeometryType::PointsArrayType(),
GeometryShapeFunctionContainer<GeometryData::IntegrationMethod>(GeometryData::IntegrationMethod::GI_GAUSS_1, IntegrationPoint<3>(), Matrix(), Matrix()));
// General conditions must be defined
// Generic condition
const MeshCondition mGenericCondition;
// Point conditions
const MeshCondition mPointCondition2D1N;
const MeshCondition mPointCondition3D1N;
// Line conditions
const MeshCondition mLineCondition2D2N;
const MeshCondition mLineCondition2D3N;
const MeshCondition mLineCondition3D2N;
const MeshCondition mLineCondition3D3N;
// Surface conditions
const MeshCondition mSurfaceCondition3D3N;
const MeshCondition mSurfaceCondition3D6N;
const MeshCondition mSurfaceCondition3D4N;
const MeshCondition mSurfaceCondition3D8N;
const MeshCondition mSurfaceCondition3D9N;
// Prisms conditions
const MeshCondition mPrismCondition2D4N;
const MeshCondition mPrismCondition3D6N;
// Master-Slave base constraint
const MasterSlaveConstraint mMasterSlaveConstraint;
const LinearMasterSlaveConstraint mLinearMasterSlaveConstraint;
// Periodic Condition
const PeriodicCondition mPeriodicCondition;
const PeriodicCondition mPeriodicConditionEdge;
const PeriodicCondition mPeriodicConditionCorner;
// General elements must be defined
const MeshElement mGenericElement;
// 2D elements
const MeshElement mElement2D1N; // NOTE: This would be duplicated mPointElement2D1N
const MeshElement mElement2D2N; // NOTE: This would be duplicated mLineElement2D2N
const MeshElement mElement2D3N;
const MeshElement mElement2D6N;
const MeshElement mElement2D4N;
const MeshElement mElement2D8N;
const MeshElement mElement2D9N;
// 3D elements
const MeshElement mElement3D1N; // NOTE: This would be duplicated mPointElement3D1N
const MeshElement mElement3D2N; // NOTE: This would be duplicated mLineElement3D2N
const MeshElement mElement3D3N; // NOTE: This would be duplicated mSurfaceElement3D3N
const MeshElement mElement3D4N;
const MeshElement mElement3D5N;
const MeshElement mElement3D6N;
const MeshElement mElement3D8N;
const MeshElement mElement3D10N;
const MeshElement mElement3D13N;
const MeshElement mElement3D15N;
const MeshElement mElement3D20N;
const MeshElement mElement3D27N;
// For sake of consistency and in order to define missing geometries for elements
// Point elements
const MeshElement mPointElement2D1N;
const MeshElement mPointElement3D1N;
// Line elements
const MeshElement mLineElement2D2N;
const MeshElement mLineElement2D3N;
const MeshElement mLineElement3D2N;
const MeshElement mLineElement3D3N;
// Surface elements
const MeshElement mSurfaceElement3D3N;
const MeshElement mSurfaceElement3D6N;
const MeshElement mSurfaceElement3D4N;
const MeshElement mSurfaceElement3D8N;
const MeshElement mSurfaceElement3D9N;
// Distance calculation elements
const DistanceCalculationElementSimplex<2> mDistanceCalculationElementSimplex2D3N;
const DistanceCalculationElementSimplex<3> mDistanceCalculationElementSimplex3D4N;
// Edge based gradient recovery elements
const EdgeBasedGradientRecoveryElement<2> mEdgeBasedGradientRecoveryElement2D2N;
const EdgeBasedGradientRecoveryElement<3> mEdgeBasedGradientRecoveryElement3D2N;
// Level set convection elements
const LevelSetConvectionElementSimplex<2,3> mLevelSetConvectionElementSimplex2D3N;
const LevelSetConvectionElementSimplex<3,4> mLevelSetConvectionElementSimplex3D4N;
const LevelSetConvectionElementSimplexAlgebraicStabilization<2,3> mLevelSetConvectionElementSimplexAlgebraicStabilization2D3N;
const LevelSetConvectionElementSimplexAlgebraicStabilization<3,4> mLevelSetConvectionElementSimplexAlgebraicStabilization3D4N;
// Modeler
const Modeler mModeler;
const CadIoModeler mCadIoModeler;
#if USE_TRIANGLE_NONFREE_TPL
const CadTessellationModeler mCadTessellationModeler;
#endif
const SerialModelPartCombinatorModeler mSerialModelPartCombinatorModeler;
const CombineModelPartModeler mCombineModelPartModeler;
const ConnectivityPreserveModeler mConnectivityPreserveModeler;
const VoxelMeshGeneratorModeler mVoxelMeshGeneratorModeler;
const CleanUpProblematicTrianglesModeler mCleanUpProblematicTrianglesModeler;
// Base constitutive law definition
const ConstitutiveLaw mConstitutiveLaw;
// KratosComponents definition
KratosComponents<VariableData>::ComponentsContainerType* mpVariableData;
KratosComponents<Variable<int> >::ComponentsContainerType* mpIntVariables;
KratosComponents<Variable<unsigned int> >::ComponentsContainerType* mpUnsignedIntVariables;
KratosComponents<Variable<double> >::ComponentsContainerType* mpDoubleVariables;
KratosComponents<Variable<array_1d<double, 3> > >::ComponentsContainerType* mpArray1DVariables;
KratosComponents<Variable<array_1d<double, 4> > >::ComponentsContainerType* mpArray1D4Variables;
KratosComponents<Variable<array_1d<double, 6> > >::ComponentsContainerType* mpArray1D6Variables;
KratosComponents<Variable<array_1d<double, 9> > >::ComponentsContainerType* mpArray1D9Variables;
KratosComponents<Variable<Quaternion<double> > >::ComponentsContainerType* mpQuaternionVariables;
KratosComponents<Variable<Vector> >::ComponentsContainerType* mpVectorVariables;
KratosComponents<Variable<Matrix> >::ComponentsContainerType* mpMatrixVariables;
KratosComponents<Geometry<Node>>::ComponentsContainerType* mpGeometries;
KratosComponents<Element>::ComponentsContainerType* mpElements;
KratosComponents<Condition>::ComponentsContainerType* mpConditions;
KratosComponents<MasterSlaveConstraint>::ComponentsContainerType* mpMasterSlaveConstraints;
KratosComponents<Modeler>::ComponentsContainerType* mpModelers;
// Serialization
Serializer::RegisteredObjectsContainerType* mpRegisteredObjects;
Serializer::RegisteredObjectsNameContainerType* mpRegisteredObjectsName;
///@}
///@name Protected Operators
///@{
///@}
///@name Protected Operations
///@{
///@}
///@name Protected Access
///@{
///@}
///@name Protected Inquiry
///@{
///@}
///@name Protected LifeCycle
///@{
///@}
private:
///@name Static Member Variables
///@{
///@}
///@name Member Variables
///@{
///@}
///@name Private Operators
///@{
///@}
///@name Private Operations
///@{
///@}
///@name Private Access
///@{
///@}
///@name Private Inquiry
///@{
///@}
///@name Un accessible methods
///@{
/// Assignment operator.
KratosApplication& operator=(KratosApplication const& rOther);
///@}
}; // Class KratosApplication
///@}
///@name Type Definitions
///@{
///@}
///@name Input and output
///@{
/// input stream function
inline std::istream& operator>>(std::istream& rIStream,
KratosApplication& rThis);
/// output stream function
inline std::ostream& operator<<(std::ostream& rOStream,
const KratosApplication& rThis)
{
rThis.PrintInfo(rOStream);
rOStream << std::endl;
rThis.PrintData(rOStream);
return rOStream;
}
///@}
} // namespace Kratos.