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

Accessing data of geometricField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2007, 06:29
Default Hi all, i am a openfoam nov
  #1
New Member
 
Holger Koch
Join Date: Mar 2009
Posts: 1
Rep Power: 0
bird is on a distinguished road
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
bird is offline   Reply With Quote

Old   August 28, 2007, 19:21
Default Code snippet (untested): fo
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Code snippet (untested):

forAll(gamma, cellI)
{
Pout<< "cellI:" << cellI << " cc:" << mesh.C()[cellI] << " gamma:" << gamma[cellI] << endl;
}
mattijs is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 18:48.