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

Coded Boundary Condition for Velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2022, 06:42
Default Coded Boundary Condition for Velocity
  #1
New Member
 
Join Date: Jul 2017
Posts: 14
Rep Power: 8
kooki_13 is on a distinguished road
Dear Fomers,


I am currently working with OF2112, and I have used coded BC for inlet velocity.


part of my code has:


scalar t_ = this->db().time().value();


But when I run the simulation, I get the error:


LowRe/0/U.boundaryField.JetInlet.U:59:22: error: ‘const class Foam::PatchFunction1Types::myExpressionPatchFuncti on1VectorField’ has no member named ‘db’
make: *** [/usr/lib/openfoam/openfoam2112/wmake/rules/General/transform:35: Make/linux64GccDPInt32Opt/codedPatchFunction1Template.o] Error 1


--> FOAM FATAL IO ERROR: (openfoam-2112 patch=220310)
Failed wmake "dynamicCode/myExpression/platforms/linux64GccDPInt32Opt/lib/libmyExpression_7c98b46426430ac5a842b2ddb24c61d371 1fb165.so"


file: 0/U.boundaryField.JetInlet.U at line 40 to 52.

From void Foam::codedBase::createLibrary(Foam::dynamicCode&, const Foam::dynamicCodeContext&) const
in file db/dynamicLibrary/codedBase/codedBase.C at line 240.

FOAM exiting



Has anyone had the same problem?
Could you please help me?


Thank you in advance.
kooki_13 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Centrifugal fan j0hnny CFX 13 October 1, 2019 13:55
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
Accessing multiple boundary patches from a custom boundary condition file ripudaman OpenFOAM Programming & Development 0 October 22, 2014 18:34
Radiation interface hinca CFX 15 January 26, 2014 17:11


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