Skip to content
Snippets Groups Projects
Commit 3fc8c16b authored by sergio's avatar sergio
Browse files

BUG: Fix to source in energy Eq for solid

parent 3f8aefc4
Branches
Tags
No related merge requests found
......@@ -15,6 +15,9 @@
const volScalarField& kappa = tkappa();
//const volSymmTensorField& K = tK();
tmp<volScalarField> trhoCp = cp*rho;
const volScalarField& rhoCp = trhoCp();
volScalarField& T = thermo.T();
IObasicSourceList& sources = solidHeatSources[i];
......@@ -4,7 +4,7 @@
tmp<fvScalarMatrix> TEqn
(
- fvm::laplacian(betav*kappa, T, "laplacian(K,T)")
+ sources(rho, T)
+ sources(rhoCp, T)
);
TEqn().relax();
......
......@@ -15,6 +15,9 @@
const volScalarField& kappa = tkappa();
//const volSymmTensorField& K = tK();
tmp<volScalarField> trhoCp = cp*rho;
const volScalarField& rhoCp = trhoCp();
volScalarField& T = thermo.T();
IObasicSourceList& sources = solidHeatSources[i];
......@@ -10,7 +10,7 @@ if (finalIter)
(
fvm::ddt(betav*rho*cp, T)
- fvm::laplacian(betav*kappa, T, "laplacian(K,T)")
+ sources(rho, T)
+ sources(rhoCp, T)
);
TEqn().relax();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment