|
[Sponsors] |
icoFoam : how to include a volScalarField in convection Term? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 25, 2017, 12:13 |
icoFoam : how to include a volScalarField in convection Term?
|
#1 |
New Member
Amir Hossein Rabiee
Join Date: Apr 2017
Posts: 3
Rep Power: 8 |
Hi
I am very new in OpenFOAM. I want to change icoFoam solver in order to solve a special equation. my equation is very similar to Navier Stokes equation with small differences. one of these differences is in convection term. in my equation, convection term has an additional parameter which is a volScalarField , therefore I must implement div(U*U*eps) instead of div(U*U) -------> eps = volScalarField but I can't write it in OpenFOAM language with no syntax errors please help me thanks! |
|
April 26, 2017, 05:52 |
|
#2 | |
Member
Mehdi Aminyavari
Join Date: Feb 2016
Location: Milan
Posts: 35
Rep Power: 10 |
Quote:
what you want is exactly like fvm::div(rhoPhi, U) where rho is a volScalar , have a look at the UEqn.H and creatField.H files in interFoam solver in this directory: applications/solvers/multiphase/interFoam and follow the same path. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 06:16 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 15:45 |
SOU for convection term | Ardalan | Main CFD Forum | 3 | April 17, 2010 16:10 |
[Q] Convection term treatment in UDS | Ryan, Lee | FLUENT | 4 | October 18, 2004 10:20 |
Convection Term | Senthil | Main CFD Forum | 0 | December 20, 2000 07:13 |