|
[Sponsors] |
March 3, 2021, 00:53 |
Changing Viscosity in solver
|
#1 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
Hi all,
I am working on the viscosity value in a multiphase solver. Due to some modifications, I need to change the viscosity value in the solver using a function in my defined class. So I used the following line to access the viscosity and change it. Code:
volScalarField k_viscosity = turbulence->nu(); particleCloud.setParticleViscosity(k_viscosity); Cheers, Mohammad |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so | immortality | OpenFOAM Pre-Processing | 15 | April 7, 2024 13:35 |
PEMFC model with FLUENT | brahimchoice | FLUENT | 22 | April 19, 2020 16:44 |
[PyFoam] having problems with pyfoam Installation | vitorspadetoventurin | OpenFOAM Community Contributions | 3 | December 2, 2014 08:18 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |