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

turbulentTemperatureCoupledBaffleMixed & temperatureCoupledBase

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Zeppo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2017, 15:41
Default turbulentTemperatureCoupledBaffleMixed & temperatureCoupledBase
  #1
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
Hi,

I can't understand what's the difference using compressible:turbulentTemperatureCoupledBaffleMixe d or compressible:temperatureCoupledBase.

Main differece I can see is that compressible:turbulentTemperatureCoupledBaffleMixe d could be use for baffles and to specify layers, what else?

In any case considering the usage from the code

Code:
   {
        type            compressible::turbulentTemperatureCoupledBaffleMixed;
        Tnbr            T;
        thicknessLayers (0.1 0.2 0.3 0.4);
        kappaLayers     (1 2 3 4);
        kappaMethod     lookup;
        kappa           kappa;
        value           uniform 300;
    }
I can't understand what the keyword "value" means and what it is used for Can someone help?

Thanks
student666 is offline   Reply With Quote

Old   February 24, 2017, 10:37
Default
  #2
Senior Member
 
Zeppo's Avatar
 
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 21
Zeppo will become famous soon enough
temperatureCoupledBase is designed to be a base (even the name implies so) class to derive other classes from. It is not intended to be specified as a type of a boundary condition imposed on a patch. temperatureCoupledBase provides some functionality to be reused by derived classes.

turbulentTemperatureCoupledBaffleMixedFvPatchScala rField is derived from temperatureCoupledBase and can be specified as a boundary condition.
Quote:
Originally Posted by student666 View Post
I can't understand what the keyword "value" means and what it is used for
value is an initial value explicitly assigned to every patch face for the first iteration. You can omit it letting the code calculate it based on other parameters specified.
student666 and luoyang like this.

Last edited by Zeppo; February 25, 2017 at 09:01.
Zeppo is offline   Reply With Quote

Old   September 3, 2020, 08:17
Default
  #3
New Member
 
wanghongjie
Join Date: Apr 2020
Posts: 28
Rep Power: 6
wanghongjie is on a distinguished road
Quote:
Originally Posted by Zeppo View Post
temperatureCoupledBase is designed to be a base (even the name implies so) class to derive other classes from. It is not intended to be specified as a type of a boundary condition imposed on a patch. temperatureCoupledBase provides some functionality to be reused by derived classes.

turbulentTemperatureCoupledBaffleMixedFvPatchScala rField is derived from temperatureCoupledBase and can be specified as a boundary condition.

value is an initial value explicitly assigned to every patch face for the first iteration. You can omit it letting the code calculate it based on other parameters specified.
Hi, sorry to disturb you. I coupled chtMultiRegionFoam with the modified interCondensatingEvaporatingFoam, the solver compiles without problems (just judging from the compiled results), but once the temperature solves, there will be an error. I put up my TEqn.H and 0/T, please help me see where the problem is.

0/BASE/T

dimensions [0 0 0 1 0 0 0];
internalField uniform 0;
boundaryField
{
SJUERE
{
type zeroGradient;
}
SFRONTANDBACK
{
type empty;
}
HEAT
{
type fixedGradient;
gradient uniform 50;
}
BASE_FLUID
{
type compressible::turbulentTemperatureCoupledBaffleMix ed;
value $internalField;
Tnbr T;
kappaMethod solidThermo;
}
}

TEqn.H
{
Info<<"10"<<endl;
volScalarField& T = thermo->T();
Info<<"11"<<endl;
tmp<volScalarField> tcp(thermo->Cp());
const volScalarField& cp = tcp();
Info<<"12"<<endl;
const dimensionedScalar Cp1 = thermo->Cp1();
const dimensionedScalar Cp2 = thermo->Cp2();
Info<<"13"<<endl;
rhoCp = rho*cp;
Info<<"14"<<endl;
kappaEff = thermo->kappa() + rho*cp*turbulence.nut()/Prt;
Info<<"15"<<endl;
const surfaceScalarField rhoCpPhi
(
"rhoCpPhi",
rhoPhi*(Cp1 - Cp2) + phi*rho2*Cp2
);
Info<<"16"<<endl;
Pair<tmp<volScalarField>> vDotAlphal = mixture.mDot();
Info<<"17"<<endl;
fvScalarMatrix TEqn
(
fvm::ddt(rhoCp, T)
+ fvm::div(rhoCpPhi, T)
- fvm::Sp(fvc::ddt(rhoCp) + fvc::div(rhoCpPhi), T)
- fvm::laplacian(kappaEff, T)
+ mixture.TSource()
);

Info<<"18"<<endl;
TEqn.relax();
TEqn.solve(mesh.solver(he.select(finalIter)));
thermo->correct();

Info<< "min/max(T) = " << min(T).value() << ", "
<< max(T).value() <<endl;
}

Error:
#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? in /lib/x86_64-linux-gnu/libpthread.so.0
#3 Foam::mapDistributeBase::mapDistributeBase(Foam::U List<int> const&, Foam::UList<int> const&) at ??:?
#4 Foam::mapDistribute::mapDistribute(Foam::UList<int > const&, Foam::UList<int> const&) at ??:?
#5 Foam::mappedPatchBase::calcMapping() const at ??:?
#6 Foam::mappedPatchBase::map() const at ??:?
#7 void Foam::mappedPatchBase::distribute<double>(Foam::Li st<double>&) const at ??:?
#8 Foam::compressible::turbulentTemperatureCoupledBaf fleMixedFvPatchScalarField::updateCoeffs() at ??:?
#9 Foam::fvMatrix<double>::fvMatrix(Foam::GeometricFi eld<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) in ~/OpenFOAM/OpenFOAM-v2006/platforms/linux64GccDPInt32Opt/bin/chtConEvaFoam
#10 Foam::temperaturePhaseChangeTwoPhaseMixtures::cons tant::TSource() const at ??:?
#11 ? in ~/OpenFOAM/OpenFOAM-v2006/platforms/linux64GccDPInt32Opt/bin/chtConEvaFoam
#12 __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#13 ? in ~/OpenFOAM/OpenFOAM-v2006/platforms/linux64GccDPInt32Opt/bin/chtConEvaFoam
Segmentation fault (core dumped)
wanghongjie 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



All times are GMT -4. The time now is 10:31.