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

Accessing The Two Phase Properties

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 19, 2008, 08:51
Default People from here, How do
  #1
New Member
 
Thiago Reis Carvalho Cabral Miliante
Join Date: Mar 2009
Location: Rio de Janeiro, Rio de Janeiro, Brazil
Posts: 16
Rep Power: 8
miliante is on a distinguished road
People from here,

How do I access each phase property? Like rho, mu and nu? In my case for air and water, which I've set in the transportProperties file.

Thanks in advance.

miliante.
miliante is offline   Reply With Quote

Old   May 19, 2008, 19:44
Default which solver? try below dime
  #2
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 10
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
which solver?
try below
dimensionedScalar rho(transportProperties.lookup("rho"));
or
dimensionedScalar rho;
rho=dimensionedScalar(transportProperties.lookup(" rtho"));

Su Junwei
su_junwei is offline   Reply With Quote

Old   June 19, 2013, 07:55
Default
  #3
abe
Member
 
ABE
Join Date: Jul 2012
Posts: 37
Rep Power: 5
abe is on a distinguished road
Hi Junwei,

I need to call twoPhaseProperties inside a turbulence model (k omega sst). I mean inside ' void kOmegaSSTRebound::correct()'

How would it be possible?

I have tried the following but wiothout success.
const dimensionedScalar& rho1 = transport_.rho1();
or
dimensionedScalar rho1(transportProperties.subDict("phase1").lookup( "rho"));
abe is offline   Reply With Quote

Old   June 19, 2013, 08:35
Default
  #4
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,124
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
did you introduce following objects:transport_ , transportProperties in your code?
if not, then how do you want to call a member of it?
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   June 19, 2013, 08:52
Default
  #5
abe
Member
 
ABE
Join Date: Jul 2012
Posts: 37
Rep Power: 5
abe is on a distinguished road
Hi Nimasam,

Thanks for your comment.
The rho1, and rho2 can be called through twoPhaseProperties. And if one follows the hierarchy (creatFields.H, then turbulenceModel.C, then RansModel.C, and finally kOmegaSST.C), it can be seen that twoPhaseProperties has passed inside the kOmegaSST.C by the name of 'transport':
kOmegaSST::kOmegaSST
(
const volVectorField& U,
const surfaceScalarField& phi,
transportModel& transport,
const word& turbulenceModelName,
const word& modelName
)

However, I do not still know how to use it. Any comment is highly appreciated.

ABE
abe is offline   Reply With Quote

Old   June 20, 2013, 05:04
Default
  #6
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,124
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
you can use following structure to read from dict:

Quote:
rho1_
(
dimensioned<scalar>::lookupOrAddToDict
(
"rho1",
coeffDict_,
1.0 //your default value
)
),
transportModel class has no member which pointed to transportProperties dict
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam 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
Question of properties in two phase solver mmjhuang OpenFOAM Running, Solving & CFD 2 October 29, 2012 23:56
UDF help on accessing values shashikant FLUENT 0 December 22, 2005 10:41
Accessing flow properties at certain points inUDFs nicolas FLUENT 2 February 14, 2005 21:42
Accessing material properties in UDF Henrik Widell FLUENT 0 March 18, 2002 10:49
UDF & Accessing Turbulence Properties Dimal FLUENT 0 March 5, 2002 14:14


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