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

MRFSimpleFoam for a centrifugal pump (OF Extend 4.0): slow and no convergence

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 2, 2018, 12:28
Default MRFSimpleFoam for a centrifugal pump (OF Extend 4.0): slow and no convergence
  #1
Member
 
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 9
jgross is on a distinguished road
Hello,

I am using MRFSimpleFoam from OF Extend 4.0 (mainly because I would like to use grid generalised interface feature not available on OF v5.0) to simulate internal 2D flow through a centrifugal pump.

I am finding the simulations are not meeting residual criteria, as the simulations will always run until the final time specified. Upon inspection of the data, it is easy to see that the solutions have approximately converged, as there is not much deviation in quantities such as flow rate and head from a certain point (see the FlowRateAndHead.jpg).

Furthermore, if I perform a grid convergence study, I do not reach a grid converged solution until approximately 1.5e+6 - 2e+6 elements (see the GridStudyQ.jpg). I am using an unstructured mesh (you can see an example of a coarse mesh in 2DPumpGeometry.png), so I expect more elements to be required. However, this seems fairly unreasonable for a quasi-steady state simulation.

All of this together is making the run times much longer than I would expect for a 2D quasi-steady state simulation (see GridStudyTime.jpg).

I have also copied the case folder to my OneDrive account and a link is available here
HTML Code:
https://universityofcambridgecloud-my.sharepoint.com/:f:/g/personal/jg847_cam_ac_uk/EvQU4R0beL1As7yFza5dggIBppKNJlUoea85_LD5jhENVg?e=sfNQIe
Any suggestions for improving the convergence and run time for this would be greatly appreciated.

Regards,
J
Attached Images
File Type: jpg FlowRateAndHead.jpg (26.4 KB, 38 views)
File Type: jpg GridStudyQ.jpg (19.9 KB, 35 views)
File Type: png 2DPumpGeometry.png (40.3 KB, 43 views)
File Type: jpg GridStudyTime.jpg (28.6 KB, 30 views)
jgross is offline   Reply With Quote

Old   February 9, 2018, 16:14
Default
  #2
Member
 
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 9
jgross is on a distinguished road
No one?

Ok, well I'm approaching this in two ways.

I'm remeshing with a structured boundary layer to cut down on the number of mesh elements necessary. Also I'm going to try to use other software (e.g. Ansys) to see if the problem really is quite difficult, or if OF is just slow.

I'll try to post results here if it helps anyone else.

James
jgross is offline   Reply With Quote

Old   February 9, 2018, 17:04
Default
  #3
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15
arvindpj is on a distinguished road
In OF 5. you can use CycliAMIs to achieve the same effect.

I am curious why it would require 2Mil cells for 2D?

I find similar simulation times between Fluent and OF and it converges quite fast (for my cases < 2000 iterations even for 3D)

Initialize with potentialFoam. Reduce solver tolerance for P and others initially. Start with 1st order schemes and later switch to 2nd order.

My recommend setting for Pressure bc:

Code:
    inlet
    {
        type            totalPressure;
        rho             rho;
        psi             none;
        gamma           1;
        p0              uniform 0;
        value           uniform 0;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 0;
    }
Attached Images
File Type: png plot_flowrate.png (11.1 KB, 23 views)
arvindpj is offline   Reply With Quote

Old   February 9, 2018, 17:15
Default
  #4
Member
 
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 9
jgross is on a distinguished road
Hi Arvind,

I won't be able to try those suggestions until Sunday. I just wanted to thank you for your response. I will post results here after.

Regards,
James
jgross is offline   Reply With Quote

Old   February 11, 2018, 15:11
Default
  #5
Member
 
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 9
jgross is on a distinguished road
Hi people,

So I've switched over to using cyclicAMI BCs and OFv5, incorporated the suggested pressure BCs at the inlet and outlet, and I've initialised with potentialFoam.

Unfortunately I haven't had the chance to play around with modifying schemes during simulation. Right now, I'm trying to focus on ensuring the simulation gives results that are physical.

In particular, the pressure side and suction side have been flipped because I changed the blade orientation (see attached picture). What is peculiar though is that I cannot just simply modify the rotation angle in MRFProperties, as the solver diverges if I try to do that.

Does anyone have any experience with the solver divergence when swapping the direction of rotation?

J
Attached Images
File Type: png Pressure.png (114.4 KB, 21 views)
jgross is offline   Reply With Quote

Old   February 15, 2018, 10:37
Default
  #6
Member
 
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 9
jgross is on a distinguished road
Improved the convergence by changing the mesh such that it used a structured mesh on the BL and unstructured in the rest of the flow domain. Also by changing the schemes and relaxation parameters, I was able to improve the convergence of the problem.

All in all, it was mostly a meshing issue. Garbage in, garbage out.

J
jgross is offline   Reply With Quote

Old   February 17, 2018, 10:37
Default
  #7
Member
 
Lilian Chabannes
Join Date: Apr 2017
Posts: 58
Rep Power: 9
Lookid is on a distinguished road
As I am also working on a centrifugal pump with foam extend, I'll post here:

I have a mixingPlane boundary conditions between the outlet of the impeller and the volute.
The thing is the impeller is periodic, and the velocity at the outlet of my periodic impeller is averaged over the 360° inlet of the volute instead of being averaged+multiplied by the total number passage. The result is that the flow rate in the volute is 1/6 of the one it should be. But alleast the average is nice ^^. (see attachement for geometry + averaging)

Does someone know how to solve this problem? I suppose the problem lies in this boundary conditions. You can specify some things in the discretization of the ribbonPatch, for example in my case, inside the boundary file :

Code:
blablabla

    MP_impellerVolute
    {
        type            mixingPlane;
        nFaces          6690;
        startFace       2229324;
        shadowPatch     MP_voluteImpeller;
        zone            MP_impellerVoluteZone;
        coordinateSystem
        {
            type            cylindrical;
            name            mixingCS;
            origin          ( 0 0 0 );
            e1              ( 1 0 0 );
            e3              ( 0 0 1 );
            inDegrees       true;
        }
        ribbonPatch
        {
            sweepAxis       Theta;
            stackAxis       Z;
            discretisation  bothPatches; //slavePatch masterPatch userDefined
        }
    }
    MP_voluteImpeller
    {
        type            mixingPlane;
        nFaces          22946;
        startFace       2236014;
        shadowPatch     MP_impellerVolute;
        zone            MP_voluteImpellerZone;
    }

blablabla
Maybe you can specifiy the right thing with userDefined but i have no idea how to write it and I can't find any examples.

Bonus question :
How exactly are defined e1 and e3 ? And thus the sweep and stack Axis according to this?
Read this https://www.slideshare.net/fumiyanoz...using-openfoam slide#75, but still I don't get it completely.

Thanks
Attached Images
File Type: jpg img.jpg (33.8 KB, 26 views)
Lookid 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



All times are GMT -4. The time now is 17:47.