CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

create constant transport properties for multi region case

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 29, 2013, 02:10
Default create constant transport properties for multi region case
  #1
Member
 
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 3
Kumudu is on a distinguished road
Hi,

I have multi-regions in my problem. I want to define different transport properties which are constants for each region feild. This is the way I am doing,

in the file createFluidFeilds.H

PtrList<dimensionedScalar> rhoFluid(fluidRegions.size());

Info<< " Adding transport properties to fluid field\n" << endl;
forAll(fluidRegions, i)
{
IOdictionary fluidtransportProperties
(

IOobject
(
"transportProperties",
runTime.constant(),
fluidRegions[i],
IOobject::MUST_READ,
IOobject::NO_WRITE
)
);

Info<< "\tReading fluid density\n" << endl;
rhoFluid.set
(
i,
new dimensionedScalar
(
fluidRegions[i].fluidtransportProperties.lookup("rho")
)
);
}


I want to have different "tranportProperties" dictionary files for each region.Is this method is correct?.

or,

PtrList<dimensionedScalar> rhoFluid(fluidRegions.size());

Info<< " Adding transport properties to fluid field\n" << endl;
forAll(fluidRegions, i)
{
fluidtransportProperties.set
(
i,
new IOdictionary fluidtransportProperties
(

IOobject
(
"transportProperties",
runTime.constant(),
fluidRegions[i],
IOobject::MUST_READ,
IOobject::NO_WRITE
)
)
);

Info<< "\tReading fluid density\n" << endl;
rhoFluid.set
(
i,
new dimensionedScalar
(
fluidRegions[i].fluidtransportProperties.lookup("rho")
)
);
}


Please anyone help me.

Kumudu
Kumudu 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
ReactingFoam Laminar flame simulation transport properties gbansal OpenFOAM Running, Solving & CFD 3 November 23, 2012 17:03
[DesignModeler] Newbie - Create Region 5746085 ANSYS Meshing & Geometry 2 March 12, 2012 14:15
Transport properties with PPDF combustion Erik CD-adapco 0 February 18, 2009 06:18
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
Whatbs best way to create new case jvn OpenFOAM Pre-Processing 2 June 20, 2005 21:19


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