Cyclic Boundary Condition in FreeCAD CfdOF

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
hooshsim
Posts: 108
Joined: Mon Nov 05, 2018 7:40 pm

Cyclic Boundary Condition in FreeCAD CfdOF

Post by hooshsim »

Is it possible to model a blade sector of an axial fan in CfdOF simulation? I have created a model of axial fan installed in a wind-tunnel and would like to take advantage of modeling a blade sector (periodic BC) in order to reduce the computational time. I would like to know if it’s possible, if so what’s the proper approach. Thanks in advance
hooshsim
Posts: 108
Joined: Mon Nov 05, 2018 7:40 pm

Re: Cyclic Boundary Condition in FreeCAD CfdOF

Post by hooshsim »

@ oliveroxtoby
I posted this thread few weeks ago but no reply yet. Do you know if it’s possible to model a blade segment of an axial fan in CFDoF? If so, what are my options. Appreciate your time and effort.
User avatar
NewJoker
Veteran
Posts: 3018
Joined: Sun Oct 11, 2020 7:49 pm

Re: Cyclic Boundary Condition in FreeCAD CfdOF

Post by NewJoker »

You can add this boundary condition manually to the solver files: https://www.openfoam.com/documentation/ ... yclic.html
hooshsim
Posts: 108
Joined: Mon Nov 05, 2018 7:40 pm

Re: Cyclic Boundary Condition in FreeCAD CfdOF

Post by hooshsim »

NewJoker wrote: Mon Apr 10, 2023 6:21 pm You can add this boundary condition manually to the solver files: https://www.openfoam.com/documentation/ ... yclic.html
I have assigned ”p1” and “p2” as a pair for cyclic surfaces. Should I add P1 as coupled patchname in mesh boundary and p2 as patchname in the field files? This is the first time I am using BC manually. Could you explain more, please. Thanks
hooshsim
Posts: 108
Joined: Mon Nov 05, 2018 7:40 pm

Re: Cyclic Boundary Condition in FreeCAD CfdOF

Post by hooshsim »

NewJoker wrote: Mon Apr 10, 2023 6:21 pm You can add this boundary condition manually to the solver files: https://www.openfoam.com/documentation/ ... yclic.html
@NewJoker
Per your recommendation, I added cyclic BC's manually to the solver as shown below and got an error message. Please help. // Field File 0/U
fan

type rotatingWallVelocity;
origin (0. 0. 0.);
axis (0. 0. 1.);
omega 430;
//
P1
{
type cyclic;
}
P2
{
type cyclic;
}

//
//
*********************************************************
// Mesh Boundary File

P2
{
type cyclic;
neighbourPatch P1;
transform rotational;
}

//
P1
{
type cyclic;
neighbourPatch P2;
transform rotational;
}
User avatar
NewJoker
Veteran
Posts: 3018
Joined: Sun Oct 11, 2020 7:49 pm

Re: Cyclic Boundary Condition in FreeCAD CfdOF

Post by NewJoker »

hooshsim wrote: Tue Apr 11, 2023 2:49 pm I added cyclic BC's manually to the solver as shown below and got an error message
What is the error message ?
hooshsim
Posts: 108
Joined: Mon Nov 05, 2018 7:40 pm

Re: Cyclic Boundary Condition in FreeCAD CfdOF

Post by hooshsim »

NewJoker wrote: Tue Apr 11, 2023 6:13 pm
hooshsim wrote: Tue Apr 11, 2023 2:49 pm I added cyclic BC's manually to the solver as shown below and got an error message
What is the error message ?
“OpenFOAM IO error: inconsistent patch and patchField types for file: O/U.boundaryField.p1 at line 45. Simulation exited with error”
hooshsim
Posts: 108
Joined: Mon Nov 05, 2018 7:40 pm

Re: Cyclic Boundary Condition in FreeCAD CfdOF

Post by hooshsim »

NewJoker wrote: Tue Apr 11, 2023 6:13 pm
hooshsim wrote: Tue Apr 11, 2023 2:49 pm I added cyclic BC's manually to the solver as shown below and got an error message
What is the error message ?
Simplified version of my case is attached.
Attachments
Cyclic.FCStd
(27.7 KiB) Downloaded 30 times
Post Reply