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

calculatedFvPatchField error in openfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2023, 07:48
Default calculatedFvPatchField error in openfoam
  #1
New Member
 
Rishi Kumar
Join Date: Jun 2022
Posts: 20
Rep Power: 4
rishik686 is on a distinguished road
hey! foamers
I need to use the strain rate in my custom solver so I calculated it by writing the following line in the code

const volScalarField strainrate = sqrt(2.0)*mag(symm(fvc::grad(U)));

and my solver compile it successfully

but when I run my simulation I got the following error

FOAM FATAL ERROR:
cannot be called for a calculatedFvPatchField
on patch inlet of field (1.41421*mag(symm(grad(U)))) in file "/home/rishk686/OpenFOAM/rishk686-10/run/pipeflow_2/berris_mypimple/0.005/(1.41421*mag(symm(grad(U))))"
You are probably trying to solve for a field with a default boundary condition.

From function Foam::tmp<Foam::Field<Type> > Foam::calculatedFvPatchField<Type>::gradientIntern alCoeffs() const [with Type = double]
in file fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C at line 178.

FOAM aborting

I am unable to tackle this error.
I will be very thankful if someone helps me.

Thank you
__________________
Rishi K.
rishik686 is online now Add to rishik686's Reputation Report Post
__________________
Rishi K.
rishik686 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
How to develop OpenFOAM with CMake and popular IDEs cosscholar OpenFOAM Programming & Development 0 March 16, 2022 16:17
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07


All times are GMT -4. The time now is 14:55.