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

request for volScalarField k from objectRegistry region0 failed+(DPMFoam)

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2017, 02:24
Default request for volScalarField k from objectRegistry region0 failed+(DPMFoam)
  #1
New Member
 
abdollahi
Join Date: Nov 2012
Posts: 16
Rep Power: 14
abdollahi is on a distinguished road
Hi Everyone,

I have a problem with my case solving by lagrangian(DPMFoam), which, I am presenting you in the following feedback information:




--> FOAM FATAL ERROR:


request for volScalarField k from objectRegistry region0 failed
available objects of type volScalarField are


12
(
nut.H2O
k.H2O
(1|A(U.H2O))
kEpsilon:G
alpha.H2O_0
nu
div(phi.H2O)
p
rho.H2O
mu.H2O
alpha.H2O
epsilon.H2O
)




From function objectRegistry::lookupObject<Type>(const word&) const
in file /home/a/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 198.


FOAM aborting


#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam:bjectRegistry::lookupObject<Foam::Geometric Field<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const at ??:?
#3 Foam::turbulentMixingLengthDissipationRateInletFvP atchScalarField::updateCoeffs() at ??:?
#4 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::updateCoef fs() at ??:?
#5 Foam::RASModels::kEpsilon<Foam::PhaseIncompressibl eTurbulenceModel<Foam::singlePhaseTransportModel> >::correct() at ??:?
#6 ? at ??:?
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8 ? at ??:?
Aborted (core dumped)




Did anyone have the same problem before ? I mean, how to deal with error type : "request for volScalarField k from objectRegistry region0 failed" ?

I will be appreciate for any advice.
abdollahi is offline   Reply With Quote

Old   April 21, 2017, 06:04
Default request for volScalarFiel
  #2
New Member
 
Max
Join Date: Sep 2016
Location: Delft
Posts: 22
Rep Power: 10
WildeCat is on a distinguished road
Hi abdollahi,

the error message you get tells you the solution. You are using "DPMFFoam" as a solver and a field called "k".

Quote:
--> FOAM FATAL ERROR:


request for volScalarField k from objectRegistry region0 failed
The next thing openfoam tells you is which fields are available

Quote:
available objects of type volScalarField are


12
(
nut.H2O
k.H2O
(1|A(U.H2O))
kEpsilon:G
alpha.H2O_0
nu
div(phi.H2O)
p
rho.H2O
mu.H2O
alpha.H2O
epsilon.H2O
)
I imagine you have a field "k" in the "0" directory. This field should based on your error message be specified per species, so in your case "k.H2O".

You can check out the openfoam tutorial (I put the link for openfoam301) here
https://github.com/OpenFOAM/OpenFOAM.../Goldschmidt/0

where the velocity "U" is specified as "U.air".

Hope I was of help
Kummi, souza.emer and hashimh1994 like this.
WildeCat is offline   Reply With Quote

Old   April 21, 2017, 06:37
Default
  #3
New Member
 
abdollahi
Join Date: Nov 2012
Posts: 16
Rep Power: 14
abdollahi is on a distinguished road
thanks
But I have in 0 dictionary U.H2O , k.H2O,…. . Fluid in my case is water.
abdollahi is offline   Reply With Quote

Old   April 21, 2017, 06:40
Default More information
  #4
New Member
 
Max
Join Date: Sep 2016
Location: Delft
Posts: 22
Rep Power: 10
WildeCat is on a distinguished road
Hi abdollahi

For me to help you more I need more information.

Would it be possible for you to upload a simplified version of your test case with the 0, constant and system directory?
WildeCat is offline   Reply With Quote

Old   April 21, 2017, 07:34
Default
  #5
New Member
 
abdollahi
Join Date: Nov 2012
Posts: 16
Rep Power: 14
abdollahi is on a distinguished road
I sent 0,constant and system dictionary as private message.

thank you very much
abdollahi is offline   Reply With Quote

Old   April 21, 2017, 10:23
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi all,

@abdollahi

Error is caused by turbulentMixingLengthDissipationRateInletFvPatchSc alarField. It uses TKE to calculate dissipation rate and by default in OpenFOAM TKE field is called k.

In you case it is called k.H2O, so in turbulentMixingLengthDissipationRateInlet description you have to add

Code:
k k.H2O;
so it becomes something like:

Code:
my-lovely-inlet
{
    type turbulentMixingLengthDissipationRateInlet;
    mixingLength 100;
    k k.H2O;
    value uniform 10;
}
alexeym is offline   Reply With Quote

Old   April 21, 2017, 12:43
Default
  #7
New Member
 
abdollahi
Join Date: Nov 2012
Posts: 16
Rep Power: 14
abdollahi is on a distinguished road
Hi alexeym
I solve this case by simpleFoam as steady state, after it is converged, I replace the latest time in 0 dictionary in lagrangian (DPMFoam). I don’t understand what do you say? I don’t know where I put “ k .H2O” in simpleFoam or lagrangian? what dictionary?
thanks
abdollahi is offline   Reply With Quote

Old   April 21, 2017, 14:20
Default
  #8
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Since the error happens during DPMFoam run, you have to add the line to 0 folder in DPMFoam case. And since turbulentMixingLengthDissipationRateInlet is BC for epsilon, you have to add the line to epsilon.H2O file. But since it you, who run simulations, you should know better.
alexeym is offline   Reply With Quote

Old   April 22, 2017, 01:01
Default
  #9
New Member
 
abdollahi
Join Date: Nov 2012
Posts: 16
Rep Power: 14
abdollahi is on a distinguished road
hi,
"k" in 0 dictionary in simpleFoam:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 1;

boundaryField
{
inlet
{
type turbulentIntensityKineticEnergyInlet;
intensity 0.045;

value $internalField;
}
outlet
{
type turbulentIntensityKineticEnergyInlet;
intensity 0.06;
U U;

value $internalField;
}
walls
{
type kqRWallFunction;
value uniform 0;
}
bottom
{
type kqRWallFunction;
value uniform 0;
}
back
{
type wedge;
}
front
{
type wedge;
}
stl
{
type kqRWallFunction;
value uniform 0;
}
}


// ************************************************** *********************** //





"k.H2O" in 0 dictionary in DPMFoam:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "1228";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField nonuniform List<scalar>
25179
(
3.15091e-06
2.56557e-06
2.0005e-06
1.37121e-06
7.18191e-07
4.0741e-07
.
.
.
.
abdollahi is offline   Reply With Quote

Old   April 22, 2017, 01:07
Default
  #10
New Member
 
abdollahi
Join Date: Nov 2012
Posts: 16
Rep Power: 14
abdollahi is on a distinguished road
"epsilon" in 0 dictionary in simpleFoam:



/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -3 0 0 0 0];

internalField uniform 200;

boundaryField
{
inlet
{
type turbulentMixingLengthDissipationRateInlet;
mixingLength 0.15;

value $internalField;
}
outlet
{
type turbulentMixingLengthDissipationRateInlet;
mixingLength 0.0025;

value $internalField;
}
walls
{

type epsilonWallFunction;
value $internalField;
}
bottom
{

type epsilonWallFunction;
value $internalField;
}
back
{
type wedge;
}
front
{
type wedge;
}
stl
{

type epsilonWallFunction;
value $internalField;
}
}


// ************************************************** *********************** //


"epsilon.H2O" in 0 dictionary in DPMFoam:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "1228";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -3 0 0 0 0];

internalField nonuniform List<scalar>
25179
(
7.08276e-08
5.18813e-08
3.57445e-08
2.02775e-08
7.64593e-09
.
.
.
.
abdollahi is offline   Reply With Quote

Old   April 22, 2017, 02:59
Default
  #11
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
1. In dictionaries, you have posted, find the following sequence of letters:

Code:
turbulentMixingLengthDissipationRateInlet
2. Compare what you have around and what I have posted in post #6 (request for volScalarField k from objectRegistry region0 failed+(DPMFoam)).

3. Make corresponding corrections in the case, which halts with error.
alexeym is offline   Reply With Quote

Old   April 23, 2017, 11:07
Default
  #12
New Member
 
abdollahi
Join Date: Nov 2012
Posts: 16
Rep Power: 14
abdollahi is on a distinguished road
thanks, I change it, but I have same error.
abdollahi is offline   Reply With Quote

Old   April 23, 2017, 13:59
Default
  #13
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
What changes did you made? Error is EXACTLY the same? It looks like WE have problems running the case, not you.

Any way, the only person in the thread, who saw you case files is WildeCat, let's wait for his answer.
alexeym is offline   Reply With Quote

Old   April 23, 2017, 16:07
Default Answer
  #14
New Member
 
Max
Join Date: Sep 2016
Location: Delft
Posts: 22
Rep Power: 10
WildeCat is on a distinguished road
Hi all, I saw parts of the file and I agree, that the error is most likely from what you mention Alex. I send this as a pm to abdollahi. But I got the case as messages and couldnt run it myself. Could you upload the case on a fileshare? It would make things a hell of a lot easier for us to help you. Cheers
WildeCat is offline   Reply With Quote

Old   April 24, 2017, 04:55
Default Solution
  #15
New Member
 
Max
Join Date: Sep 2016
Location: Delft
Posts: 22
Rep Power: 10
WildeCat is on a distinguished road
I have received the full case and indeed Alex, what you suggested is the right solution. After correcting this error, also 2 others show up which have to be corrected in the same way.

For everybody having a similar problem I refer them to post #6 and

https://www.cfd-online.com/Forums/op...onditions.html

which presents how to restart a simulation with a different boundary condition

Best regards
WildeCat is offline   Reply With Quote

Old   April 24, 2017, 09:30
Default
  #16
New Member
 
abdollahi
Join Date: Nov 2012
Posts: 16
Rep Power: 14
abdollahi is on a distinguished road
hi
my case is run without error,I really appreciate your help.
abdollahi is offline   Reply With Quote

Old   July 15, 2018, 05:16
Default yPlus
  #17
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11
amuzeshi is on a distinguished road
Hello Alex
my error is relatively the same; but mine is about yPlus. I'm using simpleFoam -postProcess -func yPlus. yPlus is generated only in 0 time but not in the next steps (case dir/postProcessing/yPlus). What's the problem? The error is as the following:

Code:
--> FOAM FATAL ERROR: 

    request for volScalarField yPlus from objectRegistry region0 failed
    available objects of type volScalarField are

5
(
nut
k
nu
p
epsilon
)


    From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>]

.
.
.
#3  Foam::functionObjects::yPlus::execute() at ??:?
.
.
.
amuzeshi is offline   Reply With Quote

Old   July 16, 2018, 04:07
Default
  #18
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Creating single postProcessing/yPlus/0/yPlus.dat file is normal yPlus function object behaviour. In this file data for all time steps are stored.

Describe your case in more details. yPlus function object runs on pitzDaily tutorial case quite OK: creates yPlus field for every available saves and collects statistics in postProcessing folder.
alexeym is offline   Reply With Quote

Old   July 16, 2018, 07:08
Default
  #19
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11
amuzeshi is on a distinguished road
This is a backward Facing Step case using k-w. Pls check if you could get yPlus using the method mentioned.
Attached Files
File Type: gz step.tar.gz (3.7 KB, 35 views)
amuzeshi is offline   Reply With Quote

Old   July 16, 2018, 07:25
Default
  #20
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Everything was identical to pitzDaily tutorial. You case converged in 1198 iterations. simpleFoam -postProcess -func yPlus calculated y+ values without any problems.
alexeym 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
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel U.Golling OpenFOAM Running, Solving & CFD 52 September 23, 2023 04:35
Initial conditions for uniform flow andreas OpenFOAM 5 November 16, 2012 16:00
[OpenFOAM] ParaView/Parafoam error when making animation Disco_Caine ParaView 6 September 28, 2010 10:54
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31
user defined function cfduser CFX 0 April 29, 2006 11:58


All times are GMT -4. The time now is 20:54.