CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

alpha fields in multiphase tutorial cases

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 12, 2014, 09:57
Default alpha fields in multiphase tutorial cases
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 5
maybee is on a distinguished road
hi,

I have looked up now several multiphase tutorial cases and within the 0 folders are some kind of phase fraction fields (alpha) already stored (E.g. tutorial case bubbleColumn of multiphaseEulerFoam.)

My questions are...

1. How can the fields (internal fields) have been described without running "blockMesh" before and therefore not knowing the mesh-structure and cell-numbers?

2. If this is some kind of special procedure - how does it work and where are the fields read and stored in multiphaseEulerFoam?

Edit:

3. Most importantly: Can I access the phasefraction fields of each phase by doing
Code:
PtrDictionary<phaseModel>& PhasesPtrDictionary = fluid.phases();
wordList Phasenames 
(
    PhasesPtrDictionary.toc()
); 
for (int currentLoopPass = 0; currentLoopPass <= 5; currentLoopPass++ )
{
word actualPhase = Phasenames[currentLoopPass];
phaseModel* ActualPhase = PhasesPtrDictionary.lookupPtr(actualPhase);
volScalarField& AlphaActualPhase = *ActualPhase;
}
?

greetings
maybee

Last edited by maybee; March 12, 2014 at 10:19. Reason: new question
maybee is offline   Reply With Quote

Old   March 12, 2014, 18:40
Default Accessing values of a phase in a certain cell zone
  #2
New Member
 
Chethan Mohan Kumar
Join Date: Mar 2014
Posts: 2
Rep Power: 0
Chethan is on a distinguished road
Hi,
In regard to your 3rd question:
You can definitely access the zone volumes. In fact it is automatically displayed onto your log during run time. The only pre- requisite is that, you need to have defined cell zones in your mesh.

You can define it in your blockMeshDict when you define your block. You can verify the existence of your zones in the poly mesh directory after running blockMesh.

Another hint for tracking cell zone based values would be through the use of libsofunctionobjects in controlDict, again a cell zone must be defined while creating the mesh.


Hope this helps.


Regards,
Chethan
Chethan is offline   Reply With Quote

Old   March 13, 2014, 05:44
Default
  #3
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 5
maybee is on a distinguished road
Quote:
You can definitely access the zone volumes. In fact it is automatically displayed onto your log during run time. The only pre- requisite is that, you need to have defined cell zones in your mesh.
Actually I did not want to access the zone volumes, but the phase fractions of each phase. Will my code work?
maybee is offline   Reply With Quote

Reply

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
a reconstructPar issue immortality OpenFOAM Post-Processing 8 June 16, 2013 11:25
an odd(at least for me!) reconstructPar error on a field immortality OpenFOAM Running, Solving & CFD 3 June 3, 2013 22:36
Missing fields in reconstructPar flowris OpenFOAM 1 July 9, 2010 02:48
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15
Mapping fields hsieh OpenFOAM Pre-Processing 3 September 14, 2005 19:56


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