Adding Boussinesq Approximation to multiphaseInterFoam?
Hello,
I don't kown how to code well in C++ but I'm trying to implement the Boussinesq approximation into the multiphaseInterFoam Solver (OF 4.0). I have succeeded yet with interFoam. I added a file, T.Eqn with temperature equation and it compiles. I have trouble with the Boussinesq term, I don't how to deal with it, I tried this in multiphaseMixture.C : Code:
Foam::tmp<Foam::volScalarField> Code:
I have this error : multiphaseMixture.C: In member function ‘Foam::tmp<Foam::Field<double> > Foam::multiphaseMixture::rhoB(Foam::label) const’: multiphaseMixture.C:233:96: error: no match for ‘operator-’ (operand types are ‘<unresolved overloaded function type>’ and ‘const dimensionedScalar {aka const Foam::dimensioned<double>}’) tmp<scalarField> trhoB = iter().boundaryField()[patchi]*(iter().rho()*(1.0-iter().beta()*(T-iter().Tref()))); ~^~~~~~~~~~~~~~ I don't know how and where define rhoB and T. Thanks ! |
I dont know multiphaseInterFoam but,
There is no rho in buoyancy term. You need to define g(if its not defined in your solver) - beta and Tref in create fields, they are transport properties. g is vector, beta and Tref are scalars. After that you can add following line to your momentum equation. Code:
- (g * beta * (T-Tref) ) |
Quote:
I'm trying to include Boussinesq approximation in interFoam but have some trouble in pressure Eqn. If you are interested, I can share the code or send you an email regarding this. Many thanks, Gowthaman |
All times are GMT -4. The time now is 08:05. |