|
[Sponsors] |
turbulentTemperatureCoupledBaffleMixed & temperatureCoupledBase |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 7, 2017, 15:41 |
turbulentTemperatureCoupledBaffleMixed & temperatureCoupledBase
|
#1 |
Senior Member
|
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; } Thanks |
|
February 24, 2017, 10:37 |
|
#2 |
Senior Member
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 21 |
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. Last edited by Zeppo; February 25, 2017 at 09:01. |
|
September 3, 2020, 08:17 |
|
#3 | |
New Member
wanghongjie
Join Date: Apr 2020
Posts: 28
Rep Power: 6 |
Quote:
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) |
||
|
|