Scaling, translating and rotating your mesh in OpenFOAM with the command 'transformPoints'

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

ความคิดเห็น • 39

  • @mohamedshatarah7264
    @mohamedshatarah7264 8 หลายเดือนก่อน +1

    Thank you so much, sir. Your videos are very helpful.

  • @qwertyman9560
    @qwertyman9560 2 ปีที่แล้ว +1

    Thanks a ton, all it took was 2 minutes, problem solved!

  • @kisahofflanerdansupport1098
    @kisahofflanerdansupport1098 ปีที่แล้ว

    thanks mr jozef for the video. How do you set for the base case i.e. getting 0, constant, and system folder and how to process the .obj file become the polymesh data so that we can open the .foam file?

  • @bozhang1326
    @bozhang1326 3 ปีที่แล้ว

    Hi Jozsef, thanks for your detailed demonstration. Could you please give me a hint on how to rotate a specific part of my mesh? Thanks!

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 ปีที่แล้ว

      I don't know what you mean by specific part of your mesh, but transformPoints -help may help

  • @oleksiyyefimenko3299
    @oleksiyyefimenko3299 3 ปีที่แล้ว

    Thank you! Useful!

  • @vishalperera1954
    @vishalperera1954 2 ปีที่แล้ว

    Hi, is there a way to transform the points and keep it fixed and saved onto that location. There is an STL file, which, when I import, does not coincide with the origin of the blockMesh.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 ปีที่แล้ว

      You can also translate the mesh with transformPoints.

  • @samikmaiti9339
    @samikmaiti9339 ปีที่แล้ว

    Can I rotate a simple block mesh?

  • @mathiassnderskov7214
    @mathiassnderskov7214 5 ปีที่แล้ว

    Hi Jozsef, thanks for the video. I work with OF for urban wind comfort. I was thinking if its possible to "cut out" a proposed building and insert another building proposal in it's place, without having to remesh the entire context.
    Thanks, Mathias

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  5 ปีที่แล้ว

      With the new overset mesh feature in OpenFOAM it should be possible.

  • @aoranwang9981
    @aoranwang9981 3 ปีที่แล้ว

    Nice and useful video! vielen Dank! I have a question for the sets after scaling: I want to run a simulation in micrometer scale. I did blockMesh and snappyHexmesh all in default(in meter scale) and had transferred all the points into um scale, these are all ok. unfortunately, after running I found an unacceptable result. I think the reason is I should also change the set on boundary conditions and time-steps or fvsolutions? If I have to do this, is there any rules? All things times 1e-6?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 ปีที่แล้ว

      You have to enter everything in SI units. Maybe you added an inlet velocity of x um/s but instead you have to use x 1e-6 m/s. Possibly this could be it. But difficult to tell.

  • @lukasf2648
    @lukasf2648 5 ปีที่แล้ว

    Good video. Is there any tool available you know about which can rotate fields which are located in the postProcessing folder as well? (e.g. fields from a specified surface written out at specific time steps)

  • @francootaola9172
    @francootaola9172 4 ปีที่แล้ว

    hello just an small detail to add (someone commented too..) surfaceTransformPoints has almost (i say almost as it does not have the decompose option) that transformPoints but it is for the surface mesh (.stl) :) if anyone is looking for that is nice to know

  • @mtom798
    @mtom798 4 ปีที่แล้ว

    Hello Jósef, is it possible to rotate a mesh made with blockMesh? I want to rotate the pipeCyclic tutorial by 180 degrees in the z-axis

    • @mtom798
      @mtom798 4 ปีที่แล้ว

      It is possible, I had to run blockMesh first

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 ปีที่แล้ว +1

      @@mtom798 transformPoints -help will give you the possible solutions.

  • @InaamaliMalik
    @InaamaliMalik 2 ปีที่แล้ว

    Hi Jozsef, thank you for the interesting content. I have a question to ask: is it possible to translate mesh in between solution, e.g. I complete 0.8 s simulation, and then I translate the mesh, and re-run the simulation for another 0.8 s, with a total simulation of 1.6 s. Is is possible ?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 ปีที่แล้ว

      I am not 100% what you mean, but I guess so. You have to map your results.

    • @InaamaliMalik
      @InaamaliMalik 2 ปีที่แล้ว +1

      @@OpenFOAMJozsefNagy thanks a lot, I tried using mapFields and it worked after a few attempts.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 ปีที่แล้ว

      @@InaamaliMalik Great!

  • @ztdep
    @ztdep 3 ปีที่แล้ว

    how to transform the stl to your mesh points?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 ปีที่แล้ว

      I would never do that as STL consists of triangles and the quality of the cells would never be good for a CFD simulation. STL is only there as a guide for hex dominant meshers to do the job,

  • @apotl8584
    @apotl8584 5 ปีที่แล้ว

    hello, thank you for the video, it made me realise that there might be a way of translating/rotating only the products of the snappyhexmesh without moving the boundary volume. i tried the surfaceTransformPoints command but it just moves my stl, which in retrospect i should have anticipated.
    Do you know of any ways you can achieve that?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  5 ปีที่แล้ว

      So you only want to move the inner boundaries of your mesh created with snappy and not your original boundaries from blockMesh?

    • @apotl8584
      @apotl8584 5 ปีที่แล้ว

      József Nagy József Nagy yes, exactly. To give some context, we have a formula student car and at some point in our research we need to test the car in various heights from the road, so by just moving the inner boundaries we could save a lot of computational time. Otherwise we would have to crreate a mesh for the same geometry around 10 times ( i suppose the same principle will apply for the roll and pitch )

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  5 ปีที่แล้ว

      @@apotl8584 The question is, how big the movement is compared to the actual geometry. The mesh might be morphed in a strong way and then your cell quality will suffer.

    • @apotl8584
      @apotl8584 5 ปีที่แล้ว

      @@OpenFOAMJozsefNagy the movement would be a maximum of 20 millimeters while the geometry is around (2.5 , 1.5 ,1.2 ) in meters in the x,y,z axis accordingly. I suppose that an evaluation of the results would be in order, assuming the mesh movement is feasible

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  5 ปีที่แล้ว

      @@apotl8584 Then check out in your OpenFOAM installation in tutorials/mesh/moveDynamicMesh the examples. Maybe they can help you.

  • @sushrutkumar6198
    @sushrutkumar6198 5 ปีที่แล้ว

    Hello Jozsef, saw your video. I want to divide my inlet patch into 3 different patches to assign different BC. Is there any utility for this? Also I am using blockMesh for generating my mesh.

    • @apotl8584
      @apotl8584 5 ปีที่แล้ว

      Sushrut you should define your inlet by three separate squares (or wtv shape you want) and at your 0 file in u define the velocity at its square

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  5 ปีที่แล้ว

      @@apotl8584 This is the best way to do it, yes. You can use surfaceToPatch to select only parts of the boundary with an STL file.

  • @hopeilyPassion
    @hopeilyPassion 4 ปีที่แล้ว

    Thank you!