|
[Sponsors] |
June 12, 2024, 06:43 |
Trouble setting thermal boundary conditions
|
#1 |
New Member
srikanth
Join Date: Apr 2024
Posts: 3
Rep Power: 2 |
Hello ,
I'm simulating flow past a bluff body using modified icoFoam solver with temperature equations.I'm conducting a mesh convergence test to ensure the mesh captures small thermal boundary layers.To achieve this, I'm using a high Prandtl number (e.g., 50) and setting the temperature of the fluid (mean film temperature) and the obstacle surface (isothermal) to be the same.However, I'm unsure about setting up the temperature (T) file within the 0 file. After reviewing online resources, I've identified two potential approaches, which I've outlined below.I apologize if this seems like a basic question. I'm relatively new to OpenFOAM and CFD in general. Could you please help me choose the appropriate approach for the T file configuration? option 1) /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 10 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class volScalarField; object T; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 1 0 0 0]; internalField uniform (100 0 0); boundaryField { inlet { type fixedValue; value uniform (100 0 0); } outlet { type fixedValue; value uniform (100 0 0); } top { type fixedValue; value uniform (100 0 0); } bottom { type fixedValue; value uniform (100 0 0); } obstacle { type fixedValue; value uniform (100 0 0); } front_back { type empty; } } // ************************************************** *********************** // option 2) /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 10 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class volScalarField; object T; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 1 0 0 0]; internalField uniform (100 0 0); boundaryField { inlet { type zeroGradient; } outlet { type zeroGradient; } top { type zeroGradient; } bottom { type zeroGradient; } obstacle { type fixedValue; value uniform (100 0 0); } front_back { type empty; } } // ************************************************** *********************** // |
|
Tags |
icofoam, temperature bc |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
3D Windturbine simulation in SU2 | k.vimalakanthan | SU2 | 15 | October 12, 2023 06:53 |
Error - Solar absorber - Solar Thermal Radiation | MichaelK | CFX | 12 | September 1, 2016 06:15 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |