CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   boussinesqapproximation (https://www.cfd-online.com/Forums/openfoam-solving/60085-boussinesqapproximation.html)

mkk August 2, 2006 10:32

Hi, we tried to a new solver
 
Hi,
we tried to a new solver with boussinesq-approximation.
We had some problems with Momentum equation:
We used:
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ 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 23:32.