Skip to content

Commit 591b0f8

Browse files
Fluid group naming
1 parent d2334f2 commit 591b0f8

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

kratos.gid/apps/Fluid/write/writeProjectParameters.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ proc ::Fluid::write::getBoundaryConditionMeshId {} {
257257
set groupName "_HIDDEN_$condition_name"
258258
if {$groupName ni $listOfBCGroups} {lappend listOfBCGroups $groupName}
259259
} else {
260+
set groupName [::write::getSubModelPartId $cid $groupName]
260261
if {$groupName ni $listOfBCGroups} {lappend listOfBCGroups $groupName}
261262
}
262263
} else {
@@ -287,6 +288,7 @@ proc ::Fluid::write::getNoSkinConditionMeshId {} {
287288
set groupName [$dragGroup @n]
288289
set groupName [write::GetWriteGroupName $groupName]
289290
if {[GetAttribute write_mdpa_mode] eq "geometries"} {
291+
set groupName [::write::getSubModelPartId $cid $groupName]
290292
if {$groupName ni $listOfNoSkinGroups} {lappend listOfNoSkinGroups $groupName}
291293
} else {
292294
set cid [[$dragGroup parent] @n]

kratos.gid/scripts/Writing/WriteProjectParameters.tcl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,8 @@ proc write::getConditionsParametersDict {un {condition_type "Condition"}} {
256256
set groupName [$group @n]
257257
set cid [[$group parent] @n]
258258
set groupName [write::GetWriteGroupName $groupName]
259-
if {[GetConfigurationAttribute write_mdpa_mode] eq "geometries"} {
260-
set groupId $groupName
261-
} else {
262-
set groupId [::write::getSubModelPartId $cid $groupName]
263-
}
259+
set groupId [::write::getSubModelPartId $cid $groupName]
260+
264261
set grouping_by ""
265262
if {$condition_type eq "Condition"} {
266263
set condition [::Model::getCondition $cid]

kratos.gid/scripts/Writing/WriteSubModelPart.tcl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ proc write::getSubModelPartId {cid group} {
250250
if { [GetConfigurationAttribute write_mdpa_mode] eq "geometries"} {
251251
# variable geometry_cnd_name
252252
# set cid $geometry_cnd_name
253-
return [write::GetWriteGroupName $group]
253+
set name [write::GetWriteGroupName $group]
254+
set good_name [write::transformGroupName $name]
255+
return $good_name
254256
}
255257
set find [list $cid ${group}]
256258
if {[dict exists $submodelparts $find]} {

0 commit comments

Comments
 (0)