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

MRFSimpleFoam + CyclicAMI = Flux not conserved at AMI Interface

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By arvindpj
  • 2 Post By arvindpj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2018, 19:32
Smile MRFSimpleFoam + CyclicAMI = Flux not conserved at AMI Interface
  #1
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 96
Rep Power: 14
arvindpj is on a distinguished road
I am trying to simulate a blower fan assly. I am trying to solve for the mass flow driven by the blower, by imposing the rpm.

The mesh for the stator and rotor were separately created using cfMesh. The individual cellSets for rotor and stator regions were identified.

Then the two regions were merged. MRF conditions were applied on the rotor region.

Attached are the qualitative comparisons between contours of velocities from OF (right) and Fluent (left).

Quantitatively too, I see discrepancy between the fluxes between AMI_stator and AMI_rotor cyclicAMIs. AMI_stator flux is a small negative value and AMI_rotor flux is close to zero.

But the total flux entering - total flux exiting the domain = the AMI_stator - AMI_rotor flux difference.

I tried playing with the matchTolerence and that did not help either. Anyways my AMI weights are very close to 1.0, indicating almost conformal interface.

Any help is appreciated.

Cheers,
-Jay

EDIT: ISSUE RESOLVED!! See solution in post#4
Attached Images
File Type: png velocity_fluent.png (36.3 KB, 147 views)
File Type: jpg velocity_of.jpg (52.7 KB, 123 views)

Last edited by arvindpj; February 7, 2018 at 22:13.
arvindpj is offline   Reply With Quote

Old   February 7, 2018, 01:09
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
From what I recognise form the images:
In the Fluent simulation the fresh air comes from the inner of the fan, you have a medium velocity here. The cross section for the air reduces at the outlet of the fan and the velocity gets higher. This is like a fan in 2D should be modeled. In reality, the air comes from above.

In the OF simulation the velocity in the inner of the fan is very low. It seems that the fresh air comes form the main volume (where you want to blow in).
Or the total flow in OF is much lower. I cannot decide which happened form this graphs. Glyphs would be help to understand more.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   February 7, 2018, 16:33
Default
  #3
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 96
Rep Power: 14
arvindpj is on a distinguished road
Dear Uwe,

Thanks much for your questions. The geometries are 3D and I use the same mesh in OF and Fluent.

To retrace this issue with a simple geometry, I picked the propeller tutorial from the $FOAM_TUTORIALS and tried comparing the MRFSimple foam solutions with/without cyclicAMIs.

All the initial and boundary conditions are same as in the tutorial.

To split the mesh regions, I used:

Code:
 

>> createBaffles -overwrite
>> mergeOrSplitBaffles -split -overwrite
Clearly, there is something wrong at the region interface.

Code:
surfaceRegion flowRatePatch(name=inlet):
    total faces  = 4824
    total area   = 0.28064177

surfaceRegion flowRatePatch(name=inlet) write:
    sum(inlet) of phi = -1.4032089


surfaceRegion flowRatePatch(name=outlet):
    total faces  = 4836
    total area   = 0.28272456

surfaceRegion flowRatePatch(name=outlet) write:
    sum(outlet) of phi = 1.3241247


surfaceRegion flowRatePatch(name=AMI1):
    total faces  = 32148
    total area   = 0.19384123

surfaceRegion flowRatePatch(name=AMI1) write:
    sum(AMI1) of phi = 8.4450081e-06


surfaceRegion flowRatePatch(name=AMI2):
    total faces  = 32148
    total area   = 0.19384123

surfaceRegion flowRatePatch(name=AMI2) write:
    sum(AMI2) of phi = 0.079005531

L1.jpg

L2.jpg

L3.jpg

As expected, the MRF solution with conformal interface converged faster.

L4.jpg

L5.jpg

Thanks!
Jay
Aurelius likes this.
arvindpj is offline   Reply With Quote

Old   February 7, 2018, 22:09
Default Issue resolved
  #4
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 96
Rep Power: 14
arvindpj is on a distinguished road
Mass is now conserved!

When using non-conformal mesh and MRF with simpleFoam, in the rotatingZoneProperties include the non-rotating AMI patches.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  plus                                |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      rotatingZoneProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

origin    (0 0 0);
axis      (0 1 0);
omega     constant  157.1; //<rad/s>;
nonRotatingPatches (AMI1 AMI2); 

// ************************************************************************* //
bjnieuwboer and Yann Scott like this.
arvindpj is offline   Reply With Quote

Old   February 14, 2019, 04:35
Default
  #5
New Member
 
Ventós
Join Date: Dec 2017
Posts: 7
Rep Power: 8
Aurelius is on a distinguished road
Dear Jay,

if you are using simpleFoam with MRF in MRFproperties file (at constant directory) it is possible to specify the nonRotating patches:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version               2.0;
    format              ascii;
    class          dictionary;
    location       "constant";
    object      MRFProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

MRF
{
    cellZone           fluid_rotor;
    active                     yes;

    // Fixed patches (by default they 'move' with the MRF zone)
    nonRotatingPatches (AMI1 AMI2);
    origin                 (0 0 0);
    axis                   (0 1 0);
    omega                    157.1; //rad/s

}

// ************************************************************************* //
I am using OF5.x and I have not seen anywhere "rotatingZoneProperties" file, which are the benefits of it?
Pherphaps you know, can be used in combination with dynamicMeshDict in order to specify precisely the non-rotating patches?

Thanks in advance!

Last edited by Aurelius; February 14, 2019 at 06:20.
Aurelius is offline   Reply With Quote

Old   February 14, 2019, 11:36
Default
  #6
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 96
Rep Power: 14
arvindpj is on a distinguished road
In OF v5.0 and newer, "rotatingZoneProperties" file is replaced by "MRFProperties" file.
You specify the "nonRotatingPatches" in that file.

Cheers,
Jay
arvindpj is offline   Reply With Quote

Reply

Tags
mrf simplefoam


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
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Steady State Centrifugal Compressor Segment vigges OpenFOAM Running, Solving & CFD 0 June 16, 2014 04:46
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 09:02.