Skip to content

Commit

Permalink
BUG: changing lookup name in the database for BC
Browse files Browse the repository at this point in the history
  • Loading branch information
sferraris committed Oct 25, 2011
1 parent 23960d9 commit 13b58fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
Expand Up @@ -149,16 +149,6 @@ void tractionDisplacementFvPatchVectorField::updateCoeffs()
const dictionary& thermalProperties =
db().lookupObject<IOdictionary>("thermalProperties");

/*
dimensionedScalar rho(mechanicalProperties.lookup("rho"));
dimensionedScalar rhoE(mechanicalProperties.lookup("E"));
dimensionedScalar nu(mechanicalProperties.lookup("nu"));
dimensionedScalar E = rhoE/rho;
dimensionedScalar mu = E/(2.0*(1.0 + nu));
dimensionedScalar lambda = nu*E/((1.0 + nu)*(1.0 - 2.0*nu));
dimensionedScalar threeK = E/(1.0 - 2.0*nu);
*/

const fvPatchField<scalar>& rho =
patch().lookupPatchField<volScalarField, scalar>("rho");
Expand Down Expand Up @@ -199,12 +189,8 @@ void tractionDisplacementFvPatchVectorField::updateCoeffs()

if (thermalStress)
{
//dimensionedScalar alpha(thermalProperties.lookup("alpha"));
const fvPatchField<scalar>& alpha =
patch().lookupPatchField<volScalarField, scalar>("alpha");

//dimensionedScalar threeKalpha = threeK*alpha;
scalarField threeKalpha = threeK*alpha;
const fvPatchField<scalar>& threeKalpha=
patch().lookupPatchField<volScalarField, scalar>("threeKalpha");

const fvPatchField<scalar>& T =
patch().lookupPatchField<volScalarField, scalar>("T");
Expand Down
Expand Up @@ -17,7 +17,7 @@ FoamFile

C
{
C CInf
C CInf;
CInf CInf [ 0 2 -2 -1 0 0 0 ] 434;
}

Expand All @@ -33,7 +33,7 @@ alpha
alphaInf alphaInf [ 0 0 0 -1 0 0 0 ] 1.1e-05;
}

thermalStress no;
thermalStress yes;


// ************************************************************************* //
Expand Up @@ -20,9 +20,14 @@ d2dt2Schemes
default steadyState;
}

ddtSchemes
{
default Euler;
}

gradSchemes
{
default leastSquares;
default leastSquares;
grad(D) leastSquares;
grad(T) leastSquares;
}
Expand Down

0 comments on commit 13b58fc

Please sign in to comment.