himanshu28 
September 19, 2013 10:29 
Dimension Error not while adding heat source with Heat Equation
Hi,
I am trying to add Energy source in the turbulent energy equation given below,
Code:
{
alphat = turbulence>nut()/Prt;
alphat.correctBoundaryConditions();
volScalarField alphaEff
("alphaEff",
turbulence>nu()/Pr + turbulence>nut()/Prt
);
fvScalarMatrix TEqn
(
fvm::ddt(T)
+ fvm::div(phi, T)
 fvm::laplacian(alphaEff, T)
 q/Cp1
);
TEqn.relax();
TEqn.solve();
}
so if you check the dimension of the equation it is coming (kelvin/sec) , my source q is specified in terms of (j/sec) hence i divided it with the heat capacity Cp1(j/k) of my source and specified correct dimensions in the transport property as well >my solver is running properly if i remove this source term but when i am trying to run with this source term its giving me the following error.
Code:
Different dimensions for =
dimensions : [0 2 1 0 0 0 0] = [0 4 3 0 0 0 0]
From function dimensionSet::operator=(const dimensionSet&) const
in file dimensionSet/dimensionSet.C at line 165.
i am not able to track this bug in the solver if somebody can help me on this i will be thankful
Regards
Himanshu :(
