mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Adding 'baseGroup' option to createBaffle.C to add a pair patches but in
different groups. This is used in 3D baffle where the generated patches are not
coupled.
The tutorial circuitBoardCooling has been updated.
This commit is contained in:
@ -24,11 +24,8 @@ boundaryField
|
||||
bottom
|
||||
{
|
||||
type compressible::thermalBaffle;
|
||||
Tnbr T;
|
||||
kappa solidThermo;
|
||||
kappaName none;
|
||||
QrNbr none;
|
||||
Qr none;
|
||||
value uniform 300;
|
||||
}
|
||||
side
|
||||
@ -38,11 +35,8 @@ boundaryField
|
||||
top
|
||||
{
|
||||
type compressible::thermalBaffle;
|
||||
Tnbr T;
|
||||
kappa solidThermo;
|
||||
kappaName none;
|
||||
QrNbr none;
|
||||
Qr none;
|
||||
value uniform 300;
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,15 +9,10 @@
|
||||
T
|
||||
{
|
||||
type compressible::thermalBaffle;
|
||||
Tnbr T;
|
||||
kappa fluidThermo;
|
||||
kappaName none;
|
||||
QrNbr none;
|
||||
Qr none;
|
||||
value uniform 300;
|
||||
|
||||
// Thermo baffle model
|
||||
//thermalBaffleModel thermalBaffle;
|
||||
regionName ${baffleRegionName};
|
||||
active yes;
|
||||
|
||||
@ -26,33 +21,6 @@ T
|
||||
// New fvMesh (region) information
|
||||
# include "extrudeModel"
|
||||
|
||||
|
||||
// New mesh polyPatch information
|
||||
bottomCoeffs
|
||||
{
|
||||
name "bottom";
|
||||
type mappedWall;
|
||||
sampleMode nearestPatchFace;
|
||||
samplePatch ${masterPatchName};
|
||||
offsetMode uniform;
|
||||
offset (0 0 0);
|
||||
}
|
||||
|
||||
topCoeffs
|
||||
{
|
||||
name "top";
|
||||
type mappedWall;
|
||||
sampleMode nearestPatchFace;
|
||||
samplePatch ${slavePatchName};
|
||||
offsetMode uniform;
|
||||
offset (0 0 0);
|
||||
}
|
||||
|
||||
sideCoeffs
|
||||
{
|
||||
name "side";
|
||||
type patch;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -48,47 +48,16 @@ baffles
|
||||
surface triSurfaceMesh;
|
||||
name baffle3D.stl;
|
||||
|
||||
patches
|
||||
patchPairs
|
||||
{
|
||||
master
|
||||
type mappedWall;
|
||||
sampleMode nearestPatchFace;
|
||||
//Group master and slave in different groups. (default off)
|
||||
groupBase on;
|
||||
patchFields
|
||||
{
|
||||
//- Master side patch
|
||||
name ${masterPatchName};
|
||||
|
||||
type mappedWall;
|
||||
inGroups (baffleWallGroup);
|
||||
|
||||
sampleMode nearestPatchFace;
|
||||
sampleRegion ${baffleRegionName};
|
||||
samplePatch bottom;
|
||||
offsetMode uniform;
|
||||
offset (0 0 0);
|
||||
|
||||
patchFields
|
||||
{
|
||||
#include "./0/include/wallBafflePatches"
|
||||
#include "./0/include/3DBaffle/3DTemperatureMasterBafflePatches"
|
||||
}
|
||||
}
|
||||
slave
|
||||
{
|
||||
//- Slave side patch
|
||||
name ${slavePatchName};
|
||||
|
||||
type mappedWall;
|
||||
inGroups (baffleWallGroup);
|
||||
|
||||
sampleMode nearestPatchFace;
|
||||
sampleRegion ${baffleRegionName};
|
||||
samplePatch top;
|
||||
offsetMode uniform;
|
||||
offset (0 0 0);
|
||||
|
||||
patchFields
|
||||
{
|
||||
#include "./0/include/wallBafflePatches"
|
||||
#include "./0/include/3DBaffle/3DTemperatureSlaveBafflePatches"
|
||||
}
|
||||
#include "./0/include/wallBafflePatches"
|
||||
#include "./0/include/3DBaffle/3DTemperatureMasterBafflePatches"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user