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

Using yPlusRAS with interFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree12Likes
  • 12 Post By JohnTornblom

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2012, 04:21
Default Using yPlusRAS with interFoam
  #1
New Member
 
John Törnblom
Join Date: Jan 2012
Location: Göteborg
Posts: 4
Rep Power: 14
JohnTornblom is on a distinguished road
Send a message via Skype™ to JohnTornblom
Hi!

I am working on my master thesis and am fairly new to OpenFOAM. I got a problem concerning the calculation of yPLUS (or y*?) using yPlusRAS. As a part of the post processing I am trying to run yPlusRas via the terminal. However I get an error-message saying:

"-> FOAM FATAL IO ERROR:
keyword transportModel is undefined in dictionary /
"home/linux01/OpenFOAM/linux01-.1.0/run/2D/No_moonpool_forced_flow_2D/constant/transportProperties"

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 400."



transportProperties looks like this:


twoPhase
{
transportModel twoPhase;
phase1 phase1;
phase2 phase2;
}

phase1
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;
}


phase2
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05;
rho rho [ 1 -3 0 0 0 0 0 ] 1;
}

sigma sigma [ 1 0 -2 0 0 0 0 ] 0;




Does anyone has a suggestion on how to solve this problem?


Thanks in advance

BR
John
JohnTornblom is offline   Reply With Quote

Old   March 30, 2012, 07:58
Default
  #2
New Member
 
John Törnblom
Join Date: Jan 2012
Location: Göteborg
Posts: 4
Rep Power: 14
JohnTornblom is on a distinguished road
Send a message via Skype™ to JohnTornblom
The answer to this problem was to add a transportmodel above. then yPlusRas worked.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;

phase1
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;
}

phase2
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05;
rho rho [ 1 -3 0 0 0 0 0 ] 1;
}

sigma sigma [ 1 0 -2 0 0 0 0 ] 0;


// ************************************************** *********************** //

gregjunqua, kmou, totalart and 9 others like this.
JohnTornblom is offline   Reply With Quote

Old   March 16, 2018, 07:05
Default Why the transportModel above uses water properties?
  #3
Member
 
Shafik Walakaka
Join Date: Oct 2017
Posts: 38
Rep Power: 8
walakaka is on a distinguished road
Quote:
Originally Posted by JohnTornblom View Post
The answer to this problem was to add a transportmodel above. then yPlusRas worked.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;


Hi there,

Trying to revive this post from ages ago! Why do you set the density and viscosity as the water for the transport model above? Or does it not matter what you set it as?

My question will be assuming that the phases are water and air.

The concept should be the same if the phases are oil and water too? Please correct me if I'm wrong.

Kind regards
Shafik
walakaka is offline   Reply With Quote

Reply

Tags
transport model, yplusras


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
InterFoam stops after deltaT goes to 1e14 francesco_b OpenFOAM Running, Solving & CFD 9 July 25, 2020 06:36
Segmentation fault in interFoam run through openMPI voingiappone OpenFOAM 16 November 2, 2011 06:49
YPlusRas for InterFoam (Open Foam 1.7) MrD OpenFOAM 0 August 11, 2010 15:44
YPlusRAS and interFoam dkingsley OpenFOAM Bugs 4 April 28, 2010 09:08
Open Channel Flow using InterFoam type solver sxhdhi OpenFOAM Running, Solving & CFD 3 May 5, 2009 21:58


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