Skip to content

Commit 638b36d

Browse files
function can't contain python code
1 parent ab5979a commit 638b36d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

kratos.gid/apps/FSI/examples/MokChannelWithFlexibleWall.tcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,13 @@ proc FSI::examples::TreeAssignationMokChannelFlexibleWall {args} {
188188
spdAux::SetValuesOnBaseNode $fluidNode $props
189189

190190
set fluidConditions {container[@n='FSI']/container[@n='Fluid']/container[@n='BoundaryConditions']}
191+
191192
# Fluid Interface
192193
set fluidInlet "$fluidConditions/condition\[@n='AutomaticInlet$nd'\]"
193194

194195
# Fluid Inlet
195-
set function {0.1214*(1-cos(0.1*pi*t))*y*(1-y) if t<10 else 0.2428*y*(1-y)}
196-
Fluid::xml::CreateNewInlet Inlet {new false name Total} true $function
196+
Fluid::xml::CreateNewInlet Inlet {new true name interval1 ini 0 end 10.0} true "0.1214*(1-cos(0.1*pi*t))*y*(1-y)"
197+
Fluid::xml::CreateNewInlet Inlet {new true name interval2 ini 10.0 end end} true "0.2428*y*(1-y)"
197198

198199
# Fluid Outlet
199200
set fluidOutlet "$fluidConditions/condition\[@n='Outlet$nd'\]"

0 commit comments

Comments
 (0)