CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   How to execute an utility inside the code of a modify solver? (http://www.cfd-online.com/Forums/openfoam/120713-how-execute-utility-inside-code-modify-solver.html)

jmonsa13 July 12, 2013 17:08

How to execute an utility inside the code of a modify solver?
 
Hello everybody

I'm a kind of new in all this subject of posting in internet, so i excuse for advanced if i made some mistake in my way of asking... I'm modifying an solvers and i would like to execute an utility(modifyMesh) in each iteration of the solver icoFoam. Somebody know how i must to call this utility inside the code of the solver?

Thank very much
Juan Felipe

jmonsa13 July 12, 2013 18:17

i think i find a solution... only i have to put

system ("utilityHERE");

in the code

Bernhard July 13, 2013 13:01

I don't think this is the best solution, because this is a system call, so you would need to reload the mesh into the memory and such kind of things. Why not just copy the corresponding source code into your solver?


All times are GMT -4. The time now is 13:15.