Compare commits
8 Commits
feature-so
...
OpenFOAM-v
| Author | SHA1 | Date | |
|---|---|---|---|
| 51dd8f1c63 | |||
| 6534245359 | |||
| b6bf3502a3 | |||
| c49d923392 | |||
| 4248fdcd96 | |||
| 8f8617a8ca | |||
| 9d2fe2086a | |||
| be417c9841 |
@ -1,2 +1,2 @@
|
||||
api=1912
|
||||
patch=200506
|
||||
patch=200626
|
||||
|
||||
@ -121,21 +121,21 @@ inline void Foam::PtrList<T>::append(T* ptr)
|
||||
template<class T>
|
||||
inline void Foam::PtrList<T>::append(autoPtr<T>& aptr)
|
||||
{
|
||||
return UPtrList<T>::append(aptr.release());
|
||||
UPtrList<T>::append(aptr.release());
|
||||
}
|
||||
|
||||
|
||||
template<class T>
|
||||
inline void Foam::PtrList<T>::append(autoPtr<T>&& aptr)
|
||||
{
|
||||
return UPtrList<T>::append(aptr.release());
|
||||
UPtrList<T>::append(aptr.release());
|
||||
}
|
||||
|
||||
|
||||
template<class T>
|
||||
inline void Foam::PtrList<T>::append(const tmp<T>& tptr)
|
||||
{
|
||||
return UPtrList<T>::append(tptr.ptr());
|
||||
UPtrList<T>::append(tptr.ptr());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -456,10 +456,19 @@ const Foam::fileName& Foam::IOobject::caseName() const
|
||||
Foam::fileName Foam::IOobject::path() const
|
||||
{
|
||||
// A file is 'outside' of the case if it has been specified using an
|
||||
// absolute path (starts with '/')
|
||||
// absolute path
|
||||
|
||||
if (instance().starts_with('/'))
|
||||
const auto first = instance().find('/');
|
||||
|
||||
if
|
||||
(
|
||||
first == 0
|
||||
#ifdef _WIN32
|
||||
|| (first == 2 && instance()[1] == ':') // Eg, d:/path
|
||||
#endif
|
||||
)
|
||||
{
|
||||
// Absolute path (starts with '/' or 'd:/')
|
||||
return instance();
|
||||
}
|
||||
|
||||
|
||||
@ -20,8 +20,8 @@ starcd/STARCDMeshWriter.C
|
||||
|
||||
polyDualMesh/polyDualMesh.C
|
||||
|
||||
vtk/output/foamVtkInternalWriter.H
|
||||
vtk/output/foamVtkPatchWriter.H
|
||||
vtk/output/foamVtkInternalWriter.C
|
||||
vtk/output/foamVtkPatchWriter.C
|
||||
vtk/output/foamVtkSurfaceFieldWriter.C
|
||||
|
||||
LIB = $(FOAM_LIBBIN)/libconversion
|
||||
|
||||
@ -280,9 +280,18 @@ void Foam::externalCoupledTemperatureMixedFvPatchScalarField::writeData
|
||||
|
||||
const scalarField Tfluid(tfluid);
|
||||
|
||||
|
||||
// Heat transfer coefficient [W/m2/K]
|
||||
const scalarField htc(qDot/(max(Twall - Tfluid), 1e-3));
|
||||
// This htc needs to be always larger or equal to zero
|
||||
//const scalarField htc(qDot/max(Twall - Tfluid, 1e-3));
|
||||
scalarField htc(qDot.size(), 0);
|
||||
forAll (qDot, i)
|
||||
{
|
||||
scalar deltaT = mag(Twall[i] - Tfluid[i]);
|
||||
if (deltaT > 1e-3)
|
||||
{
|
||||
htc[i] = sign(qDot[i])*qDot[i]/deltaT;
|
||||
}
|
||||
}
|
||||
|
||||
const Field<scalar>& magSf = this->patch().magSf();
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2017 OpenCFD Ltd.
|
||||
Copyright (C) 2017-2020 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -81,10 +81,10 @@ Foam::heatTransferCoeffModels::ReynoldsAnalogy::Cp(const label patchi) const
|
||||
const label n = mesh_.boundary()[patchi].size();
|
||||
return tmp<Field<scalar>>::New(n, CpRef_);
|
||||
}
|
||||
else if (mesh_.foundObject<fluidThermo>(fluidThermo::typeName))
|
||||
else if (mesh_.foundObject<fluidThermo>(fluidThermo::dictName))
|
||||
{
|
||||
const fluidThermo& thermo =
|
||||
mesh_.lookupObject<fluidThermo>(fluidThermo::typeName);
|
||||
mesh_.lookupObject<fluidThermo>(fluidThermo::dictName);
|
||||
|
||||
const scalarField& pp = thermo.p().boundaryField()[patchi];
|
||||
const scalarField& Tp = thermo.T().boundaryField()[patchi];
|
||||
|
||||
@ -275,7 +275,7 @@ Foam::basicThermo::basicThermo
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"thermo:alpha",
|
||||
phasePropertyName("thermo:alpha"),
|
||||
mesh.time().timeName(),
|
||||
mesh,
|
||||
IOobject::READ_IF_PRESENT,
|
||||
|
||||
Reference in New Issue
Block a user