Skip to content

Commit

Permalink
Fluid group naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jginternational committed Oct 27, 2023
1 parent d2334f2 commit 591b0f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions kratos.gid/apps/Fluid/write/writeProjectParameters.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ proc ::Fluid::write::getBoundaryConditionMeshId {} {
set groupName "_HIDDEN_$condition_name"
if {$groupName ni $listOfBCGroups} {lappend listOfBCGroups $groupName}
} else {
set groupName [::write::getSubModelPartId $cid $groupName]
if {$groupName ni $listOfBCGroups} {lappend listOfBCGroups $groupName}
}
} else {
Expand Down Expand Up @@ -287,6 +288,7 @@ proc ::Fluid::write::getNoSkinConditionMeshId {} {
set groupName [$dragGroup @n]
set groupName [write::GetWriteGroupName $groupName]
if {[GetAttribute write_mdpa_mode] eq "geometries"} {
set groupName [::write::getSubModelPartId $cid $groupName]
if {$groupName ni $listOfNoSkinGroups} {lappend listOfNoSkinGroups $groupName}
} else {
set cid [[$dragGroup parent] @n]
Expand Down
7 changes: 2 additions & 5 deletions kratos.gid/scripts/Writing/WriteProjectParameters.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,8 @@ proc write::getConditionsParametersDict {un {condition_type "Condition"}} {
set groupName [$group @n]
set cid [[$group parent] @n]
set groupName [write::GetWriteGroupName $groupName]
if {[GetConfigurationAttribute write_mdpa_mode] eq "geometries"} {
set groupId $groupName
} else {
set groupId [::write::getSubModelPartId $cid $groupName]
}
set groupId [::write::getSubModelPartId $cid $groupName]

set grouping_by ""
if {$condition_type eq "Condition"} {
set condition [::Model::getCondition $cid]
Expand Down
4 changes: 3 additions & 1 deletion kratos.gid/scripts/Writing/WriteSubModelPart.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ proc write::getSubModelPartId {cid group} {
if { [GetConfigurationAttribute write_mdpa_mode] eq "geometries"} {
# variable geometry_cnd_name
# set cid $geometry_cnd_name
return [write::GetWriteGroupName $group]
set name [write::GetWriteGroupName $group]
set good_name [write::transformGroupName $name]
return $good_name
}
set find [list $cid ${group}]
if {[dict exists $submodelparts $find]} {
Expand Down

0 comments on commit 591b0f8

Please sign in to comment.