Skip to content

Commit c5cde3b

Browse files
allow quad in fluid
1 parent e4e208f commit c5cde3b

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

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

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,17 +206,28 @@ proc ::Fluid::write::writeBoundaryConditions { } {
206206
spdAux::MergeGroups $skin_group_name $groups
207207

208208
# Write the conditions
209+
lassign [write::_getConditionDefaultName] kname nnodes
210+
set last_condition_iterator [write::writeGroupConditionByUniqueId $skin_group_name $kname $nnodes 0 $::Fluid::write::FluidConditionMap]
211+
212+
# Clean
213+
GiD_Groups delete $skin_group_name
214+
}
215+
216+
proc ::Fluid::write::_getConditionDefaultName { } {
217+
set is_quadratic [write::isquadratic]
209218
if {$::Model::SpatialDimension eq "3D"} {
210-
set kname SurfaceCondition3D3N
219+
211220
set nnodes 3
221+
if {$is_quadratic} {set nnodes 6}
222+
223+
set kname SurfaceCondition3D${nnodes}N
212224
} {
213-
set kname LineCondition2D2N
214225
set nnodes 2
226+
if {$is_quadratic} {set nnodes 3}
227+
set kname LineCondition2D${nnodes}N
215228
}
216-
set last_condition_iterator [write::writeGroupConditionByUniqueId $skin_group_name $kname $nnodes 0 $::Fluid::write::FluidConditionMap]
217-
218-
# Clean
219-
GiD_Groups delete $skin_group_name
229+
230+
return [list $kname $nnodes]
220231
}
221232

222233
proc ::Fluid::write::writeDrags { } {

0 commit comments

Comments
 (0)