CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   externalWallHeatFluxTemperature (https://www.cfd-online.com/Forums/openfoam-pre-processing/104677-externalwallheatfluxtemperature.html)

Nikunj.R July 12, 2012 16:05

externalWallHeatFluxTemperature
 
Hello!

Does anyone have any idea about how to implements externalWallHeatFluxTemperatureboundary condition. I know the format/ syntax from here: http://foam.sourceforge.net/docs/cpp/a08597_source.html . But i am unable to figure out, in which dictionary to put this boundary condition. I tried putting it in 0/T, but it doesnt work.

Please guide me how to proceed.

Thanks,
Nikunj.

aevub December 19, 2013 10:14

hi!
Did you manage to figure this out?
It seems to me that this BC should be in 0/T.

I was trying this for a buoyantBoussinesqSimpleFoam case, the hotroom example.
I tried applying th BC on the floor temp of the hotroom case (I eliminated the hot box and changed the floor temp to externalWallHeatFluxTemperature with only q (so no Ta and h, and no layers)
so in 0/T
floor
Code:

{
            type            externalWallHeatFluxTemperature;
            kappa          fluidThermo;      // fluidThermo, solidThermo or
                                              // lookup
            q              uniform 1000;      // heat flux / [W/m2]
            Ta              uniform 300.0;    // ambient temperature /[K]
            h              uniform 10.0;      // heat transfer coeff /[W/K/m2]
            thicknessLayers (0.1 0.2 0.3 0.4); // thickness of layer [m]
            kappaLayers    (1 2 3 4)          // thermal conductivity of
                                              // layer [W/m/K]
            value          uniform 300.0;    // initial temperature / [K]
            kappaName      none;
        }

and now I get the following error:

Code:

tarting time loop

Time = 1

DILUPBiCG:  Solving for Ux, Initial residual = 0, Final residual = 0, No Iterations 0
DILUPBiCG:  Solving for Uy, Initial residual = 0, Final residual = 0, No Iterations 0
DILUPBiCG:  Solving for Uz, Initial residual = 0, Final residual = 0, No Iterations 0


--> FOAM FATAL ERROR:

    lookup of turbulenceModel from objectRegistry region0 successful
    but it is not a turbulenceModel, it is a kEpsilon

    From function objectRegistry::lookupObject<Type>(const word&) const
    in file /home/mvdtempe/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 147.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::compressible::turbulenceModel const& Foam::objectRegistry::lookupObject<Foam::compressible::turbulenceModel>(Foam::word const&) const at ??:?
#3  Foam::temperatureCoupledBase::kappa(Foam::Field<double> const&) const at ??:?
#4  Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs() at ??:?
#5  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::updateCoeffs() at ??:?
#6  Foam::fvMatrix<double>::fvMatrix(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) at ??:?
#7 
 at ??:?
#8 
 at ??:?
#9  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10 
 at ??:?
Aborted (core dumped)

Anybody an idea?
Or doens't this BC work for this solver?

Any examples available?

Thx in advance!
Maaike

Su xin August 26, 2021 09:19

chtMultiRegionFoam
 
Hello!
Use solarload in chtmultiregionfoam and select sundritracking. Why does the temperature rise again until the sun sets completely?


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