CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

how to call viscosity in openfoam Solver development

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2023, 03:23
Exclamation how to call viscosity in openfoam Solver development
New Member
Rishi Kumar
Join Date: Jun 2022
Posts: 15
Rep Power: 2
rishik686 is on a distinguished road
Dear Foamers,
I am trying to couple an equation in NS Eqn in OpenFOAM in which I need the viscosity nu.

But when I try to compile it shows the following error

./createFields.H: In function ‘int main(int, char**)’:
./createFields.H:146:53: error: missing template arguments before ‘(’ token
146 | incompressibleMomentumTransportModels_H laminarModel(U, phi);

I described a new viscosity model in OpenFOAM and used that viscosity in the coupled equation.
the viscosity model compiled successfully

But the solver is not able to take the viscosity.

I request Please if anyone can help me with this I will be very thankful.


How to call the viscosity in openFoam 10. this may also work for my issue.

Hoping for reply
Rishi K.
rishik686 is offline   Reply With Quote


coupled, openfoam, template, viscosity

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Fail to converge when solving with a fabricated solution zizhou FLUENT 0 March 22, 2021 06:33
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08
[] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 19:00
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18

All times are GMT -4. The time now is 22:51.