|
[Sponsors] |
March 17, 2019, 23:19 |
volScalarField not loading????
|
#1 |
Senior Member
Brett
Join Date: May 2013
Posts: 216
Rep Power: 14 |
Hi Foamers.
I've got this error, any thoughts? --> FOAM FATAL ERROR: request for volScalarField::Internal kEpsilon:G from objectRegistry region0 failed available objects of type volScalarField::Internal are 5 ( nut k nu p epsilon ) From function const Type& Foam:bjectRegistry::lookupObject(const Foam::word&) const [with Type = Foam:imensionedField<double, Foam::volMesh>] in file /opt/CFDSupportFOAM4.0/beta/OpenFOAM-dev/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 193. FOAM aborting This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. |
|
March 18, 2019, 05:21 |
|
#2 |
Senior Member
|
Hi,
Since you post almost no context and also using CFDSupport's version of the software, people can only guess what is going wrong. Usually wall functions try to lookup G field through object registry (see source of epsilon or omega wall functions). Field G is created by turbulence model in correct method. The questions is: why field G is requested before it is created? Answers could be: - CFDSupport forgot to import turbulence models changes but pulled wall functions changes. - CFDSupport changed wall functions, so they simply do not work. - Well, I can continue, but think, it is rather useless until you provide additional information. What OpenFOAM(R) flavour do you utilise? What are your boundary conditions? |
|
March 18, 2019, 18:17 |
|
#3 |
Senior Member
Brett
Join Date: May 2013
Posts: 216
Rep Power: 14 |
Hi Alex,
Thanks for your reply. I must admit this is my second week of using OpenFoam and I'm still very very green. I don't actually know what the G value is? I'm using OpenFoam 18.10 Boundary conditions are in this file. If that helps? |
|
March 18, 2019, 21:40 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Still not enough information. Please follow the guidelines written here: How to give enough info to get help
Suggestion: Run one of the tutorial cases from the installation that you have got, that is the most similar to the case you are trying to run. If that tutorial case does not work, contact the people at the website from which you downloaded your version. Furthermore: the standard versions of OpenFOAM are only provided by the following producers:
__________________
|
|
March 19, 2019, 10:50 |
|
#5 |
Senior Member
|
Hi,
I agree with wyldckat, there is still not enough information. Or I would put it another way: I do not want to figure out what CFDSupport has broken in OpenFOAM(R). I was not able to find a link to source code on their web-site (they say sources are provided as a part of installation packages), so it is practically impossible to figure out in what way they have messed up turbulence models. |
|
March 19, 2019, 18:10 |
|
#6 |
Senior Member
Brett
Join Date: May 2013
Posts: 216
Rep Power: 14 |
Thanks guys,
I'll see what the deal is with CFD support. Do you know what "G" is though? and whether you need a separate file called "G" in the o/ directory? |
|
March 19, 2019, 18:30 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer @Bdew8556: The G field is an intermediate field created by most k-epsilon turbulence models and is not meant to be created manually. It's created right here: https://github.com/OpenFOAM/OpenFOAM...Epsilon.C#L244
This means that this field only exists if the turbulence model is loaded in and is ongoing the updating of its coefficients, namely inside this method. See a few lines below that one, in #252? That's how the boundaries were updated and triggered the error with the infamous "G" field. And my apologies, but I have to poke a little bit of fun here... I went back to your posts and my imagination wondered into the following possible workflow:
Either way, I'm guessing here that the fields were manipulated first by some utility, without properly loading the turbulence model. Perhaps you are trying to use and old solver with a more modern OpenFOAM version? If so, you should have said so. For example, this is a recent feature: https://github.com/OpenFOAM/OpenFOAM...mpleFoam.C#L52 and is how the G field would be properly operational. |
|
March 20, 2019, 00:15 |
|
#8 |
Senior Member
Brett
Join Date: May 2013
Posts: 216
Rep Power: 14 |
Thanks guys.
No idea what was wrong with CFD support. I had my nozzle simulation working fine yesterday and now it's not. I can't figure out the problem. Basically I'm just trying to simulate air at atmospheric pressure going through a nozzle, so pressure inlet mass flow rate outlet. Can you see anything wrong with my p and U files? Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: dev | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { Inlet { type pressureInletOutletVelocity; } Outlet { type flowRateOutletVelocity value uniform 2; } Walls { type noSlip; } } // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: dev | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField uniform 0; boundaryField { Inlet { type fixedValue; value uniform 101300; } Outlet { type inletOutlet; } Walls { type noSlip; } } // ************************************************************************* // Last edited by wyldckat; March 24, 2019 at 15:02. Reason: Added [CODE][/CODE] markers |
|
March 21, 2019, 10:01 |
|
#9 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
Try posting the error message? What you are doing is like sending us a photo of your hair before you got a haircut and now you're asking what are all the possible illnesses you might have.
Give you tell us what the last doctor (error message) has already diagnosed? The funny thing about coded software is, if you don't do anything to it, it doesn't change. What did you do to it? |
|
March 24, 2019, 15:04 |
|
#10 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer:
Quote:
|
||
Tags |
openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error message | Bruno_Jorge | Main CFD Forum | 1 | February 5, 2019 12:12 |
namespace Foam | Argen | OpenFOAM | 4 | February 5, 2019 09:55 |
Identifying Markers in a CGNS Mesh | tjim | SU2 | 3 | October 12, 2018 02:21 |
execFlowFunctionObjects - unknown field problem | Toorop | OpenFOAM Post-Processing | 16 | March 14, 2016 04:25 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |