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

rotating pressure inlet static mesh simpleFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 26, 2020, 15:23
Question rotating pressure inlet static mesh simpleFOAM
  #1
New Member
 
Christophe
Join Date: May 2020
Posts: 7
Rep Power: 5
cduchat is on a distinguished road
Hi all,


I am fairly new to openFOAM and having difficulties with a simulation: the domain is mostly cylindrical surrounding a cutout (defining channels like a volute and a couple pitot tubes), the outer boundaries of the domain are rotating walls ("walls-rotating") while the cutout is static walls ("walls-static"), the mesh is a single zone so I cannot really use a multiple reference frame approach. Linked to the static cutout and channels are two static outlets ("outlet" and "outlet-pitots"), while at the bottom of the domain and toward the outer diameter is a circular band where I want a rotating pressure inlet ("inlet") where the pressure controls the inflow but whatever enters does so at a specific rotation speed.


I am using BlueCFD-core 2017-2 (based on openFOAM v5), the simpleFOAM solver (steady-state simulation), and getting the following error:
Quote:
--> FOAM FATAL IO ERROR:
keyword value is undefined in dictionary "C:/Users/Chris/Desktop/SVR-GTI/0/U.boundaryField.inlet"

file: C:/Users/Chris/Desktop/SVR-GTI/0/U.boundaryField.inlet from line 32 to line 34.

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

FOAM exiting

Here are the corresponding lines in the 0/U file:
Quote:
30 inlet
31 {
32 type rotatingPressureInletOutletVelocity;
33 tangentialVelocity uniform (0.0 0.0 0.0);
34 omega constant 297.72;
35 }

And the pressure condition in the 0/p file:
Quote:
inlet
{
type totalPressure;
p0 uniform 631.1;
gamma 0;
}

I also tried a different 0/U inlet condition that allowed to run but resulted in no inlet flow despite the pressure condition (instead the simulation seemed to treat "inlet" like a rotating wall and my fluids were entering the domain through "outlet-pitots" and exiting through "outlet"):
Quote:
inlet
{
type cylindricalInletVelocity;
value uniform (0.0 0.0 0.0);
origin (0.0 0.0 0.0);
axialVelocity constant 0.0;
radialVelocity constant 0.0;
axis (0.0 0.0 1.0);
rpm constant 2843.0;
}

What am I missing/doing wrong?
cduchat is offline   Reply With Quote

Old   May 26, 2020, 15:44
Thumbs up Add a value field inside the boundary definition
  #2
Senior Member
 
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9
crubio.abujas is on a distinguished road
The crucial part of the error message if here.

Code:
--> FOAM FATAL IO ERROR:
 keyword value is undefined in dictionary "C:/Users/Chris/Desktop/SVR-GTI/0/U.boundaryField.inlet"
...
You need to define a field "value" on the definition. Sometimes this value is never used, but it expected it, probably for inheritance from other fields where this field is in usage. The safe approach is to always define it, if the type don't need a value it just ignore this value and do its thing.

Try adding something like this:
Code:
 inlet
{
    type            rotatingPressureInletOutletVelocity;
    tangentialVelocity uniform (0.0 0.0 0.0);
    omega           constant 297.72;
    value  uniform(0 0 0);

 }
It is a good skill to interpret the information on the error messages. It can be a little intimated at first but you get use to it. Next time you see a "keyword XXX is undefined in dictionary YYY" you'll know where to look.

Hope it helps!
crubio.abujas is offline   Reply With Quote

Old   May 26, 2020, 16:00
Smile Thanks... new error messeage... maybe solved.
  #3
New Member
 
Christophe
Join Date: May 2020
Posts: 7
Rep Power: 5
cduchat is on a distinguished road
Thanks a lot Carlos, I had looked into the source files and they were not calling for a "value" field, that's what threw me off.



I added the value field and it helped but I got another error message:
Quote:
--> FOAM FATAL IO ERROR:
Expected a '(' while reading VectorSpace<Form, Cmpt, Ncmpts>, found on line 34 the doubleScalar 297.72

file: C:/Users/Chris/Desktop/SVR-GTI/0/U.boundaryField.inlet.omega at line 34.

From function Foam::Istream& Foam::Istream::readBegin(const char*)
in file db/IOstreams/IOstreams/Istream.T.C at line 92.

FOAM exiting

I gathered the "omega" was not expecting a scalar rotation speed, but rather a vector... I gave a try to "uniform (0 0 297.72)" and it seems to work (simulation running, we'll see if it does what I want it to).
cduchat is offline   Reply With Quote

Old   May 26, 2020, 16:15
Default Solved.
  #4
New Member
 
Christophe
Join Date: May 2020
Posts: 7
Rep Power: 5
cduchat is on a distinguished road
I had to add a negative sign to my omega as it was spinning the wrong way, but otherwise it appears to be running just as intended.


Thanks again Carlos.
cduchat is offline   Reply With Quote

Old   May 27, 2020, 02:30
Default You're welcome
  #5
Senior Member
 
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9
crubio.abujas is on a distinguished road
Quote:
Originally Posted by cduchat View Post
I had to add a negative sign to my omega as it was spinning the wrong way, but otherwise it appears to be running just as intended.


Thanks again Carlos.
Glad to know it helped you!


Good luck and happy foaming
crubio.abujas 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
Axial flow fan incorrect pressure rise yambanshee OpenFOAM Running, Solving & CFD 2 June 25, 2020 14:05
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Assign static pressure at inlet Tanjina FLUENT 0 November 3, 2013 11:34
Pulsatile pressure inlet with pressure outlet a.lynchy FLUENT 3 March 23, 2012 13:45
Setting static pressure as the inlet BC ruined FLUENT 1 March 21, 2008 14:57


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