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

Reading results fields from res file using Userfortran/Junction Box

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 8, 2010, 11:59
Default Reading results fields from res file using Userfortran/Junction Box
  #1
Member
 
Vivek Kumar
Join Date: Mar 2009
Location: Switzerland
Posts: 34
Blog Entries: 1
Rep Power: 9
vivekcfd is on a distinguished road
Hi All
I want to read e.g. velocity components, pressure, etc. from an existing steady-state solution file (.res file) to compute source terms for another simulation (another means with different boundary conditions) on the same grid. Could anyone tell me what is the best way to achieve this? Ot in other world, how can I hack a CFX res file using a userfortran.

Writing a source term is not difficult using CEL functions, however, my problem is that the source term of momentum equations is a function of an older/existing solution (u,v,w etc.) field.

Any help or hint in this regards would deeply be appriciated.

PS: I tried to use CFX-Pre to load certain variables from the existing solution. However this approach is too slow and for practical reasons not viable.

Thanks
vivekcfd is offline   Reply With Quote

Old   March 8, 2010, 14:30
Default
  #2
Senior Member
 
Join Date: Apr 2009
Posts: 530
Rep Power: 13
stumpy is on a distinguished road
In your first simulation create AV's equal to velocity components, pressure etc. In your second simulation write the source term in terms of the AV's, then don't solve the AV's, so they don't get updated (expert parameter, perhaps: solve scalars = f).
stumpy is offline   Reply With Quote

Old   March 9, 2010, 06:07
Default
  #3
Member
 
Vivek Kumar
Join Date: Mar 2009
Location: Switzerland
Posts: 34
Blog Entries: 1
Rep Power: 9
vivekcfd is on a distinguished road
Hi Stumpy
thanks for this practical idea. I assume if I make a restart (with -ini and -interp options) from the initial run, the values of AVs from the old simulation will be available in the new run.

In fact my source term is a mixture of fields from existing or older and the current solution.

For instance for u component of velocity S_u = rho w_old (du/dz)_actual
This approach does not allow me to define new AV in the second run.

I shall soon try it.
thanks
vivekcfd is offline   Reply With Quote

Reply

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
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
tecio compilation errors in latest 1.6.x rsamuel OpenFOAM Bugs 1 December 22, 2009 04:34
OpenFOAM Install Script ljsh OpenFOAM Installation 82 October 12, 2009 11:47
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51
Importing I-DEAS unv file hbetb FLUENT 1 August 10, 2001 13:22


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