|
[Sponsors] |
September 15, 2010, 06:35 |
A source term in a vector equation
|
#1 |
New Member
Join Date: Sep 2010
Posts: 3
Rep Power: 16 |
Hello everyone,
I am solving a passive vector equation, along with the Navier-Stokes equations. There is a source term related to the main variable (AU & fvc::grad(U)). How can I treat it in an implicit way? The code is as follows, fvVectorMatrix AUEqn ( fvm::ddt(AU) + fvm::div(phi, AU) - fvm::laplacian(PrRa_12, AU) == - AU & fvc::grad(U) ); AUEqn.relax(); if (momentumPredictor) { solve ( AUEqn == Arhok*g - fvc::grad(Ap) ); } In the present code, "AU & fvc::grad(U)" is treated explicitly. However, the solution is unstable. So I wonder if there is any method to treat it implicitly. From OpenFoam manual I know that the source term can be solved implicitly by fvm::SuSp(rho , AU). However, rho here must be volScalarField while fvc::grad(U)) in my equation is a volTensorField. Thank you! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
momentum source term | zwdi | FLUENT | 14 | June 27, 2017 16:40 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 14, 2000 00:03 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 04:43 |