CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   boussinesqapproximation (

mkk August 2, 2006 09:32

Hi, we tried to a new solver
we tried to a new solver with boussinesq-approximation.
We had some problems with Momentum equation:
We used:
fvVectorMatrix UEqn
+ fvm::div(phi, U)
- fvm::laplacian(nu, U)
+ g*alpha*(T-TRef)
solve( UEqn == -fvc::grad(p) );
We got this error for the line with (t-TRef):
error: no match for \u2018operator+\u2019 in \u2018Foam::operator-(const Foam::tmp<foam::fvmatrix<type> >&, const Foam::tmp<foam::fvmatrix<type> >&) [with Type = Foam::Vector<double>]
Which type is the right for TRef?
Thanks Martin

All times are GMT -4. The time now is 14:02.