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

Turbulence model gradient of alpha

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By af123

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2016, 13:42
Default Turbulence model gradient of alpha
  #1
New Member
 
Andre
Join Date: May 2015
Posts: 3
Rep Power: 11
af123 is on a distinguished road
Hi, I want to extend the kOmegaSST model by a term modifying the omega equation near the interface of a two-phase liquid gas flow in interFoam.
For this I need the gradient of the alpha_ field.
In order to calculate the gradient in the correct() function of the turbulence model
I need a volScalarField of alpha but alpha is of type alphaField. The stupid Idea
of const volScalarField& alpha = alpha_ ; do not work.
Have anybody a Idee how to get the gradient of a alphaField?

Thanks
af123 is offline   Reply With Quote

Old   December 1, 2016, 13:14
Default
  #2
New Member
 
Andre
Join Date: May 2015
Posts: 3
Rep Power: 11
af123 is on a distinguished road
I fond the solution:
const immiscibleIncompressibleTwoPhaseMixture& mixture = refCast<const immiscibleIncompressibleTwoPhaseMixture>(this->transport()) ;
const volScalarField& alpha1 = mixture.alpha1();
Thanks
yuhan1991 and lumpor like this.
af123 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
question regarding LES of pipe flow - pimpleFoam Dan1788 OpenFOAM Running, Solving & CFD 37 December 26, 2017 15:42
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 15:32
Spalarat - Allmaras turbulence model saisanthoshm88 Main CFD Forum 1 June 16, 2014 17:33
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Low Reynolds k-epsilon model YJZ ANSYS 1 August 20, 2010 14:57


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