|
[Sponsors] |
Divergence with solution variable as first entry |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 22, 2019, 10:10 |
Divergence with solution variable as first entry
|
#1 | |
New Member
Elisabeth Diehl
Join Date: Jun 2019
Posts: 8
Rep Power: 7 |
Hi everybody,
I have to include the term div(rho * dU & U) in a fvVectorMatrix, where & denotes the inner product of dU and U. The equation shall be solved for dU. I implemented the following code: Code:
surfaceScalarField dPhi ( IOobject ( "dPhi", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE ), fvc::flux(dU) ); surfaceScalarField rhoDPhi(fvc::interpolate(rho)*dPhi); fvVectorMatrix dUEqn.H ( ... + fvm::div(rhoDPhi & U) ... ); Quote:
Do you have an idea how to "switch" dU and U in a mathematically correct way, without writing a new divergence operator? Thanks a lot for thinking about this! |
||
Tags |
divergence |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compressible steady state solution divergence | Nero_CMU | OpenFOAM Running, Solving & CFD | 5 | January 12, 2016 10:57 |
how to get the divergence of a vector variable on a patch | GP_FDU | OpenFOAM Running, Solving & CFD | 1 | March 18, 2013 15:12 |
Divergence problem | Smaras | FLUENT | 13 | February 21, 2013 06:03 |
Env variable not set | gruber2 | OpenFOAM Installation | 5 | December 30, 2005 05:27 |
Divergence detected in solution | Kevan Moodley | Main CFD Forum | 7 | June 28, 1999 09:12 |