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

How to find which values need schemes.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Joshua14

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2017, 15:35
Default How to find which values need schemes.
  #1
New Member
 
Join Date: Aug 2017
Posts: 18
Rep Power: 9
Calmly is on a distinguished road
Hello!

Let's say I want to set different schemes to all of the interpolation "values" and not to set it with the "default ..."

How can I find in which "values" I need to define schemes?
Calmly is offline   Reply With Quote

Old   August 31, 2017, 16:28
Default
  #2
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10
Joshua14 is on a distinguished road
You should be able to get rid of the default entry and run the case via whatever your solver is (simpleFoam?). The case should crash and the log file will say it is missing scheme blah. Now you know what scheme to add. Do this till the case doesn't crash anymore.
Calmly likes this.
Joshua14 is offline   Reply With Quote

Old   August 31, 2017, 17:35
Default
  #3
New Member
 
Join Date: Aug 2017
Posts: 18
Rep Power: 9
Calmly is on a distinguished road
i am using the rhoCentralFoam solver and when I do as you said I get this:

Quote:
--> FOAM FATAL IO ERROR:
[2] keyword flux(rhoU) is undefined in dictionary "IOstream.interpolationSchemes"
[2]
[2] file: IOstream.interpolationSchemes from line 0 to line 0.
[2]
[2] From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
[3]
[3]
[3] --> FOAM FATAL IO ERROR:
[3] keyword flux(rhoU) is undefined in dictionary "IOstream.interpolationSchemes"
[3]
[3] file: IOstream.interpolationSchemes from line 0 to line 0.
[3]
[3] From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
[3] in file [0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] keyword flux(rhoU) is undefined in dictionary "/home/themistoklis/OpenFOAM/themistoklis-4.1/VKI/2D/openField_ground_2D/Turbulent/ras/blast_2D_lU_1500_newMesh/system/fvSchemes.interpolationSchemes"
[0]
[0] file: /home/themistoklis/OpenFOAM/themistoklis-4.1/VKI/2D/openField_ground_2D/Turbulent/ras/blast_2D_lU_1500_newMesh/system/fvSchemes.interpolationSchemes from line 46 to line 50.
[0]
[0] From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
[0] in file db/dictionary/dictionary.C at line 441.[2] in file db/dictionary/dictionary.C at line 441.
[2]
FOAM parallel run exiting
[2]

[0]
FOAM parallel run exiting
[0]
db/dictionary/dictionary.C at line 441.
[3]
FOAM parallel run exiting
[3]

[1]
[1] --> FOAM FATAL IO ERROR:
[1] keyword flux(rhoU) is undefined in dictionary "IOstream.interpolationSchemes"
[1]
[1] file: IOstream.interpolationSchemes from line 0 to line 0.
[1]
[1] From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
[1] in file db/dictionary/dictionary.C at line 441.
[1]
FOAM parallel run exiting
[1]
[themistoklis-444:13538] 3 more processes have sent help message help-mpi-api.txt / mpi-abort
I don't understand how to define the flux(rhoU) in the interpolation schemes...

I have managed to define the schemes I want to some other values like rho, U, T but this...I can't..
Calmly is offline   Reply With Quote

Old   August 31, 2017, 20:00
Default
  #4
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10
Joshua14 is on a distinguished road
What does your fvSchemes file look like? I'm guessing you should have something like the following in that file.

gradSchemes
{
.
.
.
}

divSchemes
{
.
.
.
}

interpolationSchemes
{
flux(rhoU) linear;
}
Joshua14 is offline   Reply With Quote

Old   September 1, 2017, 06:04
Default
  #5
New Member
 
Join Date: Aug 2017
Posts: 18
Rep Power: 9
Calmly is on a distinguished road
Well, yeah that worked. Thanks!

But what if I want to use a different scheme like Minmod? It doesn't work.. I get this error if I put anything else except "linear"

Quote:
[3] --> FOAM FATAL IO ERROR:
[3] attempt to read beyond EOF
[3]
[3] file: IOstream.interpolationSchemes.dotInterpolate(S,tau MC) at line 0.
[3]
[3] From function virtual Foam::Istream& Foam::ITstream::read(Foam::token&)
[3] in file db/IOstreams/Tstreams/ITstream.C at line 82.
[3]
FOAM parallel run exiting
[3]
[1]
[1]
[1] --> FOAM FATAL IO ERROR:
[1] attempt to read beyond EOF
[1]
[1] file: IOstream.interpolationSchemes.dotInterpolate(S,tau MC) at line 0.
[1]
[1] From function virtual Foam::Istream& Foam::ITstream::read(Foam::token&)
[1] in file db/IOstreams/Tstreams/ITstream.C at line 82.
[1]
FOAM parallel run exiting
[1]

[2]
[2] --> FOAM FATAL IO ERROR:
[2] attempt to read beyond EOF
[2]
[2] file: IOstream.interpolationSchemes.dotInterpolate(S,tau MC) at line 0.
[2]
[2] From function virtual Foam::Istream& Foam::ITstream::read(Foam::token&)
[2] in file db/IOstreams/Tstreams/ITstream.C at line 82.
[2]
FOAM parallel run exiting
[2]
[0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] attempt to read beyond EOF
[0]
[0] file: /home/themistoklis/OpenFOAM/themistoklis-4.1/VKI/2D/openField_ground_2D/Turbulent/ras/blast_2D_lU_baloon_minmod/system/fvSchemes.interpolationSchemes.dotInterpolate(S,ta uMC) at line 51.
[0]
[0] From function virtual Foam::Istream& Foam::ITstream::read(Foam::token&)
[0] in file db/IOstreams/Tstreams/ITstream.C at line 82.
[0]
FOAM parallel run exiting
[0]
[themistoklis-444:24232] 3 more processes have sent help message help-mpi-api.txt / mpi-abort
[themistoklis-444:24232] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
The above error occurs when I replace the linear with the Minmod scheme.

But, like I told you it works with this:


Quote:
interpolationSchemes
{
default none;
reconstruct(rho) Minmod;
reconstruct(U) MinmodV;
reconstruct(T) Minmod;
flux(rhoU) linear;
dotInterpolate(S,tauMC) linear;
interpolate(muEff) linear;
interpolate(rho) linear;
}
Calmly is offline   Reply With Quote

Old   September 1, 2017, 10:38
Default
  #6
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10
Joshua14 is on a distinguished road
Unfortunately I don't know much about only being able to use the linear scheme. It may be the only scheme available for the flux. Maybe someone else knows more.
Joshua14 is offline   Reply With Quote

Old   September 1, 2017, 12:40
Default
  #7
Member
 
Yousef
Join Date: Feb 2015
Posts: 40
Rep Power: 11
ykanani is on a distinguished road
Hi,

When you get "attempt to read beyond EOF" it means that OpenFOAM is trying to read something else beyond the point you ended the line with ";"
So perhaps you are not providing all information needed to use that scheme. It could be a word or number. You can check the header file (.H) corresponding to the scheme that you are trying to use. It will give you useful information regarding the syntax etc. Unfortunately, I have not used minmod myself so I cannot help you with that specific scheme.


Regards,
ykanani is offline   Reply With Quote

Old   September 5, 2017, 09:19
Default
  #8
New Member
 
Join Date: Aug 2017
Posts: 18
Rep Power: 9
Calmly is on a distinguished road
Quote:
Originally Posted by ykanani View Post
Hi,

When you get "attempt to read beyond EOF" it means that OpenFOAM is trying to read something else beyond the point you ended the line with ";"
So perhaps you are not providing all information needed to use that scheme. It could be a word or number. You can check the header file (.H) corresponding to the scheme that you are trying to use. It will give you useful information regarding the syntax etc. Unfortunately, I have not used minmod myself so I cannot help you with that specific scheme.


Regards,
You are right. By adding "neg" or "pos" after the "Minmod" it works but I don't understand what these mean (neg and pos)
Calmly is offline   Reply With Quote

Old   September 5, 2017, 13:09
Default
  #9
Member
 
Yousef
Join Date: Feb 2015
Posts: 40
Rep Power: 11
ykanani is on a distinguished road
Quote:
Originally Posted by Calmly View Post
You are right. By adding "neg" or "pos" after the "Minmod" it works but I don't understand what these mean (neg and pos)
It seems they have explained it in the following paper:

https://www.researchgate.net/publica...rk_of_OpenFOAM


Regards,
ykanani 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
Mapping values from 2D mesh to 3D mesh boundary during runtime benk OpenFOAM Programming & Development 1 June 13, 2014 03:39
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
exact face values RubenG Main CFD Forum 0 June 22, 2009 12:09
How to set reference values to find Cl, Cm... (3D) Cyril FLUENT 5 June 26, 2006 12:22
setting reference values to find Cd, Cl, Cm (3D) Jeff FLUENT 0 June 23, 2006 02:10


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