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

A compressible solver with moving mesh and heat flux?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2019, 20:42
Default A compressible solver with moving mesh and heat flux?
  #1
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 12
massive_turbulence is on a distinguished road
Hello Foamers!

What I want to ask for is if a solver or tutorial exists where you can model a compressible fluid like air with a moving mesh like a turbine, propeller and finally allows the transfer of heat through a wall, similar to the hotRoom tutorial with the option to use externalWallHeatFluxTemperature?

I did try running the movingCone example with the rhocentralDymFoam by changing the object T to this

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

dimensions      [0 0 0 1 0 0 0];

internalField   uniform 300;

boundaryField
{
    movingWall
    {
        type            zeroGradient;
    }

    farFieldMoving
    {
        type            zeroGradient;
    }

    fixedWall
    {
        //type            zeroGradient;
	type            externalWallHeatFluxTemperature;
        mode 		flux;
        kappa           fluidThermo;
        kappaMethod     fluidThermo;
        q               uniform 1000;        
        value           uniform 300;
    }

    left
    {
        type            inletOutlet;
        inletValue      $internalField;
    }

    farField
    {
        type            zeroGradient;
    }

    back
    {
        type            wedge;
    }

    front
    {
        type            wedge;
    }
}

// ************************************************************************* //
But that caused a crash like this,

Code:
DICPCG:  Solving for cellMotionUx, Initial residual = 1, Final residual = 7.49021e-09, No Iterations 41
Mean and max Courant Numbers = 8.17911e-06 0.00010891
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUx, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUy, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUz, Initial residual = 0, Final residual = 0, No Iterations 0
smoothSolver:  Solving for Ux, Initial residual = 1, Final residual = 2.41179e-13, No Iterations 1
smoothSolver:  Solving for Uy, Initial residual = 1, Final residual = 2.18595e-13, No Iterations 1
smoothSolver:  Solving for Uz, Initial residual = 0.999471, Final residual = 1.36835e-13, No Iterations 1
diagonal:  Solving for rhoE, Initial residual = 0, Final residual = 0, No Iterations 0
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in /lib/x86_64-linux-gnu/libc.so.6
#3  Foam::heThermo<Foam::psiThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> > > >::he(Foam::Field<double> const&, Foam::Field<double> const&, int) const at ??:?
#4  Foam::mixedEnergyFvPatchScalarField::updateCoeffs() at ??:?
#5  Foam::mixedFvPatchField<double>::evaluate(Foam::UPstream::commsTypes) at ??:?
#6  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Boundary::evaluate() in /mnt/external/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt32Opt/bin/rhoCentralDyMFoam
#7  ? in /mnt/external/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt32Opt/bin/rhoCentralDyMFoam
#8  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#9  ? in /mnt/external/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt32Opt/bin/rhoCentralDyMFoam
Obviously something is missing because I compared the hotRoom fvSchemes to the movingCone, it seems there are too many differences and I'm not expert enough to make those kinds of changes.

Thanks for reading this.
massive_turbulence is offline   Reply With Quote

Old   August 31, 2021, 06:13
Default Heat transfer with moving mesh
  #2
New Member
 
Isar Charmchi
Join Date: Aug 2021
Posts: 18
Rep Power: 4
Isar.charmchi is on a distinguished road
Hi,

Have you solved the problem?

I am new to openfoam and looking for a solver to solve moving mesh both compressible and incompressible with heat transfer.

I run my case just for flow with simplefoam and pimplefoam. I wonder I can use buoyantBoussinesqPimpleFoam and buoyantBoussinesqSimpleFoam with moving mesh and MRF? The same question with BuoyantSimpleFoam and BuoyantPimpleFoam? These solvers at the same time will solve flow?

Thank you!
Isar.charmchi is offline   Reply With Quote

Old   August 31, 2021, 10:35
Default
  #3
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 12
massive_turbulence is on a distinguished road
Quote:
Originally Posted by Isar.charmchi View Post
Hi,

Have you solved the problem?

I am new to openfoam and looking for a solver to solve moving mesh both compressible and incompressible with heat transfer.

I run my case just for flow with simplefoam and pimplefoam. I wonder I can use buoyantBoussinesqPimpleFoam and buoyantBoussinesqSimpleFoam with moving mesh and MRF? The same question with BuoyantSimpleFoam and BuoyantPimpleFoam? These solvers at the same time will solve flow?

Thank you!
Honestly I haven't looked at this problem since I posted this, other things came up, hopefully someone will spend time helping you with this besides me. I think you should start another thread with your question.
massive_turbulence is offline   Reply With Quote

Reply

Tags
compressible air, heat exchange, moving boundaries, wall


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00


All times are GMT -4. The time now is 12:53.