CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Cylinder simulation,simpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/192664-cylinder-simulation-simplefoam.html)

Ursmooth September 8, 2017 11:21

Cylinder simulation, simpleFoam terminal question
 
I downloaded a program that solves blockMesh – simpleFoam – Re = 100000 – K-Omega SST turbulent model with no wall functions. And to run the program I need to type in simpleFoam > log | tail -f log in the terminal. What does the " > log | tail -f log " part do and why do i need to enter it??

It says "If you do not have pyfoam enter: simpleFoam > log | tail -f log"

aow September 8, 2017 20:20

Re: Cylinder simulation,simpleFoam
 
Hey Marius,

Quote:

What does the " > log | tail -f log " part do and why do i need to enter it??
"simpleFoam > log" will write the output of simpleFoam to a file called "log" so you can see it's progress (current time, Courant number, residual of solution iterations, etc...).

I'm not sure why you would want the "| tail -f log" part, because it seems like you don't need it since the output is already being written to the log file. The tail command outputs the last part of a file. Using the "-f" option to "follow" the file makes the data accumulate and each line is appended to the output. See the "man page" for the tail command, or, enter "man tail" in a terminal for more info.

Best regards,

Andrew


All times are GMT -4. The time now is 03:12.