CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

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

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 12, 2013, 18:08
Question How to execute an utility inside the code of a modify solver?
  #1
New Member
 
Juan Felipe Monsalvo Salazar
Join Date: Apr 2013
Posts: 2
Rep Power: 0
jmonsa13 is on a distinguished road
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 is offline   Reply With Quote

Old   July 12, 2013, 19:17
Default
  #2
New Member
 
Juan Felipe Monsalvo Salazar
Join Date: Apr 2013
Posts: 2
Rep Power: 0
jmonsa13 is on a distinguished road
i think i find a solution... only i have to put

system ("utilityHERE");

in the code
jmonsa13 is offline   Reply With Quote

Old   July 13, 2013, 14:01
Default
  #3
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 788
Rep Power: 12
Bernhard is on a distinguished road
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?
Bernhard is offline   Reply With Quote

Reply

Tags
openfoam, programming, solver, utility

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
solver return code 1 and 3840 nicemarx ANSYS 0 January 19, 2013 10:42
How to modify psi value from the solver level (based on reactingFoam)? xinyu OpenFOAM Programming & Development 0 August 21, 2012 15:05
setFields.C within solver code newOFuser OpenFOAM 3 April 9, 2012 11:15
Modify pointDisplacement field from within solver? nowhere OpenFOAM Programming & Development 2 October 13, 2011 14:53
I'm looking for a flow solver (source code) Steve Collie Main CFD Forum 2 January 26, 2001 13:24


All times are GMT -4. The time now is 10:14.