mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Corrected ambiguous field construction from tmp
This commit is contained in:
@ -185,7 +185,7 @@
|
||||
volScalarField& nu = nuPtr();
|
||||
|
||||
Info<< "Normalising E : E/rho\n" << endl;
|
||||
volScalarField E = rhoE/rho;
|
||||
volScalarField E(rhoE/rho);
|
||||
|
||||
Info<< "Calculating Lame's coefficients\n" << endl;
|
||||
|
||||
|
||||
@ -222,7 +222,7 @@ if (thermalStress)
|
||||
volScalarField& alpha = alphaPtr();
|
||||
|
||||
Info<< "Normalising k : k/rho\n" << endl;
|
||||
volScalarField k = rhoK/rho;
|
||||
volScalarField k(rhoK/rho);
|
||||
|
||||
Info<< "Calculating thermal coefficients\n" << endl;
|
||||
|
||||
|
||||
@ -159,10 +159,10 @@ void tractionDisplacementFvPatchVectorField::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 threeK = E/(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)));
|
||||
scalarField threeK(E/(1.0 - 2.0*nu));
|
||||
|
||||
Switch planeStress(mechanicalProperties.lookup("planeStress"));
|
||||
|
||||
@ -172,7 +172,7 @@ void tractionDisplacementFvPatchVectorField::updateCoeffs()
|
||||
threeK = E/(1.0 - nu);
|
||||
}
|
||||
|
||||
scalarField twoMuLambda = (2*mu + lambda);
|
||||
scalarField twoMuLambda(2*mu + lambda);
|
||||
|
||||
vectorField n(patch().nf());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user