CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Mach number in Openfoam 2.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2021, 12:39
Default Mach number in Openfoam 2.1
  #1
Member
 
Join Date: Dec 2020
Posts: 38
Rep Power: 5
ulugbey is on a distinguished road
Dear all,
I am using OF 2.1 in ddtFoam solver. I want to calculate Machnumber. I know there is a 'Mach' function available in OF 2.1. And in thermophysicalProperties folder thermotype is ePsiMixtureThermo<reactingMixture<gasThermoPhysics >>
So when I write Mach in the command window, the solver complains as follows;
Code:
--> FOAM FATAL ERROR: 
Unknown basicPsiThermo type ePsiMixtureThermo<reactingMixture<gasThermoPhysics>>

Valid basicPsiThermo types are:

11
(
ePsiThermo<pureMixture<constTransport<specieThermo<eConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<constTransport<specieThermo<hConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieThermo<eConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieThermo<hConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieThermo<janafThermo<perfectGas>>>>>
hPsiThermo<pureMixture<constTransport<specieThermo<hConstThermo<perfectGas>>>>>
hPsiThermo<pureMixture<sutherlandTransport<specieThermo<hConstThermo<perfectGas>>>>>
hPsiThermo<pureMixture<sutherlandTransport<specieThermo<janafThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<constTransport<specieThermo<hConstThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<sutherlandTransport<specieThermo<hConstThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<sutherlandTransport<specieThermo<janafThermo<perfectGas>>>>>
)



    From function basicPsiThermo::New(const fvMesh&)
    in file psiThermo/basicPsiThermo/basicPsiThermoNew.C at line 60.

FOAM exiting
Do you know how can I calculate Machnumber?
Best regards

Last edited by ulugbey; October 16, 2021 at 14:40.
ulugbey is offline   Reply With Quote

Old   October 16, 2021, 20:24
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You need to set your thermo type. The one you set is not valid. A list of all 11 valid ones is printed for you. So pick one from the list. If the one you want is not there, then you might be in trouble. If you enter anything that is not on this list of 11, the solver will indeed complain like it is doing.

Just to be clear: ePsiMixtureThermo<reactingMixture<gasThermoPhysics >> is not one of the valid entries.


How to calculate Mach number is still yet another hurdle.
LuckyTran is offline   Reply With Quote

Old   October 17, 2021, 11:19
Default
  #3
Member
 
Join Date: Dec 2020
Posts: 38
Rep Power: 5
ulugbey is on a distinguished road
Hi,

Thanks for the reply. When I choose any of the valid basicpsiThermo which is listed, It gives an error saying that;
Quote:
keyword mixture is undefined in thermophysicalProperties
I think as the solver uses epsiMixtureThermo, I should use this library and calculate Machnumber. Do you know how can I adapt Mach function so that it can be calculated also in "epsiMixtureThermo". Or Is there a way that I can write my own Machnumber function, which reads cp and cv values and calculate the Machnumber according to Temperature?

Thanks in advance
ulugbey is offline   Reply With Quote

Old   October 17, 2021, 15:53
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Well of course you need to define a mixture also... You need to define a lot of things. I sense an entire cascade of such definitions that need to be defined coming. Get your thermophysical properties set before trying to go anywhere.

You don't need to adapt anything. What you need to do, is set up a proper openfoam case.
LuckyTran is offline   Reply With Quote

Old   October 21, 2021, 14:01
Default
  #5
Member
 
Join Date: Dec 2020
Posts: 38
Rep Power: 5
ulugbey is on a distinguished road
Hi,

I defined the correct thermotype Library"ePsiMixtureThermo" in Mach application. But when I compile the application it complains as in the attached file. Do you know why it complains like that?



Attached Images
File Type: jpg bin-sh-error.jpg (55.4 KB, 6 views)
ulugbey is offline   Reply With Quote

Reply

Tags
openfoam 2.1


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
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 10:23
[mesh manipulation] Mesh Refinement Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Meshing & Mesh Conversion 42 January 8, 2017 13:55
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 16:03
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 11:37
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


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