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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2013, 17: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
Location: Medellín / Colombia
Posts: 4
Rep Power: 13
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, 18:17
Default
  #2
New Member
 
Juan Felipe Monsalvo Salazar
Join Date: Apr 2013
Location: Medellín / Colombia
Posts: 4
Rep Power: 13
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, 13:01
Default
  #3
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
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


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
How to modify psi value from the solver level (based on reactingFoam)? xinyu OpenFOAM Programming & Development 1 March 30, 2017 23:33
solver return code 1 and 3840 nicemarx ANSYS 0 January 19, 2013 09:42
setFields.C within solver code newOFuser OpenFOAM 3 April 9, 2012 10:15
Modify pointDisplacement field from within solver? nowhere OpenFOAM Programming & Development 2 October 13, 2011 13:53
I'm looking for a flow solver (source code) Steve Collie Main CFD Forum 2 January 26, 2001 12:24


All times are GMT -4. The time now is 22:58.