|
[Sponsors] |
August 24, 2015, 07:41 |
Initial field from .csv-file
|
#1 |
New Member
Join Date: Oct 2012
Posts: 2
Rep Power: 0 |
Hello Community,
I have the following issue: I want to conduct a multiphase flow analysis fo which the initial conditions come from a code other than CFX. Meaning I do have pressure, temperature, velocity and volume fraction fields which I would like to interpolate onto the mesh I created for the CFX-analysis as initial conditions. I could export those fields as a .csv file and would like to feed them to CFX in order to make use of its own interpolator. So far I haven't found a solution to this anywhere. The *Help* hasn't been of much help. Is anybody aware of such a possibility or could point me into a direction? Thanks in advance, Max |
|
August 24, 2015, 09:21 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
You can write a user fortran routine to do this. ANSYS support probably (or maybe hopefully) has some examples of how to do this.
Also a CEL 3D interpolation function can do it but you will not be able to pass a large amount of data in this way. |
|
August 24, 2015, 09:50 |
|
#3 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
I assume you are doing an accurate transient simulations, correct ?
If you import your .csv file into CFX-Pre, and use a CEL expression for the variables in the file as initial guess, does it work ? It should. |
|
August 24, 2015, 19:20 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Good point - see if the profile data thing works for you.
|
|
September 24, 2015, 09:37 |
|
#5 |
New Member
Join Date: Oct 2012
Posts: 2
Rep Power: 0 |
Thank you. That did exactly what I intended.
|
|
Tags |
cfx, csv, initial conditions, interlolate |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cannot run the code properly: very large time step continuity error | crst15 | OpenFOAM Running, Solving & CFD | 9 | December 14, 2014 19:17 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
pimpleFoam: turbulence->correct(); is not executed when using residualControl | hfs | OpenFOAM Running, Solving & CFD | 3 | October 29, 2013 09:35 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
Differences between serial and parallel runs | carsten | OpenFOAM Bugs | 11 | September 12, 2008 12:16 |