CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Accessing data of geometricField

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

LinkBack Thread Tools Display Modes
Old   August 28, 2007, 05:29
Default Hi all, i am a openfoam nov
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,
bird is offline   Reply With Quote

Old   August 28, 2007, 18:21
Default Code snippet (untested): fo
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 18
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


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
accessing solver data with UDF macros Dushan FLUENT 1 April 22, 2017 21:05
Accessing Solver data for UDF CFDtoy FLUENT 7 April 13, 2006 16:52
accessing sover data for surface deposition rate Ashish Jain FLUENT 0 June 4, 2005 03: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 00:25

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