CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

multiphaseInterFoam access to alpha.water

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

LinkBack Thread Tools Display Modes
Old   June 5, 2014, 04:45
Default multiphaseInterFoam access to alpha.water
New Member
Martin K
Join Date: Jan 2013
Location: Germany
Posts: 28
Rep Power: 5
Martin_K_lalelu is on a distinguished road
Hi all,

to modify the multiphaseInterFoam solver I'm trying to use alpha.water in the UEqn.
How can I adress it?

My approach:
 volScalarField& alphaWater = objectRegistry::lookupObject<volScalarField>("alpha.water");
Any advices, explanations or links to understand how to read values out of fields will be appreciated!

Compilation error:
cannot call member function ‘const Type& Foam:bjectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>]’ without object
Martin_K_lalelu 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
[DesignModeler] DesignModeler Scripting: How to get Full Command Access ANT ANSYS Meshing & Geometry 48 November 17, 2016 05:12
Online libraries - with access to Journals momentum_waves Main CFD Forum 2 December 12, 2007 11:08
UDF Data Access Macro Woo Meng Wai FLUENT 0 November 6, 2007 21:23
Access Density Allan Walsh FLUENT 3 October 4, 2005 07:55
access to variables at interface of porous media? Mazyar FLUENT 0 October 10, 2003 14:59

All times are GMT -4. The time now is 20:33.