September 10, 2023, 06:36
|
createBaffles -overwrite cause boundary condition disappear
|
#1
|
New Member
Huang, Ching-Chan
Join Date: Jan 2023
Posts: 16
Rep Power: 3
|
When I used createBaffles -overwrite the boundary condition about inlet and outlet in file 0 will disappear and replace by AMI1, AMI0. How to solve it.
Code:
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object createBafflesDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Whether to convert internal faces only (so leave boundary faces intact).
// This is only relevant if your face selection type can pick up boundary
// faces.
internalFacesOnly true;
// Baffles to create.
baffles
{
rotating
{
//- Use predefined faceZone to select faces and orientation.
type faceZone;
zoneName face_inner_volume;
//zoneName cell_inner_volume;
//zoneName inner_volume;
patches
{
master
{
//- Master side patch
name AMI1;
type cyclicAMI;
matchTolerance 0.0001;
neighbourPatch AMI2;
transform noOrdering; //OF7 <
//transform none; //OF8 and up
}
slave
{
//- Slave side patch
name AMI2;
type cyclicAMI;
matchTolerance 0.0001;
neighbourPatch AMI1;
transform noOrdering; //OF7 <
//transform none; //OF8 and up
}
}
}
}
// ************************************************************************* //
it will show
Code:
Create time
--> FOAM Warning :
From static Foam::IOstreamOption::compressionType Foam::IOstreamOption::compressionEnum(const Foam::word&, Foam::IOstreamOption::compressionType)
in file db/options/IOstreamOption.C at line 115
Unknown compression specifier 'uncompressed', using compression off
Create mesh for time = 0
Reading baffle criteria from createBafflesDict
Not converting faces on non-coupled patches.
Reading geometric fields
Reading volScalarField: cellToRegion k nut omega p
Reading volVectorField: U
Created zone rotating at index 1 with 86239 faces
Converted 2664 faces into boundary faces in patches 2(AMI1 AMI2)
--> FOAM Warning :
From int main(int, char**)
in file createBaffles.C at line 865
Setting field on boundary faces to zero.
You might have to edit these fields.
Writing mesh to 0
End
boundary include k, net , omega, p, U
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2212 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
arch "LSB;label=32;scalar=64";
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
walls
{
type fixedValue;
value uniform (0 0 0);
}
defaultFaces
{
type empty;
}
airfoil
{
type rotatingWallVelocity;
origin (0 0.025 0);
axis (0 0 1);
omega constant 12.56637;
value uniform (0 0 0);
}
inlet
{
type fixedValue;
value uniform (0 0 0);
}
outlet
{
type fixedValue;
value uniform (0 0 0);
}
}
// ************************************************************************* //
|
|
|