Skip to content

Commit f023087

Browse files
Fluid dependant apps still dont write geometries
1 parent 21ef0b6 commit f023087

14 files changed

Lines changed: 28 additions & 7 deletions

File tree

kratos.gid/apps/Buoyancy/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"write": {
3838
"coordinates": "all",
3939
"properties_location": "json",
40-
"model_part_name": "ThermalModelPart"
40+
"model_part_name": "ThermalModelPart",
41+
"write_mdpa_mode": "entities"
4142
},
4243
"main_launch_file": "../../exec/MainKratos.py",
4344
"examples": "examples/examples.xml"

kratos.gid/apps/Buoyancy/write/write.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ proc ::Buoyancy::write::writeModelPartEvent { } {
2020

2121
# Start Fluid write variables
2222
Fluid::write::Init
23+
# Fluid has implemented the geometry mode, but we do not use it yet in inherited apps
24+
::Fluid::write::SetAttribute write_mdpa_mode [::Buoyancy::GetWriteProperty write_mdpa_mode]
2325
# Start Fluid write conditions map from scratch
2426
Fluid::write::InitConditionsMap
2527

kratos.gid/apps/CompressibleFluid/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"materials_file": "FluidMaterials.json",
4343
"properties_location": "json",
4444
"model_part_name": "FluidModelPart",
45-
"output_model_part_name": "fluid_computational_model_part"
45+
"output_model_part_name": "fluid_computational_model_part",
46+
"write_mdpa_mode": "entities"
4647
},
4748
"main_launch_file": "python/MainKratos.py",
4849
"examples": "examples/examples.xml",

kratos.gid/apps/CompressibleFluid/write/write.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ namespace eval ::CompressibleFluid::write {
1010
proc ::CompressibleFluid::write::Init { } {
1111
# Namespace variables inicialization
1212
::Fluid::write::Init
13+
# Fluid has implemented the geometry mode, but we do not use it yet in inherited apps
14+
::Fluid::write::SetAttribute write_mdpa_mode [::CompressibleFluid::GetWriteProperty write_mdpa_mode]
1315

1416
SetAttribute parts_un [::Fluid::GetUniqueName parts]
1517
SetAttribute nodal_conditions_un [::CompressibleFluid::GetUniqueName nodal_conditions]

kratos.gid/apps/EmbeddedFluid/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"write": {
4141
"coordinates": "all",
4242
"materials_file": "FluidMaterials.json",
43-
"properties_location": "json"
43+
"properties_location": "json",
44+
"write_mdpa_mode": "entities"
4445
},
4546
"main_launch_file": "../../exec/MainKratos.py",
4647
"examples": "examples/examples.xml"

kratos.gid/apps/EmbeddedFluid/write/write.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ namespace eval ::EmbeddedFluid::write {
88
proc EmbeddedFluid::write::Init { } {
99
# Namespace variables inicialization
1010
variable writeAttributes
11+
# Fluid has implemented the geometry mode, but we do not use it yet in inherited apps
12+
::Fluid::write::SetAttribute write_mdpa_mode [::EmbeddedFluid::GetWriteProperty write_mdpa_mode]
1113
set writeAttributes [::Fluid::write::GetAttributes]
1214
}
1315

kratos.gid/apps/FSI/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"materials_file": "StructuralMaterials.json",
5454
"properties_location": "json",
5555
"model_part_name": "Structure",
56-
"enable_dynamic_substepping": false
56+
"enable_dynamic_substepping": false,
57+
"write_mdpa_mode": "entities"
5758
},
5859
"main_launch_file": "../../exec/MainKratos.py",
5960
"examples": "examples/examples.xml"

kratos.gid/apps/FSI/write/write.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ proc ::FSI::write::writeModelPartEvent { } {
2323
set filename [Kratos::GetModelName]
2424

2525
Fluid::write::Init
26+
# Fluid has implemented the geometry mode, but we do not use it yet in inherited apps
27+
::Fluid::write::SetAttribute write_mdpa_mode [::FSI::GetWriteProperty write_mdpa_mode]
2628
Fluid::write::InitConditionsMap
2729
Fluid::write::SetCoordinatesByGroups 1
2830
write::writeAppMDPA Fluid

kratos.gid/apps/FluidDEM/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"wizard": false
3636
},
3737
"write": {
38-
"coordinates": "groups"
38+
"coordinates": "groups",
39+
"write_mdpa_mode": "entities"
3940
},
4041
"main_launch_file": "python/MainKratos.py",
4142
"examples": "examples/examples.xml"

kratos.gid/apps/FluidDEM/write/write.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ proc FluidDEM::write::writeModelPartEvent { } {
2121
set filename [Kratos::GetModelName]
2222

2323
Fluid::write::Init
24+
# Fluid has implemented the geometry mode, but we do not use it yet in inherited apps
25+
::Fluid::write::SetAttribute write_mdpa_mode [::FluidDEM::GetWriteProperty write_mdpa_mode]
2426
Fluid::write::InitConditionsMap
2527
Fluid::write::SetCoordinatesByGroups 1
2628
write::writeAppMDPA Fluid

0 commit comments

Comments
 (0)