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

If else condition in PowerLaw viscosity model

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 25, 2019, 05:18
Default If else condition in PowerLaw viscosity model
  #1
New Member
 
Join Date: Jun 2019
Posts: 17
Rep Power: 6
zcheng is on a distinguished road
Hello everyone I am new to OpenFoam and I would like to know if it's possible to implement an if else condition in Power Law viscosity model?

if (a<0.8)
{
nuMin nuMax loop of PowerLaw;
}
else
{
nu = 10*a;
}

Thanks a lot.
zcheng is offline   Reply With Quote

 


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
Viscosity model - error: object is not allocated - C++ beginner avila.vc OpenFOAM Programming & Development 5 February 14, 2022 02:00
New Viscosity model in DriftFluxFoam yang.l OpenFOAM 2 December 2, 2017 06:56
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Adding a new viscosity model ICL OpenFOAM Running, Solving & CFD 20 April 10, 2017 22:44
Questions about Cross-Arrhenius and Cross-WLF viscosity model awacs OpenFOAM Running, Solving & CFD 4 August 13, 2009 06:56


All times are GMT -4. The time now is 09:42.