CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Bounded implicit interFoam (0 1), how to make it work!!!!??? is it possible?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Mahmoud_aboukhedr

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 24, 2015, 17:32
Default Bounded implicit interFoam (0 1), how to make it work!!!!??? is it possible?
  #1
Member
 
Mahmoud Aboukhedr
Join Date: Feb 2014
Location: London
Posts: 40
Rep Power: 12
Mahmoud_aboukhedr is on a distinguished road
Dear Foamrs,

I started working with the MULES::implicitSolve in (interFoam) few month ago for some case depend restrictions.
The code used in the alphaEqu.H is
Code:
        MULES::implicitSolve
        (
            alpha1,
            phi,
            phiAlpha,
            1,
            0
        );
I found that the alpha (0 1) is increasing by time up to the limit of (1.1)..

In fact I had tried everthing to make it bounded to 0 and 1 (changing everthing, (mesh, schemes, BC) nothing works.

I followed the work posted in ;
HTML Code:
http://www.cfd-online.com/Forums/openfoam-solving/115137-alpha1-grows-unbounded-interdymfoam.html
As I tried to add the source Su to the MULES in the alphaEqu.H and compile the following;
Code:
        volScalarField Su
        (
            IOobject
            (
                "Su",
                runTime.timeName(),
                mesh
            ),
            divU*alpha1
        );

        MULES::implicitSolve
        (
            alpha1,
            phi,
            phiAlpha,
            Su,
            1,
            0
        );
The code blow off and give me this error;

Code:
alphaEqn.H: In function ‘int main(int, char**)’:
alphaEqn.H:49:9: error: no matching function for call to ‘implicitSolve(Foam::volScalarField&, Foam::surfaceScalarField&, Foam::surfaceScalarField&, Foam::volScalarField&, int, int)’
alphaEqn.H:49:9: note: candidates are:
In file included from /home/ofoam/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/IMULES.H:87:0,
                 from myInterFoamVOFSmooth.C:47:
/home/ofoam/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/IMULESTemplates.C:59:6: note: template<class RhoType, class SpType, class SuType> void Foam::MULES::implicitSolve(const RhoType&, Foam::volScalarField&, const surfaceScalarField&, Foam::surfaceScalarField&, const SpType&, const SuType&, Foam::scalar, Foam::scalar)
/home/ofoam/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/IMULESTemplates.C:59:6: note:   template argument deduction/substitution failed:
In file included from alphaEqnSubCycle.H:19:0,
                 from myInterFoamVOFSmooth.C:100:
alphaEqn.H:49:9: note:   cannot convert ‘phi’ (type ‘Foam::surfaceScalarField {aka Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>}’) to type ‘Foam::volScalarField& {aka Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&}’
In file included from myInterFoamVOFSmooth.C:47:0:
/home/ofoam/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/IMULES.H:70:6: note: void Foam::MULES::implicitSolve(Foam::volScalarField&, const surfaceScalarField&, Foam::surfaceScalarField&, Foam::scalar, Foam::scalar)
/home/ofoam/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/IMULES.H:70:6: note:   candidate expects 5 arguments, 6 provided
In file included from alphaEqnSubCycle.H:27:0,
                 from myInterFoamVOFSmooth.C:100:
alphaEqn.H:49:9: error: no matching function for call to ‘implicitSolve(Foam::volScalarField&, Foam::surfaceScalarField&, Foam::surfaceScalarField&, Foam::volScalarField&, int, int)’
alphaEqn.H:49:9: note: candidates are:
In file included from /home/ofoam/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/IMULES.H:87:0,
                 from myInterFoamVOFSmooth.C:47:
/home/ofoam/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/IMULESTemplates.C:59:6: note: template<class RhoType, class SpType, class SuType> void Foam::MULES::implicitSolve(const RhoType&, Foam::volScalarField&, const surfaceScalarField&, Foam::surfaceScalarField&, const SpType&, const SuType&, Foam::scalar, Foam::scalar)
/home/ofoam/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/IMULESTemplates.C:59:6: note:   template argument deduction/substitution failed:
In file included from alphaEqnSubCycle.H:27:0,
                 from myInterFoamVOFSmooth.C:100:
alphaEqn.H:49:9: note:   cannot convert ‘phi’ (type ‘Foam::surfaceScalarField {aka Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>}’) to type ‘Foam::volScalarField& {aka Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&}’
In file included from myInterFoamVOFSmooth.C:47:0:
/home/ofoam/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/IMULES.H:70:6: note: void Foam::MULES::implicitSolve(Foam::volScalarField&, const surfaceScalarField&, Foam::surfaceScalarField&, Foam::scalar, Foam::scalar)
/home/ofoam/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/IMULES.H:70:6: note:   candidate expects 5 arguments, 6 provided
In file included from myInterFoamVOFSmooth.C:68:0:
/home/ofoam/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
make: *** [Make/linux64GccDPOpt/myInterFoamVOFSmooth.o] Error 1

I will appreciate the help,

Mahmoud
kmou likes this.
Mahmoud_aboukhedr is offline   Reply With Quote

Old   January 22, 2016, 07:03
Default
  #2
Member
 
Camille Bilger
Join Date: Jul 2013
Posts: 43
Rep Power: 12
kmou is on a distinguished road
Hey Mahmoud,
Did you make this work?
Camille
kmou is offline   Reply With Quote

Old   February 4, 2016, 11:10
Smile
  #3
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11
rapierrz is on a distinguished road
Hi mahmoud,

Do you try to change your maximum unboundness in fvSolution/alpha1?

it's work for me in interPhaseChangeFoam.
rapierrz is offline   Reply With Quote

Old   February 17, 2016, 13:27
Default
  #4
Member
 
Camille Bilger
Join Date: Jul 2013
Posts: 43
Rep Power: 12
kmou is on a distinguished road
Quote:
Originally Posted by rapierrz View Post
Hi mahmoud,

Do you try to change your maximum unboundness in fvSolution/alpha1?

it's work for me in interPhaseChangeFoam.

Hi rapierrz,

In fvSolution/alpha1,
what is the flag you would use to set the maximum unboundedness?
I am not seeing any/I'm mising out on something.
Thanks
Camille
kmou is offline   Reply With Quote

Old   November 15, 2017, 12:06
Default
  #5
New Member
 
Hao Zeng
Join Date: Mar 2017
Posts: 8
Rep Power: 9
Noémie is on a distinguished road
Hi Mahmoud,

Do you solve the problem?
I'm also facing this problem with unbounded alpha1.

Hao
Noémie is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 15:26
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
HowTo Make paraFoam from OpenFOAM15 work on OpenSuse11 by installing Qt435 in home directory wenterodt OpenFOAM Installation 52 June 26, 2009 17:01
GAMBIT can't make it work. Achilleas FLUENT 0 December 30, 2006 14:21
a way to make lots of money quick and easy no lies Dob Main CFD Forum 0 October 10, 2006 16:45


All times are GMT -4. The time now is 05:46.