|
[Sponsors] |
August 28, 2007, 06:29 |
Hi all,
i am a openfoam nov
|
#1 |
New Member
Holger Koch
Join Date: Mar 2009
Posts: 1
Rep Power: 0 |
Hi all,
i am a openfoam novice. I want to access gamma in the interFoam example. I want to do ray tracing of the fluid surface. But i have problems with all these templates. How can a transfer the data of volScalarField to my own source code? Is there a standard method to copy the internalField containing gamma to an array? I want to store the coordinates of the cells and the corresponding gamma values in two different arrays. Waiting for an answer, hk |
|
August 28, 2007, 19:21 |
Code snippet (untested):
fo
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
Code snippet (untested):
forAll(gamma, cellI) { Pout<< "cellI:" << cellI << " cc:" << mesh.C()[cellI] << " gamma:" << gamma[cellI] << endl; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
accessing solver data with UDF macros | Dushan | FLUENT | 1 | April 22, 2017 22:05 |
Accessing Solver data for UDF | CFDtoy | FLUENT | 7 | April 13, 2006 17:52 |
accessing sover data for surface deposition rate | Ashish Jain | FLUENT | 0 | June 4, 2005 04:39 |
Accessing a specific solver data | Paul | FLUENT | 0 | November 19, 2003 15:51 |
Accessing solution data in UDF | Ale | FLUENT | 1 | June 12, 2002 01:25 |