Hi, I need to get the values created from fluidforce unit and use it to set adjust the boundary conditions.
I can see that the value is saved in
CALL ListAddConstReal( Model % Simulation, &
'res: fluid force 2 '//BoundaryName(1:nlen), Forces(k,2) )
but I cannot figure out how to get that value back out. Can you tell me what file holds the type definitions (I would love a hint on how this works too)
Thank you
Brian
Fluid Force Value
-
- Site Admin
- Posts: 4838
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: Fluid Force Value
Hi Brian
There is typically a ListGet command corresponding to each ListAdd command. I.e.
The strings starting with 'res:' are automatically saved by SaveScalars (if used) to a file. The intended use is not for coupling since the name string is not fixed, but of course such use is also possible.
Note that if you're doing normal FSI simulation the solvers can fetch the local forces. One could use integrated BCs when coupling models of different dimension. See for example Tutorial 20 for coupling 1D models with 2D models in arterial flow simulations.
-Peter
There is typically a ListGet command corresponding to each ListAdd command. I.e.
Code: Select all
CALL ListAddConstReal( Model % Simulation,'my force',force)
force = ListGetConstReal( Model % Simulation,'my force')
Note that if you're doing normal FSI simulation the solvers can fetch the local forces. One could use integrated BCs when coupling models of different dimension. See for example Tutorial 20 for coupling 1D models with 2D models in arterial flow simulations.
-Peter