mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
12 lines
277 B
C
12 lines
277 B
C
forAllIter(PtrDictionary<phaseModel>, fluid.phases(), iter)
|
|
{
|
|
phaseModel& phase = iter();
|
|
|
|
phase.DDtU() =
|
|
fvc::ddt(phase.U())
|
|
+ fvc::div(phase.phi(), phase.U())
|
|
- fvc::div(phase.phi())*phase.U();
|
|
|
|
MRF.addAcceleration(phase.U(), phase.DDtU());
|
|
}
|