|
[Sponsors] |
rhoTabulated EOS shows "Not implemented" ERROR |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 18, 2023, 04:23 |
rhoTabulated EOS shows "Not implemented" ERROR
|
#1 |
New Member
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 4 |
Hi Foamers,
First of all, thank you for all the support I've been receiving so far. Many suggestions from the forum have been incredibly helpful for me. To the issue: I'm simulating a compressible system using a solver modified from rhoPimpleFoam on OF9. It ran successfully when I used a "thermophysicalProperties" file like: Code:
thermoType { type heRhoThermo; mixture pureMixture; transport const; thermo eConst; equationOfState rPolynomial; specie specie; energy sensibleInternalEnergy; } mixture { specie { molWeight 18.0; } thermodynamics { Cv 4233.7894; Sf 0; Hf 0; } equationOfState { C (0.001866 -6.186e-06 1.105e-08 5.697e-13 0); } transport { mu 5.0e-03; Pr 26.4; } } Code:
Using dynamicCode for codedBase heRhoThermo_pureMixture_const_eConst_rhoTabulated_specie___sensibleInternalEnergy___ at line 17 in "/desktop/2018/software/OpenFOAM/9-foss-2021b/OpenFOAM-9/etc/codeTemplates/dynamicCode/fluidThermo" [1] [1] [1] --> FOAM FATAL ERROR: [1] Not implemented [1] [1] From function Foam::scalar Foam::rhoTabulated<Specie>::E(Foam::scalar, Foam::scalar) const [with Specie = Foam::specie; Foam::scalar = double] [1] in file /desktop/2018/software/OpenFOAM/9-foss-2021b/OpenFOAM-9/src/thermophysicalModels/specie/lnInclude/rhoTabulatedI.H at line 122. [1] FOAM parallel run aborting Many thanks, SP |
|
March 18, 2023, 04:56 |
|
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 746
Rep Power: 14 |
The error message tells you that rhoTabulated<Specie>::E() is not implemented. Sure enough, if you look in the class inline source file (https://www.cfd-online.com/Forums/ne...ote=1&p=846511) you'll see:
Code:
template<class Specie> inline Foam::scalar Foam::rhoTabulated<Specie>::E ( scalar p, scalar T ) const { NotImplemented; return 0; } |
|
March 18, 2023, 05:02 |
|
#3 |
New Member
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 4 |
Thanks Tobermory for the quick reply.
Could you please suggest how I rectify this issue? I'm new to using OF. I think I have to use rhoTabulated as the rPolynomial I've been using isn't very accurate. SP |
|
March 18, 2023, 05:08 |
|
#4 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 746
Rep Power: 14 |
Sreehari
The short answer is that you can't use rhoTabulated at the moment - it doesn't do what you need it to do, i.e. solve the energy equation. I think your best bet is to try and improve the polynomial fit as best you can, and continue using rPolynomial. Otherwise, you could try and implement your own version of the rhoTabulated class, and implement the energy functions ... however, there may be a good reason why they have not been implemented so far (I suspect that it's not just laziness on the Developer's side), and so this may be a dead end - I don't have enough knowledge of these particular EOS's to be able to comment. Good luck! |
|
March 18, 2023, 05:18 |
|
#5 |
New Member
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 4 |
Thank you very much, Tobermory.
SP |
|
Tags |
equation of state, not implemented, rhopimplefoam, rhotabulated |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] ParaView command in Foam-extend-4.1 | mitu_94 | ParaView | 0 | March 4, 2021 14:46 |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 10:00 |
DPM udf error | haghshenasfard | FLUENT | 0 | April 13, 2016 07:35 |
[OpenFOAM] Native ParaView Reader Bugs | tj22 | ParaView | 270 | January 4, 2016 12:39 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |