Skip to content

Commit 6a3fcb7

Browse files
committed
FluidDynamicsApplication/multistage_compressible_naca_0012_Ma_0.8 Updated files to use ApplyFarfieldAndWakeProcess and perturbation_transonic_potential_flow_element
1 parent cbdaf37 commit 6a3fcb7

File tree

2 files changed

+898
-37
lines changed

2 files changed

+898
-37
lines changed

fluid_dynamics/validation/multistage_compressible_naca_0012_Ma_0.8/source/ProjectParameters.json

Lines changed: 52 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -30,48 +30,63 @@
3030
},
3131
"material_import_settings" : {
3232
"materials_filename" : "FluidMaterials.json"
33-
},
34-
"formulation": {
35-
"element_type" : "compressible"
36-
},
37-
"maximum_iterations" : 50,
38-
"echo_level" : 1,
39-
"volume_model_part_name" : "FluidParts_Fluid",
40-
"skin_parts" : ["AutomaticInlet2D_Left","Outlet2D_Right","NoSlip2D_Top","NoSlip2D_Bottom","NoSlip2D_Aerofoil"],
41-
"no_skin_parts" : [],
42-
"reform_dofs_at_each_step" : false
33+
},
34+
"formulation": {
35+
"element_type": "perturbation_transonic"
36+
},
37+
"scheme_settings": {
38+
"is_transonic": true,
39+
"initial_critical_mach" : 0.80,
40+
"initial_upwind_factor_constant" : 2.0,
41+
"target_critical_mach" : 0.90,
42+
"target_upwind_factor_constant" : 1.5,
43+
"update_relative_residual_norm" : 1e-2,
44+
"mach_number_squared_limit" : 3.0
45+
},
46+
"maximum_iterations" : 25,
47+
"echo_level" : 1,
48+
"linear_solver_settings" : {
49+
"solver_type" : "LinearSolversApplication.amgcl"
50+
},
51+
"solving_strategy_settings": {
52+
"type": "line_search",
53+
"advanced_settings" : {
54+
"max_line_search_iterations" : 5,
55+
"first_alpha_value" : 0.5,
56+
"second_alpha_value" : 1.0,
57+
"min_alpha" : 0.5,
58+
"max_alpha" : 1.0,
59+
"line_search_tolerance" : 0.5
60+
}
61+
},
62+
"convergence_criterion": "residual_criterion",
63+
"relative_tolerance" : 1e-8,
64+
"absolute_tolerance" : 1e-8,
65+
"volume_model_part_name" : "FluidParts_Fluid",
66+
"skin_parts" : ["FluidModelPart.Farfield","FluidModelPart.NoSlip2D_Aerofoil"],
67+
"no_skin_parts" : [],
68+
"reform_dofs_at_each_step" : false,
69+
"assign_neighbour_elements_to_conditions": true
4370
},
4471
"processes" : {
4572
"boundary_conditions_process_list" : [
4673
{
47-
"python_module" : "apply_far_field_process",
48-
"kratos_module" : "KratosMultiphysics.CompressiblePotentialFlowApplication",
49-
"process_name" : "FarFieldProcess",
50-
"Parameters" : {
51-
"model_part_name" : "FluidModelPart.AutomaticInlet2D_Left",
52-
"angle_of_attack" : 0.0,
53-
"mach_infinity" : 0.8,
54-
"speed_of_sound" : 332.0
55-
}
56-
},{
57-
"python_module" : "apply_far_field_process",
74+
"python_module" : "apply_far_field_and_wake_process",
5875
"kratos_module" : "KratosMultiphysics.CompressiblePotentialFlowApplication",
59-
"process_name" : "FarFieldProcess",
76+
"process_name" : "ApplyFarFieldAndWakeProcess",
6077
"Parameters" : {
61-
"model_part_name" : "FluidModelPart.Outlet2D_Right",
78+
"model_part_name" : "FluidModelPart.Farfield",
6279
"angle_of_attack" : 0.0,
6380
"mach_infinity" : 0.8,
64-
"speed_of_sound" : 332.0
65-
}
66-
},
67-
{
68-
"python_module" : "define_wake_process_2d",
69-
"kratos_module" : "KratosMultiphysics.CompressiblePotentialFlowApplication",
70-
"process_name" : "DefineWakeProcess2D",
71-
"Parameters" : {
72-
"model_part_name" : "FluidModelPart.NoSlip2D_Aerofoil",
73-
"epsilon" : 1e-9,
74-
"echo_level" : 0
81+
"speed_of_sound" : 332.0,
82+
"perturbation_field": true,
83+
"define_wake": true,
84+
"wake_type": "Operations.KratosMultiphysics.CompressiblePotentialFlowApplication.Define2DWakeOperation",
85+
"wake_parameters" : {
86+
"body_model_part_name" : "FluidModelPart.NoSlip2D_Aerofoil",
87+
"wake_distance_tolerance" : 1e-9,
88+
"echo_level" : 0
89+
}
7590
}
7691
}]
7792
}
@@ -186,9 +201,9 @@
186201
"WriteConditionsFlag" : "WriteConditions",
187202
"MultiFileFlag" : "SingleFile"
188203
},
189-
"file_label" : "time",
190-
"output_control_type" : "time",
191-
"output_interval" : 0.00001,
204+
"file_label" : "step",
205+
"output_control_type" : "step",
206+
"output_interval" : 1,
192207
"body_output" : true,
193208
"node_output" : false,
194209
"skin_output" : false,

0 commit comments

Comments
 (0)