Rotating mesh simulation project tutorial in OpenFOAM (mesh and simulation)

In this video I present you a tutorial on a rotating mesh simulation project starting from the geometry output, over meshing (with snappy), simulation setup, running the simulation to a little bit of post-processing. I did say in the video, that I will upload multiple parts, but the tutorial fit into one single video, so enjoy!
Here are the links you require:
The wiki page:
wiki.openfoam.com/Rotating_Me...
The tutorial itself:
openfoam.com/documentation/gu...
The case files:
develop.openfoam.com/Developm...
Geometry files were moved in v2106 to here:
develop.openfoam.com/Developm...
This material is published under the creative commons license CC BY (Attribution). If you plan to use it, please acknowledge it.

Пікірлер: 182

  • @hessmess9504
    @hessmess95044 жыл бұрын

    Always excellent. Thank you very much :-)

  • @runzezhang9475
    @runzezhang94752 жыл бұрын

    Thank you sir! This is really helpful!

  • @sumitzanje9660
    @sumitzanje96604 жыл бұрын

    I appreciate your work. Thanks

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    Thank you!

  • @bideshsengupta9455
    @bideshsengupta94554 жыл бұрын

    A big love to you. Thank you.

  • @lukasf2648
    @lukasf26484 жыл бұрын

    Note, the setting div(phi,U) Gauss linearUpwind grad(U); in fvSchemes. Gauss linear (pure 2nd Order scheme) leads to nonphysically oscillation of the velocity field if the mesh is moving even for a structured mesh.

  • @Dragonfly3d
    @Dragonfly3d3 жыл бұрын

    Excellent work

  • @PritneyBears
    @PritneyBears Жыл бұрын

    Thank you Joszef for this tutorial. Very helpful. Only downside is that the blades are literally just bricks and I just get a tiny downwash. One question : Is there a reason why the divergence schemes for turbulence are set to linearUpwind grad(U) ? I usually set them as upwind or limitedLinear 1.

  • @KEcAzZ1
    @KEcAzZ1 Жыл бұрын

    Thanks a lot, József! I just found your tutorials, which is a huge help starting with OpenFOAM. Although having 0 experience with CFD, I find it very interesting (and even perhaps useful in my work). With that said, would it be possible for you to speak more about some of the parameters, which OpenFOAM users might want to change running their simulation cases? For example, what do certain constant/parameters mean (physical meaning), what could we expect, if we change them (it is very clear, what would happen with changing gravity sign, but less clear with other constants/parameters); e.g. what does nu in Newtonian stand for? Shall the value be changed? (just as example). Perhaps it would be possible, to add comments in the tutorial files, which holds all those constants and parameters, what is where, and what each of them do/and does it need to be changed in certain cases (if some OpenFOAM user has this done, could you please share such files, I believe it would be great help for those who just start)? Myself, I am interested in aerosol particle flow simulation. I would highly appreciate, if someone could share particle simulation related OpenFOAM tutorial files, which include explanations for constants and other parameters (e.g. physical meaning; which parameters/constants should be changed). This is perhaps a lot to ask, because everything depends on the case... But I thought to try anyways. I thank you once again for such a beautiful material!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    I try to do this in my basic and intermediate playlists.

  • @imonbagchi
    @imonbagchi3 жыл бұрын

    Hello József, thank you for putting this video together. It was really helpful. Could you please point to which line in the dictionary file is actually creating two surface meshes, AMI and AMI_slave, from one geometry which is AMI.stl? Thank you.

  • @EngineerAAJ

    @EngineerAAJ

    2 жыл бұрын

    it looked like it was at the createPatchDict around kzread.info/dash/bejne/o6iClJdvh62TZaw.html

  • @KW-12
    @KW-1211 ай бұрын

    Hi! This video is awesome thanks. If I have a case where the rotation of the mesh is determined by the surface forces acting in my geometry (i.e a fluid-structure case). Does OpenFOAM has a case/code where you can simulate that?

  • @dilsoman
    @dilsoman4 жыл бұрын

    Sir what is the solver to be used in centrifugal pump with water in steady state? MRFsimpleFoam is missing in my solvers.

  • @parasghumare5864
    @parasghumare58644 жыл бұрын

    What's the criteria for determining the timestep? 0.0002 is very low for such small angular velocity, I think?

  • @t4nne863
    @t4nne8632 жыл бұрын

    Great and very helpful tutorial! @József Nagy is the AMI a hollow or a plain cylinder? I downloaded the geometry and tried to have a look on the AMI stl file as a part file in Creo Parametrics, i had problems but the AMI seems solid?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    2 жыл бұрын

    STLs are triangulated surfaces.

  • @davis.cole17
    @davis.cole174 жыл бұрын

    Thank you for this tutorial! I have some questions about this case: Using ./Allrun with OpenFOAM 5.x does not provide a solution. Is this because of the version of OpenFOAM? When entering commands individually instead of using the batch files, the case meshes and converges, but the fan does not spin. What could be preventing the fan from spinning? Thanks!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    The tutorial is set up for v1912 and now v2026. You might have to modify things for the foundation version.

  • @jegga007
    @jegga0074 жыл бұрын

    Hi Jozsef, Thank you so very much for your tutorials!!! Can I please know what are changes we need to make if we want to run a steady simulation? i.e. using simpleFoam solver Thank you so much!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    AMI only works with transient solvers

  • @dilsoman

    @dilsoman

    4 жыл бұрын

    @@OpenFOAMJozsefNagy Sir, i had the same question.. Is it impossible to run a steady state simulation for fan/pump kind of problems in openfoam? Like mrf approach?

  • @BhavinPatel6160
    @BhavinPatel61602 жыл бұрын

    Hello József, I have few questions regarding cyclicAMI patch.. 1) How does openfoam differentiate AMI1 & AMI2...?? Do I need to give that patch name in geometry file...??? 2) In this case, you have used the hollow cylinder geometry as AMI.stl , the rotating zone should always be hollow or shell type...?? & does it must be closed body...???

  • @binilbabu9460
    @binilbabu94604 жыл бұрын

    Dear sir, Could you please upload a tutorial on simulation of vertical axis wind turbines.?

  • @aliosmankaya7836
    @aliosmankaya78362 жыл бұрын

    Hi Jozsef, i tired to make this tutorial which is really good to learn something. I had a problem when i run the simulation, this is look like due to relVelocity/ Using dynamicCode for functionObject relVelocity at line 13 in "/home/aokaya/OpenFOAM_files/rotatingFanInRoom/case/system/controlDict.functions.relVelocity". Thanks For videos and helps.

  • @dilsoman
    @dilsoman3 жыл бұрын

    Hi professor, is it possible to run steady state simulation with rotating domain?

  • @piotrmecht2500
    @piotrmecht25004 жыл бұрын

    Is ceiling part inside AMI zone treated as rotating object too, or its data are interpolated to behave static? I mean if i leave some wall mesh elements inside this zone does it act like movingWallVelocity against my flow?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    No, if you set the velocity to 0 0 0, it should not have a relative velocity.

  • @agilpermadi9028
    @agilpermadi9028 Жыл бұрын

    Thank you! It's very clear. I have a question, though. Where did you set the AMI_slave patch? It seems like the geometry only has 1 surface for AMI patch called "AMI"

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    It is then split into two parts.

  • @siyeli2173
    @siyeli21733 жыл бұрын

    Thank you very much sir! I have a big problem about what kinds of boundary type should we choose, for example in this tutorial. This confused me and my friends.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    At which boundary?

  • @user-gj9hw5qw4x
    @user-gj9hw5qw4x11 ай бұрын

    Hello József, thanks for all the work in putting this together ! I noticed when running this that my fan isn't actually rotating as I move forward in time. Does this suggest that I need to make changes to the boundary condition specifications? I am using v10 so I had to make some minor syntax changes specifically in the createPatch, DecomposePar and surfaceFeatures dict. Furthermore, I gather that the AMI condition for simulating rotation is being phased out, is this correct and should this case still run in v10?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    11 ай бұрын

    Unfortunately the .org version is by design not compatible with any other versions, so you are on your own. I would suggest to switch to the .com version, which values backwards compatibility.

  • @SandeepKumar-dh8kh
    @SandeepKumar-dh8kh4 жыл бұрын

    Great work. I am thinking of using OF for high speed turbomachinery applications like gas turbine turbofans . Do we have any such tutorial I can refer to thank you

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    Unfortunately not.

  • @BlackDoll0708
    @BlackDoll07084 жыл бұрын

    After a longer break from simulation I started this tutorial again, what could be the reason that when I create folders in windows there are shown in ubuntu but I can't open them? Do you have any advise?Thank you.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    Permission problems maybe?

  • @mishaparem
    @mishaparem4 жыл бұрын

    Great tutorial, very useful! I noticed you indicated an angular velocity as the driving factor, but is it possible to specify the air as the driving factor? If so, how? To give an example of what I mean, right now you have a motor turning the ceiling fan at a constant velocity, but I'm interested in simulating a wind turbine spinning up from 0 omega based on the windspeed acting on the blades. Best regards!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    Puh, a time dependent angular momentum? I am not sure whether this is implemented :/ You can try increasing it manually.

  • @mishaparem

    @mishaparem

    4 жыл бұрын

    @@OpenFOAMJozsefNagy More like a flow/pressure driven angular momentum.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    @@mishaparem I see, you need the 6dof model for that.

  • @MrSaturdaydrive
    @MrSaturdaydrive4 жыл бұрын

    Hi Jozsef, i wanted to give the tutorial a try but i can't seems to download the case files with the link provided. I got page not found error when i click on the link to the files.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    Yes, currently the source of OpenFOAM is down. Hopefully, it will be up again soon.

  • @estaykylyshbek8347
    @estaykylyshbek83474 жыл бұрын

    Hi Jozsef, I have tried to modify this tutorial by replacing the geometry. But I cannot run the simulation, could you please check my geometry? I will send it to your email if you have time to take a look at them.

  • @usamaniaz2981
    @usamaniaz29813 жыл бұрын

    Great work... But is it necessary to use snappyhexamesh? For this purpose... I use ICEM CFD for meshing

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    If you have the license, go for it!

  • @alvaroalvaro4175
    @alvaroalvaro41754 жыл бұрын

    Hello ! Im new in openfoam so the question may be a bit silly... when doing the surfaceFeatureExtract, I get an error that says: keyword extractfromsurfaceCoeff is undefined in dictionary. How can I solve it ? Thank you in advance!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    I see, you are most probably not useing v1812 or v1906 but rather v6 or v7. Try switching OF versions.

  • @xiaoboyao3088
    @xiaoboyao30883 жыл бұрын

    HiJozsef, when I run surfaceFeatureExtract, it says symbol error. And I can only find surfaceFeature and surfaceFeatureConvert in the utilities directory. Is it because of the difference due to the latest version of openfoam?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    You may use the foundation version instead of the OpenCFD version. There are some syntax differences there.

  • @parth3791
    @parth37914 жыл бұрын

    Respected Professor, Really useful tutorial. I had a doubt, If I am exporting the mesh from Ansys, how I can specify the movingWallVelocity/cyclicAMI type? Thank you

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    topoSet and createBaffles might work.

  • @parth3791

    @parth3791

    4 жыл бұрын

    @@OpenFOAMJozsefNagy thank you...will try

  • @luisarceo87
    @luisarceo872 жыл бұрын

    Thank you for the very insightful tutorial! I learned much about dynamic meshing and parameters to consider in simulating rotation. However, in running this tutorial, I encountered a problem with relVelocity wherein a FOAM FATAL IO ERROR is met when trying to wmake the function.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    2 жыл бұрын

    What is relVelocity?

  • @luisarceo87

    @luisarceo87

    2 жыл бұрын

    @@OpenFOAMJozsefNagy It is a function included in the system folder of the most recent iteration of the tutorial case files. It wasn't discussed in the video nor was it mentioned in the openfoam .com tutorial.

  • @luisarceo87

    @luisarceo87

    2 жыл бұрын

    @@OpenFOAMJozsefNagy Regardless, I just removed the function and the simulation seems to be running well. Just a heads up for those encountering the same problem.

  • @Bushra-no9ph
    @Bushra-no9ph3 жыл бұрын

    Hi jozsef! I modified the geometry of this tutorial in blender (basically mirrored the fan and AMI). The snappyHexMesh was successful with one rotatingzone cellzone formed. Now I want to define two rotating mesh regions but my simulation crashes without any error after defining two rotating mesh regions using dynamicMultiMotionSolverFvMesh. I think the error lies in dynamic mesh. Is it because there is only one cellzone? Any guidance would be appreciated. Thanks alot for these tutorials!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    You need multiBodyMotion, check which version of OpenFOAM you have and go through the tutorials folder for a tutorial which uses multiple AMI-s and us e the syntax there.

  • @abuali3022
    @abuali3022 Жыл бұрын

    Hello József, thanks a lot. My question is: can Rotating-mesh be used with any solver ( for example ChtMultiRegionFoam for steady or transient ).

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    No. not steady and the transient solver has to be able to read in dynamicMeshDict.

  • @canunsal9513
    @canunsal95133 жыл бұрын

    Hello Sir. Is it possible to use this method for simulating periodic linear motion? (Such as valve inside a piston going up and down)

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    Yes

  • @estaykylyshbek8347
    @estaykylyshbek83474 жыл бұрын

    how did you build your geometry? What is the thickness of AMI wall, inlet and outlet.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    No thickness required. I used blender to construct it, but and CAD tool with a good STL export will work.

  • @Joao-wc7ho
    @Joao-wc7ho3 жыл бұрын

    For the tutorial files working with openfoam v8 search in git hub for josoHub/rotatingFanInRoomOFv8. Please read the file README for instructions. And thanks for the tutorial.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    Thank you!

  • @aero_cats

    @aero_cats

    3 жыл бұрын

    this comment should be pinned up, thanks :v

  • @nasosbalachtsis137
    @nasosbalachtsis1372 жыл бұрын

    Is there a possibility of having laminar flow in rotating problems? What is the characteristic velocity in these cases, the rotational velocity (omega*R) ?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    2 жыл бұрын

    Yes it is possible. You have to change the setting in turbulenceProperties. The rotational speed will have to be slow. Depends also on the geometry.

  • @BlackDoll0708
    @BlackDoll07084 жыл бұрын

    Thank you for this tutorial. I have a question for the geometry in blender, is the desk a cutout from the cubegeometry of the room?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    No, an additional STL durface.

  • @BobBeatski71

    @BobBeatski71

    4 жыл бұрын

    @@OpenFOAMJozsefNagy Oh, I didn't know that could be done. That would save a lot of time not having to 'subtract' all the extras inside an enclosure.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    @@BobBeatski71 That is true.

  • @BobBeatski71

    @BobBeatski71

    4 жыл бұрын

    @@OpenFOAMJozsefNagy Don't have OF setup at the moment.... Do we still need to have openings in the room floor for the surfaces of the table's feet ? (The surface of the table foot in contact with the surface of the room floor; this would create non-manifold instances, yes ?)

  • @BobBeatski71

    @BobBeatski71

    4 жыл бұрын

    I could just download the files and look, couldn't I ?. [EDIT: Yeah, the table is a solid item and there are no opening in the room floor for the feet. Only opening in the room for the door and window. This would hugely simplify my Rhino work as previously I have been merging all items into a single, solid STL.]

  • @aycaakboyraz9945
    @aycaakboyraz99453 жыл бұрын

    Firstly, thank you for your work. I have a question: Can I define two rotating mesh regions with different rotational speeds? If yes how would I define them in dynamicMeshDict. Could I simply write rotatingZone1 {solidBodyRotationFunction ....; origin ....; axis ...; omega ...;} and rotatingZone2 {........}?

  • @Bushra-no9ph

    @Bushra-no9ph

    3 жыл бұрын

    Hello! I want to do the same but my simulation crashes without any error after defining two rotating mesh regions using dynamicMultiMotionSolverFvMesh. I think the error lies in dynamic mesh. Were you able to successfully simulate two dynamic mesh regions?

  • @jjpark4758

    @jjpark4758

    2 жыл бұрын

    @@Bushra-no9ph Any luck?

  • @luizab.fernandes4574
    @luizab.fernandes45743 жыл бұрын

    Is it possible to simulate half domain (a symmetric one) with a sliding mesh in openfoam? Then use symmetry conditions.... would that work? I actually tried it some time ago and it crashed Cheers!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    I am not sure. I never tried, but I do not thinks so as the rotating mash does turn with the symmetry plane.

  • @user-cf9wp5qi7o
    @user-cf9wp5qi7o4 жыл бұрын

    I have a question for openfoam, which can solve scroll pump project

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    Maybe an overset solver would work.

  • @rahuldate9773
    @rahuldate97734 жыл бұрын

    Sir, can you provide zip file on Google drive. There is an error called 404 came while trying to download it. It will be helpful if you provide us.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    Thank you for noticing. They changed the address to it. I updated it in the description. develop.openfoam.com/Development/openfoam/tree/develop/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom

  • @lukasf2648
    @lukasf26484 жыл бұрын

    Hi József, why is it necessary to use the "movingWallVelocity" for the U field? Why is it not useful to apply the noSlip condition there or a fixed value of (0 0 0)? Since the fan and the cells within the AMI patch are rotating, I thought that a noSlip wall is enough. It seems that this is not the case. With respect to the turbulent fields you used the same wall functions for the fan wall as for the other walls and no special moving wall function. The explantion of "movingWallVelocity" in the documentation: "Sets the velocity to the desired value for moving walls when employed in moving mesh cases" is not very meaningful to me. I would appreciate some further explanation. Very interesting video. Thanks!

  • @lukasf2648

    @lukasf2648

    4 жыл бұрын

    movingWallVelocity applies omega*r to the wall which is obviously needed if the wall moves

  • @lukasf2648

    @lukasf2648

    3 жыл бұрын

    movingWallVelocity leads to a velocity of 2 * pi * Rotational speed * Radius at the cells of the patch. It is determined by (pp.faceCentres() - oldFc)/deltaT. Location of new patch cell center - old patch cell center divided by the time step size.

  • @joaquimmonteiro2548
    @joaquimmonteiro25483 жыл бұрын

    Nice work. Whats the major chances we have to do to make a simulation of a 2D fan rotation?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    The empty boundaries.

  • @joaquimmonteiro2548

    @joaquimmonteiro2548

    3 жыл бұрын

    @@OpenFOAMJozsefNagy If I put empty in the boundaries conditions of certain "walls", OF considers that the simulation its done in 2D? That "wall" should have any special name? or I could rename as front and back for example?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    @@joaquimmonteiro2548 You can call it as you want. The type is important.

  • @joaquimmonteiro2548

    @joaquimmonteiro2548

    3 жыл бұрын

    @@OpenFOAMJozsefNagy I've manage to adapt your case to my situation. After a while (0,26 seconds) the simulation crashs and gives the error exit 142. Do you know what it means? Thanks

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    @@joaquimmonteiro2548 Unfortunately, check the Co number. Maybe your mesh quality is poor at some location.

  • @PratyushVihar
    @PratyushVihar4 жыл бұрын

    Dear Sir, The link of the case file doesn't working. Where else can I find the case?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    I noticed as well, that the link is broken. I contacted the responsible person at OpenCFD, hopefully the files will be accessible soon.

  • @PratyushVihar

    @PratyushVihar

    4 жыл бұрын

    @@OpenFOAMJozsefNagy Dear Sir, I have problem with local porosity distribution along length and width, the available solver only handle the constant porosity. Can You please help me to sort it out? Thanks in Advance.

  • @MarcelNKemet
    @MarcelNKemet3 ай бұрын

    Please use white BG console for KZread otherwise 1080dp resolution is needed to see anything on the screen. Thank you.

  • @rickyhuang8745
    @rickyhuang87453 жыл бұрын

    How many steps in this tutorial are different when using in openFoam v8? There's an error when I typing "surfaceFeatureExtract".

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    Some syntax is different. You have to check the snappy tutorials in v8 for the correct syntax.

  • @rickyhuang8745

    @rickyhuang8745

    3 жыл бұрын

    @@OpenFOAMJozsefNagy Gotcha, thanks a lot.

  • @MrMaciekzklanu
    @MrMaciekzklanu4 жыл бұрын

    Hello Józef, I have a one question. I can't start my simulation. I have this ERROR during last step in tutorial. [0] --> FOAM FATAL IO ERROR: [0] Wrong token type - expected string, found on line 20: word 'fvMotionSolvers' [0] [0] file: /mnt/c/Users/monki/Documents/rotatingFanInRoom/case/constant/dynamicMeshDict.motionSolverLibs at line 20. [0] [0] From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::fileName&) [0] in file primitives/strings/fileName/fileNameIO.C at line 60. [1] --> FOAM FATAL IO ERROR: [1] Wrong token type - expected string, found on line 0: word 'fvMotionSolvers' [1] [1] file: IOstream.motionSolverLibs at line 0. [1] [1] From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::fileName&) [1] in file primitives/strings/fileName/fileNameIO.C at line 60.[2] I have OPv1906 installed from your tutorial on Ubuntu in Windows 10. How can I solve it ? Thank you in advance! Best regards!

  • @cdvs100

    @cdvs100

    4 жыл бұрын

    Hi I have the same error, how did you solve it?

  • @cdvs100

    @cdvs100

    4 жыл бұрын

    For people who as me had the same error, it should be solve with "fvMotionSolvers" in the motionSolverLibs of the dynamicMeshDict of system folder, this is just to indicate that is a string.

  • @jegujeggs1968
    @jegujeggs19683 жыл бұрын

    Hi, can we use this tutorial to modify it and apply MRF technique instead of AMI? Thank you so much!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    Sure. You need a cellZone and a MRFProperites file

  • @jegga007

    @jegga007

    2 жыл бұрын

    @@OpenFOAMJozsefNagy Thank you so much for your reply! Sorry for getting back so late. May i also check if this method applies only for transient or does it apply for steady state simulation as well? Thanks again!!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    2 жыл бұрын

    @@jegga007 It works theoretically also for steady state,

  • @jjpark4758
    @jjpark47582 жыл бұрын

    I've been trying to adapt this template to run a quadcopter simulation (4 rotating AMI zones) with dynamicMultiMotionSolverFvMesh. I keep getting floating point errors :S

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    2 жыл бұрын

    Hi JJ, I answered you on Patreon!

  • @jjpark4758

    @jjpark4758

    2 жыл бұрын

    @@OpenFOAMJozsefNagy Cheers! I sent you a follow up reply. I found a workaround :)

  • @parasghumare5864
    @parasghumare58644 жыл бұрын

    Why to use movingWallVelocity BC for fan and not noSlip when AMI is already there? Is rotatingWallVelocity a BC too?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    You need it because the simulation is run in the external non moving reference frame and you have to account for the relative motion of the mesh.

  • @parasghumare5502

    @parasghumare5502

    4 жыл бұрын

    @@OpenFOAMJozsefNagy But if that's the case then why did you put the value as uniform 0? Why didn't you assign a rotatingWallVelocity BC and specify the rotation characteristics? Bit confused 😅

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    @@parasghumare5502 uniform 0 ist a starting value and is overwritten by the code. The rotation characteristics are not specified in the BC but in the dictionary in constant.

  • @dickymulyoaditama6284
    @dickymulyoaditama62842 жыл бұрын

    Great tutorial. Sir I have a question here. How big we should define this rotating domain size. For propeller or fan, yes I agree the rotating domain shape is cylinder. But I'm not clear about the distance from the propeller or fan to the faces of the cylinder (read : cylinder radius and length). It would be nice if somebody could enlighten me. Sorry for the trouble and have a nice day to you all ;)

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    2 жыл бұрын

    It should be as close to the fan as possibly, but the refinement of the fan/blade should not influence the refinement on the AMI. At least this is my experience.

  • @dickymulyoaditama6284

    @dickymulyoaditama6284

    2 жыл бұрын

    @@OpenFOAMJozsefNagy thanks alot for the reply Sir. Your experience is valuable to me since this is what I lack of as relatively new explorer in dynamic mesh user. So, based on your experience, this is what I get : suppose my AMI refinement level is less than the refinement in propeller surface. While I define AMI surface to get as close as possible to the propeller, I should be careful to define the distance from the AMI to the propeller so that pre-set AMI surface refinement level not affected by colateral or induced refinement from more refined propeller surface? Could you elaborate why this consideration is important. Just for the info, right now I'm predicting thrust of 2 meters of diameter of fixed pitch propeller for the aircraft rotating at 2200 rpm by using CFD. I consider using compressible solver and I have tried CFD simulation in openfoam using MRF approach (steady) and sliding/rotating mesh or AMI (transient).

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    2 жыл бұрын

    @@dickymulyoaditama6284 The interpolation between coarse and fine cells could be problematic. That's all.

  • @estaykylyshbek8347
    @estaykylyshbek83474 жыл бұрын

    how should I prepare the geometry for the flow domain? Should it be a cylinder or a thin-walled pipe with thin caps as inlet and outlet????

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    I am not sure, whether I understood your questions correctly, but you do not have to add a thin wall.

  • @estaykylyshbek8347

    @estaykylyshbek8347

    4 жыл бұрын

    @@OpenFOAMJozsefNagy Thank you for your reply.I checked your geometry, the AMI is just a shell, is that the right way? Can the AMI just be a solid cylinder? Also, it seems that the inlet, outlet, and the room are just faces or thin layers.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    @@estaykylyshbek8347 Yes this is correct.

  • @parasghumare5864
    @parasghumare58644 жыл бұрын

    While running surfaceFeatureExtract I get this error "keyword extractFromSurfaceCoeffs is undefined". I added that keyword and it ran successfully but I get this line saying "Feature line extraction is valid on closed manifold surfaces only".

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    Do you use the foundation version of OF?

  • @parasghumare5864

    @parasghumare5864

    4 жыл бұрын

    @@OpenFOAMJozsefNagy I am using the developer version just the way you did it.

  • @eti1316

    @eti1316

    4 жыл бұрын

    @@parasghumare5864 Hello, I use openFoam7 and I had the same problem as you. You can try this: in the ControlDict file, replace writeControl adjustable; by writeControl adjustableRunTime; and in the file surfaceFeatureExtractDict, replace door.stl { extractionMethod extractFromSurface; includedAngle 150; } by this: door.stl { extractionMethod extractFromSurface; extractFromSurfaceCoeffs { includedAngle 150; } writeObj yes; } do the same for each.stl file I haven't finished the tutorial yet, but by making these changes, I managed to generate the mesh and view it in paraview

  • @parasghumare5502

    @parasghumare5502

    4 жыл бұрын

    @@eti1316 i have already finished the tutorial and some of the changes I had made are the ones you have suggested. I was just wondering what that warning line means?

  • @shahabgolshan

    @shahabgolshan

    4 жыл бұрын

    @@eti1316 Thank you!

  • @dr.s5688
    @dr.s56883 жыл бұрын

    Hello, I'm trying to run the surfaceFeatureExtract command, but I get a message that says this: surfaceFeatureExtract: symbol lookup error: surfaceFeatureExtract: undefined symbol: _ZN4Foam9UOPstream5writeERKNS_5tokenE and I cannot pass from here :( I've tried downloading the whole source code and running it from there, bu I have the same message, I wonder if you could help me please.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    This is weird. Do you get the same error with a different version of OF?

  • @BombermanOfComet

    @BombermanOfComet

    3 жыл бұрын

    I had the same problem at first. It went away after a complete delete and reinstallation of OpenFOAM. But in the second run i got the error that controlDict, using the surfaceFeatureExtract function, cannot be found. Looks like this: FOAM FATAL ERROR : Could not find mandatory etc entry (mode=ugo) 'controlDict'

  • @oumaimaboualam5803
    @oumaimaboualam58034 жыл бұрын

    hello thank you for your tutorials i have make all the instruction in this video but in the end when i run the simulation the fan doesn't rotate ; i didn't understand what i should change. thank you

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    What did you change?

  • @oumaimaboualam5803

    @oumaimaboualam5803

    4 жыл бұрын

    @@OpenFOAMJozsefNagythe only thing that i change is in bondary wall to patch

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    @@oumaimaboualam5803 What is the reason for that?

  • @oumaimaboualam5803

    @oumaimaboualam5803

    4 жыл бұрын

    @@OpenFOAMJozsefNagyexactly like you have done for the door and the outlet but generally i have all done like you but the problem is that the fan doesn't rotate in the simulation thank you for your help

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    @@oumaimaboualam5803 Are you using the correct openfoam version v1912?

  • @hasnaouiacademy7899
    @hasnaouiacademy78993 жыл бұрын

    I don't say any stl file in the constant directory.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    Check to Allrun script, OpenCFD moved the STL files to a different location. If you check the tutorial folder of your v2012 installtion the files are still there.

  • @rokasbytautas5074
    @rokasbytautas50743 жыл бұрын

    Hi Joszef, I'm fairly new to openfoam and I am getting this error when running the mpirun command: environment variable MPI_BUFFER_SIZE not defined. How can I solve this issue? Thanks in advance

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    If the simulation is running, you don't have to worry about it. Or does it crash?

  • @rokasbytautas5074

    @rokasbytautas5074

    3 жыл бұрын

    @@OpenFOAMJozsefNagy it crashes

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    @@rokasbytautas5074 MPI_BUFFER_SIZE=2000000000 Does this help?

  • @rokasbytautas5074

    @rokasbytautas5074

    3 жыл бұрын

    @@OpenFOAMJozsefNagy Hi sorry it still doesn't work. Where exactly does this need to be defined?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    3 жыл бұрын

    @@rokasbytautas5074 In the command line before starting the simulation.

  • @akolbilaemmanuel7073
    @akolbilaemmanuel70732 жыл бұрын

    Please sir what is the relevance of this simulation to a civil engineer

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    2 жыл бұрын

    To be able to deduce your own case.

  • @estaykylyshbek8347
    @estaykylyshbek83474 жыл бұрын

    How can I change this case to run a simulation for a horizontal axis wind turbine?

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    Change the STL files, the settings for meshing, the case setup and there you go ;)

  • @estaykylyshbek8347

    @estaykylyshbek8347

    4 жыл бұрын

    @@OpenFOAMJozsefNagy My flow domain is a giant cylinder, should it be a solid body or just a shell structure like your room stl.

  • @estaykylyshbek8347

    @estaykylyshbek8347

    4 жыл бұрын

    @@OpenFOAMJozsefNagy Thank you so much for your reply.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    4 жыл бұрын

    @@estaykylyshbek8347 It doesn't have to be 100% water tight as long as the gaps are smaller than the final mesh resolution.

  • @estaykylyshbek8347

    @estaykylyshbek8347

    4 жыл бұрын

    @@OpenFOAMJozsefNagy Thank you for the answer but I am still a bit confused. May I send you an email and include my STL files?

  • @benediktbihlmayer9004
    @benediktbihlmayer90042 жыл бұрын

    Hi Jozsef, dear community thanks for your tutorial it was very helpful. With your video and the entry on the OpenFoam website i was able to finish the tutorial. I tried to change the geometry and it worked until the last command. When i try to run mpirun -np 4 pimpleFoam -parallel > log.pimpleFoam & the following problem report appears. [0] --> FOAM FATAL IO ERROR: (openfoam-2112) [0] Cannot find patchField entry for procBoundary0to1 [0] [0] file: processor0/0/p.boundaryField at line 25 to 62. [0] [0] From void Foam::GeometricField::Boundary::readField(const Foam::DimensionedField&, const Foam::dictionary&) [with Type = double; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh] [0] in file /usr/src/packages/BUILD/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 172. [0] FOAM parallel run exiting [0] in file /usr/src/packages/BUILD/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 172. Any help would be appreciated. With kind regards Benedikt Bihlmayer

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    2 жыл бұрын

    Possibly there was an issue during decomposePar already?

  • @benediktbihlmayer9004

    @benediktbihlmayer9004

    2 жыл бұрын

    @@OpenFOAMJozsefNagy Thank you for your fast answer. I will Check it.

  • @benediktbihlmayer9004

    @benediktbihlmayer9004

    2 жыл бұрын

    @@OpenFOAMJozsefNagy Hi Jozsef, I tried to run the simulation again and edited the code. You were right that during decomposePar was the following issue --> FOAM FATAL IO ERROR: (openfoam-2112) Cannot find patchField entry for allBoundary file: 0/k.boundaryField at line 25 to 62. From void Foam::GeometricField::Boundary::readField(const Foam::DimensionedField&, const Foam::dictionary&) [with Type = double; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh] in file /usr/src/packages/BUILD/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 172. It would be great if you can tell me what i am doing wrong. Thanks for your help i do appreciate it a lot. With kind regards Benedikt Bihlmayer

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    2 жыл бұрын

    @@benediktbihlmayer9004 Your original BC from blockMesh is not deleted during snappy. Take a look at your mesh. Looks like you don't cut away your outside for some reason. Not water tight STLs?

  • @benediktbihlmayer9004

    @benediktbihlmayer9004

    2 жыл бұрын

    @@OpenFOAMJozsefNagy How can i check, if the STLs are water tight? I thought by running the command checkMesh i see if there is a problem but checkMesh returns that everything is ok. Checking topology... Boundary definition OK. Cell to face addressing OK. Point usage OK. Upper triangular ordering OK. Face vertices OK. Number of regions: 1 (OK). Checking patch topology for multiply connected surfaces... Patch Faces Points Surface topology allBoundary 14350 14352 ok (closed singly connected) Checking faceZone topology for multiply connected surfaces... No faceZones found. Checking basic cellZone addressing... No cellZones found. Checking geometry... Overall domain bounding box (-277 -47 -97) (1 47 47) Mesh has 3 geometric (non-empty/wedge) directions (1 1 1) Mesh has 3 solution (non-empty) directions (1 1 1) Boundary openness (-1.330152e-17 1.824875e-15 -1.336859e-15) OK. Max cell openness = 1.734963e-16 OK. Max aspect ratio = 2.808359 OK. Minimum face area = 7.285986. Maximum face area = 20.52812. Face area magnitudes OK. Min volume = 34.97463. Max volume = 35.08443. Total volume = 3756917. Cell volumes OK. Mesh non-orthogonality Max: 0.3553395 average: 0.1683 Non-orthogonality check OK. Face pyramids OK. Max skewness = 0.006983165 OK. Coupled point location match (average 0) OK. Mesh OK. Do you know any other options to take a closer look at the mesh? With kind regards Benedikt Bihlmayer

  • @looootfy1
    @looootfy13 жыл бұрын

    Dear sir, Could you please upload a tutorial on simulation of vertical axis wind turbines.?

Келесі