|
[Sponsors] |
How to calculate the flux of this term grad(alpha1)*alphaf*U? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 6, 2016, 11:42 |
How to calculate the flux of this term --- grad(alpha1)*alphaf*U?
|
#1 |
Senior Member
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 14 |
Hi Foamers,
I am working on a modified solver based on interFoam, having problem to calculate the flux of the following term (in modified VOF method): where alpha1 is the liquid phase volume fraction, alphaf the fluid volume fraction, and U the fluid velocity. The term alphaf is introduced because there is a third phase: solid. To calculate the flux of this term, I tried the following code: Code:
volVectorField afGrada1("afGrada1", alphaf*fvc::grad(alpha1)); //volVectorField afGrada1("afGrada1", alphaf*fvc::snGrad(alpha1)); surfaceScalarField afGrada1Uf(fvc::interpolate(U*afGrada1) & mesh.Sf()); Code:
alphaEqn.H: In function ‘int main(int, char**)’: alphaEqn.H:16:69: error: no matching function for call to ‘Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricField(const char [9], Foam::tmp<Foam::Field<double> >)’ volVectorField afGrada1("afGrada1", alphaf*fvc::grad(alpha1)); ^ alphaEqn.H:16:69: note: candidates are: ........... Thanks in advance. David Last edited by keepfit; June 7, 2016 at 05:53. |
|
Tags |
discretisation, flux calculation, interfoam, vof method |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to calculate mass flux through a boundary in openfoam | subash | OpenFOAM Running, Solving & CFD | 1 | September 30, 2019 05:28 |
Hi i need to find surface heat flux is draw line on surface to calculate hlocal? | reslan | FLUENT | 0 | February 25, 2016 18:21 |
Hi how can calculate total surface heat flux in duct | reslan | FLUENT | 0 | February 24, 2016 18:17 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |
How to calculate the flux? | YW | FLUENT | 2 | November 10, 2003 14:45 |