Skip to content

Commit 61bdf2a

Browse files
Merge pull request #139 from KratosMultiphysics/fsi/update-examples-to-current-master
[FSI] Update examples to current master
2 parents 314ee6b + 57a539c commit 61bdf2a

File tree

8 files changed

+4543
-4400
lines changed

8 files changed

+4543
-4400
lines changed

fluid_structure_interaction/validation/embedded_fsi_lid_driven_cavity/source/ProjectParameters.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@
6161
"absolute_velocity_tolerance" : 1e-10,
6262
"relative_pressure_tolerance" : 1e-8,
6363
"absolute_pressure_tolerance" : 1e-10,
64-
"volume_model_part_name" : "FluidParts_Fluid",
65-
"skin_parts" : ["Outlet3D_Outlet","NoSlip3D_Walls","FluidNoSlipInterface3D_FluidInterface"],
66-
"no_skin_parts" : ["VelocityConstraints3D_Inlet","VelocityConstraints3D_InletWalls","ALEMeshDisplacementBC3D_Inlet","ALEMeshDisplacementBC3D_InletWalls","ALEMeshDisplacementBC3D_Outlet","ALEMeshDisplacementBC3D_Walls"],
64+
"volume_model_part_name" : "FluidModelPart.FluidParts_Fluid",
65+
"skin_parts" : ["FluidModelPart.Outlet3D_Outlet","FluidModelPart.NoSlip3D_Walls","FluidModelPart.FluidNoSlipInterface3D_FluidInterface"],
66+
"no_skin_parts" : ["FluidModelPart.VelocityConstraints3D_Inlet","FluidModelPart.VelocityConstraints3D_InletWalls","FluidModelPart.ALEMeshDisplacementBC3D_Inlet","FluidModelPart.ALEMeshDisplacementBC3D_InletWalls","FluidModelPart.ALEMeshDisplacementBC3D_Outlet","FluidModelPart.ALEMeshDisplacementBC3D_Walls"],
6767
"time_stepping" : {
6868
"automatic_time_step" : false,
6969
"time_step" : 0.025

fluid_structure_interaction/validation/embedded_fsi_membrane_airfoil/source/ProjectParameters.json

Lines changed: 105 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"parallel_type": "OpenMP",
66
"echo_level": 0,
77
"start_time": 0.0,
8-
"end_time": 1.0e0
8+
"end_time": 1.0
99
},
1010
"solver_settings": {
1111
"solver_type": "partitioned_embedded",
@@ -27,7 +27,7 @@
2727
"materials_filename": "StructuralMaterials.json"
2828
},
2929
"time_stepping": {
30-
"time_step": 5e-3
30+
"time_step": 2.0e-3
3131
},
3232
"line_search" : false,
3333
"convergence_criterion" : "residual_criterion",
@@ -64,13 +64,13 @@
6464
"no_skin_parts" : [],
6565
"time_stepping" : {
6666
"automatic_time_step": false,
67-
"time_step": 5e-3
67+
"time_step": 2.0e-3
6868
},
6969
"formulation": {
7070
"element_type": "embedded_weakly_compressible_navier_stokes_discontinuous",
7171
"is_slip": true,
7272
"slip_length": 1.0e6,
73-
"penalty_coefficient": 1.0e3,
73+
"penalty_coefficient": 1.0e2,
7474
"dynamic_tau": 1.0
7575
},
7676
"fm_ale_settings": {
@@ -203,14 +203,17 @@
203203
}
204204
}],
205205
"fluid_gravity" : [],
206-
"fluid_auxiliar_process_list" : [{
207-
"python_module": "apply_embedded_postprocess_process",
208-
"kratos_module": "KratosMultiphysics.FluidDynamicsApplication",
209-
"process_name": "ApplyEmbeddedPostprocessrocess",
210-
"Parameters": {
211-
"model_part_name": "FluidModelPart.FluidParts_Fluid"
212-
}
213-
}]
206+
"fluid_auxiliar_process_list" : []
207+
// "fluid_auxiliar_process_list" : [{
208+
// "name": "Processes.KratosMultiphysics.FluidDynamicsApplication.EmbeddedSkinVisualizationProcess",
209+
// "Parameters": {
210+
// "model_part_name": "FluidModelPart.FluidParts_Fluid",
211+
// "visualization_model_part_name" : "FluidModelPartVisualization",
212+
// "reform_model_part_at_each_time_step" : true,
213+
// "level_set_type" : "discontinuous",
214+
// "shape_functions" : "ausas"
215+
// }
216+
// }]
214217
},
215218
"output_processes":{
216219
"gid_output" : [{
@@ -271,6 +274,96 @@
271274
"point_data_configuration": []
272275
}
273276
}
277+
// },{
278+
// "python_module": "gid_output_process",
279+
// "kratos_module": "KratosMultiphysics",
280+
// "process_name": "GiDOutputProcess",
281+
// "Parameters": {
282+
// "model_part_name": "FluidModelPartVisualization",
283+
// "output_name": "gordnier_membrane_fluid_visualization",
284+
// "postprocess_parameters": {
285+
// "result_file_configuration": {
286+
// "gidpost_flags": {
287+
// "GiDPostMode": "GiD_PostBinary",
288+
// "WriteDeformedMeshFlag": "WriteDeformed",
289+
// "WriteConditionsFlag": "WriteConditions",
290+
// "MultiFileFlag": "MultipleFiles"
291+
// },
292+
// "file_label": "time",
293+
// "output_control_type": "step",
294+
// "output_interval" : 1,
295+
// "body_output": true,
296+
// "node_output": false,
297+
// "skin_output": false,
298+
// "plane_output": [],
299+
// "nodal_results": ["VELOCITY","PRESSURE"],
300+
// "nodal_nonhistorical_results": [],
301+
// "elemental_conditional_flags_results": [],
302+
// "gauss_point_results": []
303+
// },
304+
// "point_data_configuration": []
305+
// }
306+
// }
307+
// },{
308+
// "python_module" : "gid_output_process",
309+
// "kratos_module" : "KratosMultiphysics",
310+
// "process_name" : "GiDOutputProcess",
311+
// "help" : "This process writes postprocessing files for GiD",
312+
// "Parameters" : {
313+
// "model_part_name" : "FSICouplingInterfaceStructure",
314+
// "output_name" : "gordnier_membrane_coupling_interface_str",
315+
// "postprocess_parameters" : {
316+
// "result_file_configuration" : {
317+
// "gidpost_flags" : {
318+
// "GiDPostMode" : "GiD_PostBinary",
319+
// "WriteDeformedMeshFlag" : "WriteDeformed",
320+
// "WriteConditionsFlag" : "WriteConditions",
321+
// "MultiFileFlag" : "SingleFile"
322+
// },
323+
// "file_label" : "time",
324+
// "output_control_type" : "step",
325+
// "output_interval" : 1,
326+
// "body_output" : true,
327+
// "node_output" : false,
328+
// "skin_output" : false,
329+
// "plane_output" : [],
330+
// "nodal_results" : ["DISPLACEMENT","NORMAL","LINE_LOAD","POSITIVE_FACE_PRESSURE","NEGATIVE_FACE_PRESSURE"],
331+
// "gauss_point_results" : [],
332+
// "nodal_nonhistorical_results" : []
333+
// },
334+
// "point_data_configuration" : []
335+
// }
336+
// }
337+
// },{
338+
// "python_module" : "gid_output_process",
339+
// "kratos_module" : "KratosMultiphysics",
340+
// "process_name" : "GiDOutputProcess",
341+
// "help" : "This process writes postprocessing files for GiD",
342+
// "Parameters" : {
343+
// "model_part_name" : "FSICouplingInterfaceFluid",
344+
// "output_name" : "gordnier_membrane_coupling_interface_fl",
345+
// "postprocess_parameters" : {
346+
// "result_file_configuration" : {
347+
// "gidpost_flags" : {
348+
// "GiDPostMode" : "GiD_PostBinary",
349+
// "WriteDeformedMeshFlag" : "WriteDeformed",
350+
// "WriteConditionsFlag" : "WriteConditions",
351+
// "MultiFileFlag" : "SingleFile"
352+
// },
353+
// "file_label" : "time",
354+
// "output_control_type" : "step",
355+
// "output_interval" : 1,
356+
// "body_output" : true,
357+
// "node_output" : false,
358+
// "skin_output" : false,
359+
// "plane_output" : [],
360+
// "nodal_results" : ["DISPLACEMENT","POSITIVE_FACE_PRESSURE","NEGATIVE_FACE_PRESSURE"],
361+
// "gauss_point_results" : [],
362+
// "nodal_nonhistorical_results" : []
363+
// },
364+
// "point_data_configuration" : []
365+
// }
366+
// }
274367
}]
275368
}
276369
}

fluid_structure_interaction/validation/embedded_fsi_membrane_airfoil/source/embedded_fsi_membrane_airfoil_structure.mdpa

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,54 +6,54 @@ Begin Properties 0
66
End Properties
77
Begin Nodes
88
1 -0.0748173038 0.0052317355 0.0000000000
9-
2 -0.0736482834 0.0051499897 0.0000000000
10-
3 -0.0724792630 0.0050682438 0.0000000000
9+
2 -0.0736482834 0.0051499896 0.0000000000
10+
3 -0.0724792631 0.0050682438 0.0000000000
1111
4 -0.0713102427 0.0049864979 0.0000000000
12-
5 -0.0701412223 0.0049047521 0.0000000000
12+
5 -0.0701412223 0.0049047520 0.0000000000
1313
6 -0.0689722019 0.0048230062 0.0000000000
14-
7 -0.0678031815 0.0047412603 0.0000000000
15-
8 -0.0666341612 0.0046595145 0.0000000000
14+
7 -0.0678031816 0.0047412603 0.0000000000
15+
8 -0.0666341612 0.0046595144 0.0000000000
1616
9 -0.0654651408 0.0045777686 0.0000000000
17-
10 -0.0642961204 0.0044960227 0.0000000000
18-
11 -0.0631271001 0.0044142769 0.0000000000
17+
10 -0.0642961205 0.0044960227 0.0000000000
18+
11 -0.0631271001 0.0044142768 0.0000000000
1919
12 -0.0619580797 0.0043325310 0.0000000000
2020
13 -0.0607890593 0.0042507851 0.0000000000
21-
14 -0.0596200389 0.0041690393 0.0000000000
21+
14 -0.0596200390 0.0041690392 0.0000000000
2222
15 -0.0584510186 0.0040872934 0.0000000000
2323
16 -0.0572819982 0.0040055475 0.0000000000
2424
17 -0.0561129778 0.0039238016 0.0000000000
2525
18 -0.0549439575 0.0038420558 0.0000000000
2626
19 -0.0537749371 0.0037603099 0.0000000000
2727
20 -0.0526059167 0.0036785640 0.0000000000
28-
21 -0.0514368963 0.0035968182 0.0000000000
28+
21 -0.0514368964 0.0035968182 0.0000000000
2929
22 -0.0502678760 0.0035150723 0.0000000000
3030
23 -0.0490988556 0.0034333264 0.0000000000
3131
24 -0.0479298352 0.0033515806 0.0000000000
3232
25 -0.0467608149 0.0032698347 0.0000000000
3333
26 -0.0455917945 0.0031880888 0.0000000000
3434
27 -0.0444227741 0.0031063430 0.0000000000
35-
28 -0.0432537537 0.0030245971 0.0000000000
35+
28 -0.0432537538 0.0030245971 0.0000000000
3636
29 -0.0420847334 0.0029428512 0.0000000000
3737
30 -0.0409157130 0.0028611054 0.0000000000
3838
31 -0.0397466926 0.0027793595 0.0000000000
3939
32 -0.0385776723 0.0026976136 0.0000000000
4040
33 -0.0374086519 0.0026158678 0.0000000000
4141
34 -0.0362396315 0.0025341219 0.0000000000
42-
35 -0.0350706111 0.0024523760 0.0000000000
43-
36 -0.0339015908 0.0023706302 0.0000000000
42+
35 -0.0350706112 0.0024523760 0.0000000000
43+
36 -0.0339015908 0.0023706301 0.0000000000
4444
37 -0.0327325704 0.0022888843 0.0000000000
4545
38 -0.0315635500 0.0022071384 0.0000000000
46-
39 -0.0303945297 0.0021253926 0.0000000000
46+
39 -0.0303945297 0.0021253925 0.0000000000
4747
40 -0.0292255093 0.0020436467 0.0000000000
4848
41 -0.0280564889 0.0019619008 0.0000000000
49-
42 -0.0268874685 0.0018801550 0.0000000000
49+
42 -0.0268874686 0.0018801549 0.0000000000
5050
43 -0.0257184482 0.0017984091 0.0000000000
5151
44 -0.0245494278 0.0017166632 0.0000000000
52-
45 -0.0233804074 0.0016349174 0.0000000000
52+
45 -0.0233804074 0.0016349173 0.0000000000
5353
46 -0.0222113871 0.0015531715 0.0000000000
5454
47 -0.0210423667 0.0014714256 0.0000000000
55-
48 -0.0198733463 0.0013896798 0.0000000000
56-
49 -0.0187043259 0.0013079339 0.0000000000
55+
48 -0.0198733463 0.0013896797 0.0000000000
56+
49 -0.0187043260 0.0013079339 0.0000000000
5757
50 -0.0175353056 0.0012261880 0.0000000000
5858
51 -0.0163662852 0.0011444421 0.0000000000
5959
52 -0.0151972648 0.0010626963 0.0000000000
@@ -85,54 +85,54 @@ Begin Nodes
8585
78 0.0151972648 -0.0010626963 0.0000000000
8686
79 0.0163662852 -0.0011444421 0.0000000000
8787
80 0.0175353056 -0.0012261880 0.0000000000
88-
81 0.0187043259 -0.0013079339 0.0000000000
89-
82 0.0198733463 -0.0013896798 0.0000000000
88+
81 0.0187043260 -0.0013079339 0.0000000000
89+
82 0.0198733463 -0.0013896797 0.0000000000
9090
83 0.0210423667 -0.0014714256 0.0000000000
9191
84 0.0222113871 -0.0015531715 0.0000000000
92-
85 0.0233804074 -0.0016349174 0.0000000000
92+
85 0.0233804074 -0.0016349173 0.0000000000
9393
86 0.0245494278 -0.0017166632 0.0000000000
9494
87 0.0257184482 -0.0017984091 0.0000000000
95-
88 0.0268874685 -0.0018801550 0.0000000000
95+
88 0.0268874686 -0.0018801549 0.0000000000
9696
89 0.0280564889 -0.0019619008 0.0000000000
9797
90 0.0292255093 -0.0020436467 0.0000000000
98-
91 0.0303945297 -0.0021253926 0.0000000000
98+
91 0.0303945297 -0.0021253925 0.0000000000
9999
92 0.0315635500 -0.0022071384 0.0000000000
100100
93 0.0327325704 -0.0022888843 0.0000000000
101-
94 0.0339015908 -0.0023706302 0.0000000000
102-
95 0.0350706111 -0.0024523760 0.0000000000
101+
94 0.0339015908 -0.0023706301 0.0000000000
102+
95 0.0350706112 -0.0024523760 0.0000000000
103103
96 0.0362396315 -0.0025341219 0.0000000000
104-
97 0.0374086519 -0.0026158678 0.0000000000
104+
97 0.0374086519 -0.0026158677 0.0000000000
105105
98 0.0385776723 -0.0026976136 0.0000000000
106106
99 0.0397466926 -0.0027793595 0.0000000000
107107
100 0.0409157130 -0.0028611054 0.0000000000
108108
101 0.0420847334 -0.0029428512 0.0000000000
109-
102 0.0432537537 -0.0030245971 0.0000000000
109+
102 0.0432537538 -0.0030245971 0.0000000000
110110
103 0.0444227741 -0.0031063430 0.0000000000
111111
104 0.0455917945 -0.0031880888 0.0000000000
112112
105 0.0467608149 -0.0032698347 0.0000000000
113113
106 0.0479298352 -0.0033515806 0.0000000000
114114
107 0.0490988556 -0.0034333264 0.0000000000
115115
108 0.0502678760 -0.0035150723 0.0000000000
116-
109 0.0514368963 -0.0035968182 0.0000000000
116+
109 0.0514368964 -0.0035968182 0.0000000000
117117
110 0.0526059167 -0.0036785640 0.0000000000
118118
111 0.0537749371 -0.0037603099 0.0000000000
119119
112 0.0549439575 -0.0038420558 0.0000000000
120-
113 0.0561129778 -0.0039238016 0.0000000000
120+
113 0.0561129779 -0.0039238016 0.0000000000
121121
114 0.0572819982 -0.0040055475 0.0000000000
122122
115 0.0584510186 -0.0040872934 0.0000000000
123-
116 0.0596200389 -0.0041690393 0.0000000000
123+
116 0.0596200390 -0.0041690392 0.0000000000
124124
117 0.0607890593 -0.0042507851 0.0000000000
125125
118 0.0619580797 -0.0043325310 0.0000000000
126-
119 0.0631271001 -0.0044142769 0.0000000000
127-
120 0.0642961204 -0.0044960227 0.0000000000
126+
119 0.0631271001 -0.0044142768 0.0000000000
127+
120 0.0642961205 -0.0044960227 0.0000000000
128128
121 0.0654651408 -0.0045777686 0.0000000000
129-
122 0.0666341612 -0.0046595145 0.0000000000
130-
123 0.0678031815 -0.0047412603 0.0000000000
129+
122 0.0666341612 -0.0046595144 0.0000000000
130+
123 0.0678031816 -0.0047412603 0.0000000000
131131
124 0.0689722019 -0.0048230062 0.0000000000
132-
125 0.0701412223 -0.0049047521 0.0000000000
132+
125 0.0701412223 -0.0049047520 0.0000000000
133133
126 0.0713102427 -0.0049864979 0.0000000000
134-
127 0.0724792630 -0.0050682438 0.0000000000
135-
128 0.0736482834 -0.0051499897 0.0000000000
134+
127 0.0724792631 -0.0050682438 0.0000000000
135+
128 0.0736482834 -0.0051499896 0.0000000000
136136
129 0.0748173038 -0.0052317355 0.0000000000
137137
End Nodes
138138

fluid_structure_interaction/validation/embedded_fsi_mixer_Y/source/MainKratos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def Initialize(self):
2121
def ApplyBoundaryConditions(self):
2222
super().ApplyBoundaryConditions()
2323

24-
model_part = self.model.GetModelPart("Structure.DISPLACEMENT_DisplacementBC")
24+
model_part = self.model.GetModelPart("Structure.Parts_Solid_DisplacementBC")
2525
time = model_part.ProcessInfo[KratosMultiphysics.TIME]
2626
tol_zero = 1.0e-12
2727
if (numpy.trunc(time // (2.0 * numpy.pi)) % 2) < tol_zero:

0 commit comments

Comments
 (0)