CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions > OpenFOAM CC Toolkits for Fluid-Structure Interaction

Finding Q and vorticity for FSI case

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By bigphil
  • 2 Post By MFWilliams

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2022, 06:32
Default Finding Q and vorticity for FSI case
  #1
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5
MFWilliams is on a distinguished road
Hello all,


I am stuck trying to post process the results of my FSI simulation to try get data for Q and vorticity.



I have managed to get wall shear stress data by using 'wallShearStresss -region fluid', but that does not work for Q or vorticity and I get the output:
Code:
options:
  -DebugSwitches <key1=val1,key2=val2,...>
  -DimensionedConstants <key1=val1,key2=val2,...>
  -InfoSwitches <key1=val1,key2=val2,...>
  -OptimisationSwitches <key1=val1,key2=val2,...>
  -Tolerances <key1=val1,key2=val2,...>
  -case <dir>       specify alternate case directory, default is the cwd
  -constant         include the 'constant/' dir in the times list
  -dict <dictionary name>
  -dumpControlSwitches
  -latestTime       select the latest time
  -newTimes         select the new times
  -noFunctionObjects
                    do not execute functionObjects
  -noWrite
  -noZero           exclude the '0/' dir from the times list, has precedence
                    over the -withZero option
  -parallel         run in parallel
  -roots <(dir1 .. dirN)>
                    slave root directories for distributed running
  -time <ranges>    comma-separated time ranges - eg, ':10,20,40:70,1000:'
  -srcDoc           display source code in browser
  -doc              display application documentation in browser
  -help             print the usage

Using: foam-extend-4.1 (see www.foam-extend.org)
Build: 4.1-70b064d0f326

Please can somebody please help me to find Q and vorticity from an already completed simulation.


Best regards
Merlin
MFWilliams is offline   Reply With Quote

Old   March 24, 2022, 09:00
Default
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Inconveniently, many of the utilities do not yet have the "-region" option.
So your options are:
  • Make a copy of the utility of interest and add the "-region" option in the code and compile the utility with a new name e.g. myWallShearStress and place it in FOAM_USER_APPBIN
  • Or, temporarily move the fluid fields from the fluid region to the main/default region, then run the utility on the case (no need for "-region") then move the fields back, e.g. see some example bash code below

Example bash code for option 2 to move fluid region fields to the main/default region:
Code:
#!/bin/bash                                                                                                                                                                                                 

for i in $(foamListTimes)
do
    echo "${i}"
    cd "${i}"
    mv fluid/* .
    cd ..
done
Then run the utility.

Example bash code for option 2 to move main/default fields back to the fluid region:
Code:
#!/bin/bash                                                                                                                                                                                                 

shopt -s extglob

for i in $(foamListTimes)
do
    echo "${i}"
    cd "${i}"
    mv !(solid|fluid) fluid/
    cd ..
done
Chanikya_Valeti likes this.
bigphil is offline   Reply With Quote

Old   March 29, 2022, 13:20
Default
  #3
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5
MFWilliams is on a distinguished road
Dear Mr Cardiff,


Thank you very much for this response. Sadly I already used option 2 and had to go through and move the files individually and this would have saved a lot of time. But I will absolutely use it again if I need to.



Thank you for your help
Merlin
bigphil and Chanikya_Valeti like this.
MFWilliams is offline   Reply With Quote

Reply

Tags
fsi 2-way coupling, post processing, vorticity


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Artefacts in vorticity profile Goli OpenFOAM Post-Processing 0 March 31, 2021 03:34
Vorticity with pimpleDyMFoam Idasg OpenFOAM Post-Processing 1 March 6, 2019 05:16
Choice of numerical schemes for high accuracy in vorticity D.B OpenFOAM Running, Solving & CFD 1 February 5, 2018 11:44
3D vorticity contour shahzad_munir Main CFD Forum 0 May 1, 2014 03:34
vorticity boundary condition bearcharge Main CFD Forum 0 May 14, 2010 12:32


All times are GMT -4. The time now is 11:45.