mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Updated support for clang-3.1
This commit is contained in:
@ -13,8 +13,8 @@
|
||||
volScalarField rAU1(1.0/U1Eqn.A());
|
||||
volScalarField rAU2(1.0/U2Eqn.A());
|
||||
|
||||
surfaceScalarField rAlphaAU1f = fvc::interpolate(alpha1*rAU1);
|
||||
surfaceScalarField rAlphaAU2f = fvc::interpolate(alpha2*rAU2);
|
||||
surfaceScalarField rAlphaAU1f(fvc::interpolate(alpha1*rAU1));
|
||||
surfaceScalarField rAlphaAU2f(fvc::interpolate(alpha2*rAU2));
|
||||
|
||||
volVectorField HbyA1("HbyA1", U1);
|
||||
HbyA1 = rAU1*U1Eqn.H();
|
||||
@ -104,7 +104,7 @@
|
||||
|
||||
if (pimple.finalNonOrthogonalIter())
|
||||
{
|
||||
surfaceScalarField mSfGradp = pEqnIncomp.flux()/Dp;
|
||||
surfaceScalarField mSfGradp(pEqnIncomp.flux()/Dp);
|
||||
|
||||
phi1 = phiHbyA1 + rAlphaAU1f*mSfGradp/fvc::interpolate(rho1);
|
||||
phi2 = phiHbyA2 + rAlphaAU2f*mSfGradp/fvc::interpolate(rho2);
|
||||
|
||||
@ -71,7 +71,7 @@ Foam::tmp<Foam::volScalarField> Foam::dragModels::GidaspowErgunWenYu::K
|
||||
) const
|
||||
{
|
||||
volScalarField alpha2(max(phase2_, scalar(1.0e-6)));
|
||||
volScalarField d = phase1_.d();
|
||||
volScalarField d(phase1_.d());
|
||||
volScalarField bp(pow(alpha2, -2.65));
|
||||
volScalarField Re(max(Ur*d/phase2_.nu(), scalar(1.0e-3)));
|
||||
|
||||
|
||||
@ -189,9 +189,9 @@
|
||||
|
||||
Info<< "Calculating Lame's coefficients\n" << endl;
|
||||
|
||||
volScalarField mu = E/(2.0*(1.0 + nu));
|
||||
volScalarField lambda = nu*E/((1.0 + nu)*(1.0 - 2.0*nu));
|
||||
volScalarField threeK = E/(1.0 - 2.0*nu);
|
||||
volScalarField mu(E/(2.0*(1.0 + nu)));
|
||||
volScalarField lambda(nu*E/((1.0 + nu)*(1.0 - 2.0*nu)));
|
||||
volScalarField threeK(E/(1.0 - 2.0*nu));
|
||||
|
||||
Switch planeStress(mechanicalProperties.lookup("planeStress"));
|
||||
|
||||
|
||||
@ -159,9 +159,9 @@ void tractionDisplacementCorrectionFvPatchVectorField::updateCoeffs()
|
||||
const fvPatchField<scalar>& nu =
|
||||
patch().lookupPatchField<volScalarField, scalar>("nu");
|
||||
|
||||
scalarField E = rhoE/rho;
|
||||
scalarField mu = E/(2.0*(1.0 + nu));
|
||||
scalarField lambda = nu*E/((1.0 + nu)*(1.0 - 2.0*nu));
|
||||
scalarField E(rhoE/rho);
|
||||
scalarField mu(E/(2.0*(1.0 + nu)));
|
||||
scalarField lambda(nu*E/((1.0 + nu)*(1.0 - 2.0*nu)));
|
||||
|
||||
Switch planeStress(mechanicalProperties.lookup("planeStress"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user