Quote:
fvm::ddt(fvc::laplacian(... Coming to your interpretation problem, you are mixing mathematical notations. The leibniz notation (d/dt) with the vector (nabla, delta) notation for derivatives. Im betting the Delta T in the term above means "temperature difference", not "second order derivative of..."' |
Interesting thing:compiles OK:
volScalarField lap(c * fvc::laplacian(a,T)); fvScalarMatrix TEqn (fvm::ddt(T) - fvm::ddt(lap) - fvm::laplacian(a,T) == 0); but solution fails with the following error: incompatible fields for operation [T] - [(c*laplacian(a,T))] compilation error (no matching function for call to ‘ddt(Foam::tmp >)’): fvScalarMatrix TEqn (fvm::ddt(T) - fvm::ddt(c * fvc::laplacian(a,T))) - fvm::laplacian(a,T) == 0); ----------------------------------- As for notation: This is a part of modified Fourier equation: where a -- thermal diffusivity [m2/s] if one set c=0 s, then will get simple heat equation |
did you try:
fvc::ddt(c * fvc::laplacian(a,T))) I think there is no implicit operator implement in openfaom for what you want to do |
|
All times are GMT -4. The time now is 11:56. |