OpenFOAM
From FarmShare
(Difference between revisions)
(Created page with "== OpenFOAM == Open source Field Operation And Manipulation == example of running OpenFOAM == <source lang="sh"> ssh corn40.stanford.edu . /opt/openfoam222/etc/bashrc cd /farm...") |
|||
(6 intermediate revisions not shown) | |||
Line 4: | Line 4: | ||
== example of running OpenFOAM == | == example of running OpenFOAM == | ||
+ | |||
+ | In this example, we login to corn40 and copy the tutorials to our own user area. Then process the motorbike and use paraFoam to view it in paraview. It assumed you are using the bash shell as your default shell. If you are not and wish to please see: https://web.stanford.edu/group/farmshare/cgi-bin/wiki/index.php/FAQ#How_do_I_change_my_shell_on_a_cardinal_or_a_corn | ||
+ | |||
+ | Be sure to change /farmshare/user_data/bishopj to a directory of your choosing | ||
<source lang="sh"> | <source lang="sh"> | ||
- | ssh corn40.stanford.edu | + | ssh -X corn40.stanford.edu |
+ | |||
. /opt/openfoam222/etc/bashrc | . /opt/openfoam222/etc/bashrc | ||
cd /farmshare/user_data/bishopj | cd /farmshare/user_data/bishopj | ||
cp -rp $FOAM_TUTORIALS foamtut | cp -rp $FOAM_TUTORIALS foamtut | ||
- | cd | + | cd foamtut/incompressible/simpleFoam/motorBike |
./Allrun | ./Allrun | ||
+ | paraFoam | ||
</source> | </source> | ||
- | + | If you apply a filter you should see something like this: | |
+ | |||
+ | [[Image:motorbike1.png|frame]] |
Latest revision as of 16:07, 29 July 2014
OpenFOAM
Open source Field Operation And Manipulation
example of running OpenFOAM
In this example, we login to corn40 and copy the tutorials to our own user area. Then process the motorbike and use paraFoam to view it in paraview. It assumed you are using the bash shell as your default shell. If you are not and wish to please see: https://web.stanford.edu/group/farmshare/cgi-bin/wiki/index.php/FAQ#How_do_I_change_my_shell_on_a_cardinal_or_a_corn
Be sure to change /farmshare/user_data/bishopj to a directory of your choosing
ssh -X corn40.stanford.edu . /opt/openfoam222/etc/bashrc cd /farmshare/user_data/bishopj cp -rp $FOAM_TUTORIALS foamtut cd foamtut/incompressible/simpleFoam/motorBike ./Allrun paraFoam
If you apply a filter you should see something like this: