Transport Equation in InterFoam using MULES
Hi All,
OpenFOAM 4.1 I am adding a scalar transport equation to the InterFOAM solver $\frac{\partial c}{\partial t} + \nabla\cdot(c{\bf u})$ to track the progress of a scalar concentration field (c) which I define in setFields to be 0,1,2 initially in certain locations. I have successfully added a standard equation in the InterFoam.C file: Code:
fvScalarMatrix CEqn I understand I need to use the MULES FCT scheme to try and solve this, as noted in https://www.cfd-online.com/Forums/op...interface.html but am unsure of how to do this. I've tried adding the following to the alphaEqn file: Code:
tmp<surfaceScalarField> phiCure Code:
MULES::explicitSolve(c, phiCN, phiCure, 2, 0); error: no matching function for call to ‘explicitSolve(Foam::volScalarField&, Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&, Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&, int, int)’ among many errors. Any help appreciated! Cheers. |
Any help appreciated.
|
If you just advect a passive scalar without particular condition at the interfaces, why not just solve C from alpha? In your case you just have C=alpha.
Cheers, |
Quote:
|
When two droplets coalesce they become one... I am not sure your problem is well posed.
|
I am stuck with a similar problem. Have you gotten any further?
Edit: Not a similar problem though. You were trying to compile two int, when the compiler wanted to see fields... :) |
All times are GMT -4. The time now is 18:47. |