This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/incompressible/icoDyMFoam/UEqn.H

15 lines
296 B
C++
Raw Normal View History

2017-01-05 07:46:51 +00:00
// Time-derivative matrix
fvVectorMatrix ddtUEqn(fvm::ddt(U));
// Convection-diffusion matrix
fvVectorMatrix HUEqn
(
2017-01-05 07:46:51 +00:00
fvm::div(phi, U)
- fvm::laplacian(nu, U)
);
if (piso.momentumPredictor())
{
2017-01-05 07:46:51 +00:00
solve(ddtUEqn + HUEqn == -fvc::grad(p));
}