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

Error: cannot be called for a calculatedFvPatchField

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Lorenzo210

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2021, 08:48
Default Error: cannot be called for a calculatedFvPatchField
  #1
New Member
 
Mert
Join Date: Nov 2020
Posts: 3
Rep Power: 6
rocknrolltr is on a distinguished road
Hello,


I'm trying to run a tutorial with an edited solver (this solver has the solid part of the heatTransfer solver chtMultiRegionTwoPhaseEuerFoam and the fluid part of the multiphase solver interCondensatingEvaporatingFoam. I basically combined both solvers).


It runs without a problem until the first PIMPLE iteration and then it gives me the following error:


Code:
PIMPLE: iteration 1


--> FOAM FATAL ERROR: 
cannot be called for a calculatedFvPatchField
    on patch region0_to_solid of field alpha.liquid in file "/home/ws/uwdpr/OpenFoam_Source/OpenFOAM-v2006/tutorials/Case_Mert3/0/alpha.liquid"
    You are probably trying to solve for a field with a default boundary condition.

    From Foam::tmp<Foam::Field<Type> > Foam::calculatedFvPatchField<Type>::valueInternalCoeffs(const Foam::tmp<Foam::Field<double> >&) const [with Type = double]
    in file /home/ws/uwdpr/OpenFoam_Source/OpenFOAM-v2006/src/finiteVolume/lnInclude/calculatedFvPatchField.C at line 151.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::exitOrAbort(int, bool) at ??:?
#2  Foam::calculatedFvPatchField<double>::valueInternalCoeffs(Foam::tmp<Foam::Field<double> > const&) const in ~/OpenFoam_Source/OpenFOAM-v2006/platforms/linux64GccDPInt32Opt/bin/myinterCondensatingEvaporatingFoam
#3  Foam::fv::gaussConvectionScheme<double>::fvmDiv(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) const in ~/OpenFoam_Source/OpenFOAM-v2006/platforms/linux64GccDPInt32Opt/bin/myinterCondensatingEvaporatingFoam
#4  ? in ~/OpenFoam_Source/OpenFOAM-v2006/platforms/linux64GccDPInt32Opt/bin/myinterCondensatingEvaporatingFoam
#5  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#6  ? in ~/OpenFoam_Source/OpenFOAM-v2006/platforms/linux64GccDPInt32Opt/bin/myinterCondensatingEvaporatingFoam

I don't understand why it gives me this error and what this error means



Thank you in advance.


Best regards,
Mert
rocknrolltr is offline   Reply With Quote

Old   April 12, 2021, 04:14
Default
  #2
Member
 
Lorenzo
Join Date: Apr 2020
Location: Italy
Posts: 47
Rep Power: 6
Lorenzo210 is on a distinguished road
Hello,
What are the alpha.liquid's boundary condition in 0 folder? I guess You are probably using a type "calculated" on the patch "region0_to_solid" when this is not allowed for such a parametre.
rocknrolltr likes this.
Lorenzo210 is offline   Reply With Quote

Old   April 16, 2021, 05:53
Default
  #3
New Member
 
Mert
Join Date: Nov 2020
Posts: 3
Rep Power: 6
rocknrolltr is on a distinguished road
Hi Lorenzo210,


yes I was trying to use a type "calculated". Thanks for your reply
rocknrolltr is offline   Reply With Quote

Reply

Tags
boundary condition, chtmultiregionfoam, foam fatal error, intercondensatingevaporat, tutorial


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
How is the turbulence model called in openfoam? hz283 OpenFOAM 4 December 13, 2024 19:56
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 05:37
terminate called after throwing an instance of 'int' b614910 SU2 10 July 27, 2014 23:16
understanding how turbulence models are called romant OpenFOAM Programming & Development 0 March 21, 2012 10:22
reconstructParMesh not working with an axisymetric case francesco OpenFOAM Bugs 4 May 8, 2009 06:49


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