-
Notifications
You must be signed in to change notification settings - Fork 1
/
foam-extend-4-changes.patch
33 lines (29 loc) · 1.15 KB
/
foam-extend-4-changes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff -Naur turbulentPotential/turbulentPotential.C turbulentPotentialFixU/turbulentPotential.C
--- turbulentPotential.C
+++ turbulentPotential.C
@@ -963,14 +963,14 @@
}
// Term that is directly added to the momentum equation
-tmp<fvVectorMatrix> turbulentPotential::divDevReff(volVectorField& U) const
+tmp<fvVectorMatrix> turbulentPotential::divDevReff() const
{
return
(
fvc::grad(phiReal())
+ fvc::curl(psiReal())
- + fvc::laplacian(nut_, U, "laplacian(nuEff,U)")
- - fvm::laplacian(nuEff(), U)
+ + fvc::laplacian(nut_, U_, "laplacian(nuEff,U_)")
+ - fvm::laplacian(nuEff(), U_)
);
}
diff -Naur turbulentPotential/turbulentPotential.H turbulentPotentialFixU/turbulentPotential.H
--- turbulentPotential.H
+++ turbulentPotential.H
@@ -401,7 +401,7 @@
virtual tmp<volSymmTensorField> devReff() const;
//- Return the source term for the momentum equation
- virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
+ virtual tmp<fvVectorMatrix> divDevReff() const;
//- Solve the turbulence equations and correct the turbulence viscosity
virtual void correct();