|
[Sponsors] |
Reading results fields from res file using Userfortran/Junction Box |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 8, 2010, 10:59 |
Reading results fields from res file using Userfortran/Junction Box
|
#1 |
Member
|
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 |
|
March 8, 2010, 13:30 |
|
#2 |
Senior Member
Join Date: Apr 2009
Posts: 531
Rep Power: 21 |
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).
|
|
March 9, 2010, 05:07 |
|
#3 |
Member
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
tecio compilation errors in latest 1.6.x | rsamuel | OpenFOAM Bugs | 2 | June 25, 2021 08:10 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 20:02 |
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 |