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

Different results mixing plane foam extended 3.2 & 4.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2018, 05:25
Exclamation Different results mixing plane foam extended 3.2 & 4.0
  #1
New Member
 
Enrico De Filippi
Join Date: Jul 2018
Location: Brescia, Italy
Posts: 14
Rep Power: 7
EnricoDeFilippi is on a distinguished road
Hi guys, I'm studying an axial turbine, so to solve my stator and rotor fields I'm using mixing plane. The problem is that using steadyCompressibleMRFFoam with foam extend 3.2 all works fine while with 4.0 it takes to unphysical solution.

I can't use the 3.2 because I've to work with real gas whose library is not implemented in foam 3.2. I've already checked the source file in the finiteVolume and foam/meshes folder about mixingPlane trying to make the 4.0 more similar as possibile to the 3.2.
Did anybody of you already face this problem? Do you have any suggestion?
I leave the different results I get with 3.2 and 4.0 version:


Flux divergence min = 0.000232183584313 max = 1824125.33839 average: 1101.45637728
Mach number min = 0.00190838717129 max = 2.00273908446
Field U magnitude min = 0 max = 856.643527779
Field p min = 42331.9029619 max = 510310.051604
Field rho min = 0.306032525316 max = 7.79979800637
Field T min = 200 max = 500
Mixing plane pair (Outflow_stator, Inflow_rotor) : 0.345041766478 -0.345509719296 Diff = -0.000467952818715 or 0.135622079464 %



Flux divergence min = 4.55157280307e-05 max = 249609.441799 average: 114.297658371
Mach number min = 2.98841685868e-05 max = 2.5808451657
Field U magnitude min = 0 max = 500
Field p min = 5444.94477356 max = 1000000
Field rho min = 0.00619202851425 max = 17.379256264
Field T min = 3.19875761314 max = 7469.41474673
Mixing plane pair (Outflow_stator, Inflow_rotor) : 0.00214541998123 0.000282009095223 Diff = 0.00242742907645 or 113.144703493 %



Thanks in advance.
EnricoDeFilippi is offline   Reply With Quote

Old   September 11, 2018, 10:15
Default
  #2
Member
 
Henrik Johansson
Join Date: Oct 2017
Location: Gothenburg
Posts: 38
Rep Power: 8
HenrikJohansson is on a distinguished road
Hi Enrico

I have been struggeling with the same problem in 4.0. I think there is something missing in the rothalpy calculations.
In 3.2 rothalpy is calculated by:
Code:
    fvScalarMatrix iEqn
    (
        fvm::ddt(rho, i)
      + fvm::div(phi, i)
      - fvm::laplacian(turbulence->alphaEff(), i)
        // u & gradP term (steady-state formulation)
      + fvm::SuSp((fvc::div(faceU, p, "div(U,p)") - fvc::div(faceU)*p)/i, i)
     ==
        // Viscous heating: note sign (devRhoReff has a minus in it)
      - (turbulence->devRhoReff() && fvc::grad(Urel))
    );
And in 4.0 it is:
Code:
    fvScalarMatrix iEqn
    (
        fvm::ddt(rho, i)
      + fvm::div(phi, i)
      - fvm::laplacian(turbulence->alphaEff(), i)
     ==
        // Viscous heating: note sign (devRhoReff has a minus in it)
      - (turbulence->devRhoReff() && fvc::grad(Urel))
    );
Thus I think the u and gradP terms are missing in 4.0.
My rothalpy is way off to. I'm running real gas in a turbine. I have tried with different meshes and y+ without any results.
I'm currently running a simluation where the rhotalpy is disabled and the enthalpy is enabled instead.
It doesen't solve the enthalpy but it will hopefully prove my point about the rothalpy.
__________________
/ Henrik Johansson
HenrikJohansson is offline   Reply With Quote

Old   September 12, 2018, 16:14
Default
  #3
New Member
 
Enrico De Filippi
Join Date: Jul 2018
Location: Brescia, Italy
Posts: 14
Rep Power: 7
EnricoDeFilippi is on a distinguished road
Hey Henrik, thank you very much for the input. Me and my professor supposed there was something that was calculated wrong at the mixing plane, do maybe is the rothalpy. I will work on it and let you know if I have managed to solve something as soon as possible.
EnricoDeFilippi is offline   Reply With Quote

Old   September 12, 2018, 16:59
Default
  #4
New Member
 
Enrico De Filippi
Join Date: Jul 2018
Location: Brescia, Italy
Posts: 14
Rep Power: 7
EnricoDeFilippi is on a distinguished road
At the moment I've checked all the files written n the directory application/solver/compressible/steadyCompressibleMRFFoam. There are some difference but changing the files as it was in 3.2 didn't help to solve my problem.
EnricoDeFilippi 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
[foam-extend.org] core dumped for foam extended 3.2 on Ubuntu 16.04 qjh888 OpenFOAM Installation 9 September 27, 2016 16:39
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 10:51
Problem with Mixing plane Mitpostdoc FLUENT 0 July 26, 2011 14:31
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
Meshing a Mixing Plane in ICEM Will Anderson ANSYS Meshing & Geometry 2 November 9, 2010 09:16


All times are GMT -4. The time now is 13:27.