|
[Sponsors] |
October 8, 2015, 09:18 |
programming with external term and equation
|
#1 |
Member
Join Date: Sep 2014
Posts: 32
Rep Power: 11 |
Hello everyone, I am quite new to OpenFoam, especially to the programming part. Now I would like to solve the following equation:
ddt(U)+div(phi,U)-laplacian(nu,U) == -grad(p) - chi * (U-Ubar) ddt(Ubar) == omega * (U - Ubar) in which Ubar is another field vector. For the last red terms in both equation, they are direct multiplication of scalar and vector field. How should I discrete it? Like for other terms: fvm::div(phi,U), what is the operator for such a direct calculation? Many thanks Yong |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Source Term due to evaporation in energy transport equation | styleworker | OpenFOAM Programming & Development | 3 | September 7, 2022 03:09 |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 06:27 |
viscosity term in discetrization momentum equation | hans-186 | Main CFD Forum | 4 | April 1, 2013 13:34 |
How to? Extra term in k-e equation. Implicit-Explicit | be_inspired | OpenFOAM Programming & Development | 1 | March 19, 2013 10:50 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 15:45 |