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

createBaffles "You might have to edit these fields."

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2023, 09:51
Default createBaffles "You might have to edit these fields."
  #1
New Member
 
Huang, Ching-Chan
Join Date: Jan 2023
Posts: 13
Rep Power: 3
Allen_Huang is on a distinguished road
I want to used createBaffles -overwrite, but it show this
Code:
$ createBaffles –overwrite
Using: OpenFOAM-2212 (2212) - visit www.openfoam.com
Build: _f8e05934-20230403 (patch=230110)

Expected 0 arguments but found 1

See 'createBaffles -help' for usage
 or 'createBaffles -help-full' for extended usage

then i use only createBaffles
it show
Code:
$ createBaffles 
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2212                                  |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _f8e05934-20230403 OPENFOAM=2212 patch=230110 version=2212
Arch   : "LSB;label=32;scalar=64"
Exec   : createBaffles
Date   : Sep 05 2023
Time   : 21:29:28
Host   : ailab05
PID    : 237085
I/O    : uncollated
Case   : /home/ailab-05/flapping_wing/rotation/2_parallel
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning : 
    From static Foam::IOstreamOption::compressionType Foam::IOstreamOption::compressionEnum(const Foam::word&, Foam::IOstreamOption::compressionType)
    in file db/IOstreams/IOstreams/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: p
Reading volVectorField: U
Created zone rotating at index 1 with 86220 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 868
    Setting field on boundary faces to zero.
You might have to edit these fields.
Writing mesh to 0.01
End

how can i solve it
here is my createBafflesDict code

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
            }
        }
    }
}

// ************************************************************************* //
Allen_Huang is offline   Reply With Quote

Old   September 6, 2023, 04:26
Default
  #2
Senior Member
 
Join Date: Dec 2021
Posts: 207
Rep Power: 5
Alczem is on a distinguished road
Hey


I can't help you about the overwrite option not working, but the warning about editing the fields just means that in the new time folder created and containing the new mesh, OpenFOAM usually tries to create the boundary files updated with the new baffles you juste created. OF warns you that you should check those files just in case it messed up something. So it does not mean that something went wrong, just double check the new files and you should be good!
Alczem is offline   Reply With Quote

Reply

Tags
createbafflesdict, opeanfoam


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mesh manipulation] What does "Reading volScalarField: cellLevel" mean during createBaffles? Florian Mlehliw OpenFOAM Meshing & Mesh Conversion 1 August 12, 2023 09:05
Problem with createBaffles - want to make master and slave internal patches artymk4 OpenFOAM 1 May 22, 2021 05:45
CreateBaffles on open/closed models wouterremmerie OpenFOAM Post-Processing 1 June 18, 2018 05:38
[Commercial meshers] createBaffles for fluent3DMeshToFoam cfdonline2mohsen OpenFOAM Meshing & Mesh Conversion 2 August 14, 2015 05:02
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


All times are GMT -4. The time now is 00:13.