|
[Sponsors] |
rhoCentralFOAM: Thermophysical properties. Gamma definition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 6, 2014, 06:34 |
rhoCentralFOAM: Thermophysical properties. Gamma definition
|
#1 |
Senior Member
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 13 |
Hi all,
In createFields.h file under rhoCentralFOAM the following are the initial lines: Info<< "Reading thermophysical properties\n" << endl; autoPtr<basicPsiThermo> pThermo ( basicPsiThermo::New(mesh) ); basicPsiThermo& thermo = pThermo(); volScalarField& p = thermo.p(); volScalarField& e = thermo.e(); const volScalarField& T = thermo.T(); const volScalarField& psi = thermo.psi(); const volScalarField& mu = thermo.mu(); Can anyone please explain some terms like thermo. Also, I want to define gamma = Cp/Cv. I am not able to figure this how to do. I used the following const volScalarField& gamma = thermo.Cp() / thermo.Cv(); Info<<"GAMMA= "<< gamma <<"\n" <<endl; But it fails saying hanging pointer while executing the Info line. a part of logfile: 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 1.4 ) ; boundaryField { --> FOAM FATAL ERROR: hanging pointer, cannot dereference From function PtrList:perator[] const in file /home/Ashwani/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/PtrListI.H at line 134. FOAM aborting #0 Foam::error:rintStack(Foam::Ostream&) in "/home/Ashwani/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::error::abort() in "/home/Ashwani/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 Foam::Ostream& Foam:perator<< <Foam::error>(Foam::Ostream&, Foam::errorManip<Foam::error>) at ~/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/errorManip.H:85 #3 Foam::PtrList<Foam::fvPatchField<double> >:perator[](int) const at ~/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/PtrListI.H:139 #4 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::writeEntry (Foam::word const&, Foam::Ostream&) const at ~/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/GeometricBoundaryField.C:461 #5 Foam::Ostream& Foam:perator<< <double, Foam::fvPatchField, Foam::volMesh>(Foam::Ostream&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ~/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/GeometricField.C:1237 #6 at ~/OpenFOAM/Ashwani-2.1.1/rhoAUSM/rhoAUSM.C:56 #7 __libc_start_main in "/lib64/libc.so.6" #8 in "/home/Ashwani/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/rhoAUSM" Aborted (core dumped) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
table properties for thermophysical properties | romant | OpenFOAM Running, Solving & CFD | 1 | August 12, 2014 09:41 |
Thermophysical properties for natural convection | Ciefdi | OpenFOAM Running, Solving & CFD | 0 | November 7, 2013 12:44 |
Why RNGkepsilon model gives floating error | shipman | OpenFOAM Running, Solving & CFD | 3 | September 7, 2013 09:00 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
Differences between serial and parallel runs | carsten | OpenFOAM Bugs | 11 | September 12, 2008 12:16 |