|
[Sponsors] |
May 5, 2013, 05:01 |
how to develope a solver
|
#1 |
Member
Arjang Behnoud
Join Date: Oct 2012
Posts: 63
Rep Power: 14 |
Hi everyone,
i want to develop a solver by adding energy equation to momentum equation(like adding temperature to icoFoam solver) but the difference is that the variables are coupled in these two equations for instance, viscosity in momentum equation varies with temperature in energy equation. what should i do? any help is appreciated. Arjang |
|
May 5, 2013, 06:13 |
new volScalarField nu
|
#2 |
Senior Member
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18 |
Hi
stick to this howTo: HTML Code:
http://openfoamwiki.net/index.php/How_to_add_temperature_to_icoFoam Code:
volScalarField nu ( IOobject ( "nu", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), nu0*(scalar(1)-nuk*(T-T0) ); Code:
nu = nu0*(scalar(1)-nuk*(T-T0)); Code:
dimensionedScalar nu0 ( transportProperties.lookup("nu0") ); dimensionedScalar nuk ( transportProperties.lookup("nuk") ); ... 3. Update your viscosity function after you solved for temperature in the TEqn.H Code:
nu = nu0*(scalar(1)-nuk*(T-T0)); This should be all. Regards Fabian |
|
May 6, 2013, 03:57 |
appreciation
|
#3 |
Member
Arjang Behnoud
Join Date: Oct 2012
Posts: 63
Rep Power: 14 |
Hallo Fabian
Vielen Dank. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
thobois class engineTopoChangerMesh error | Peter_600 | OpenFOAM | 4 | August 2, 2014 10:52 |
3d vof | Smaras | FLUENT | 2 | February 19, 2013 07:58 |
Interfoam blows on parallel run | danvica | OpenFOAM Running, Solving & CFD | 16 | December 22, 2012 03:09 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |
How to develope my own solver | ztdep | OpenFOAM Running, Solving & CFD | 0 | September 15, 2005 11:41 |