Parabolic velocity Boundary Condition in OpenFOAM | codedFixedValue

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 เม.ย. 2021
  • In this video you can learn how to set up a parabolic BC for inlet patch. Using codedFixedValue boundary we can give any expression and it will generate that non uniform velocity for the patch.
    Download presentation and materials from the Telegram channel.
    Join Telegram channel: t.me/DDFluids​...
    Join TH-cam channel: / ddfluids
    Join me on LinkedIn: / divyeshvariya
    Join Instagram: / cfd_openfoam​
    Join me on Twitter: / divyeshvariya
    #openfoam​ #paraview​ #cfd​ #parabolic #velocity #programming

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

  • @user-it1qu2on5l
    @user-it1qu2on5l 3 ปีที่แล้ว +1

    Very kind and detailed explanation. I like this video. Thanks a lot!

  • @user-gt2un8kh7c
    @user-gt2un8kh7c ปีที่แล้ว

    Yesss!!! This is what I needed.

  • @MohammedAli-ic2wt
    @MohammedAli-ic2wt 2 ปีที่แล้ว

    Great! Explaned the code very well and also the application. Really helped a lot. Will use it in my solver.

  • @shouvikghorui6784
    @shouvikghorui6784 3 ปีที่แล้ว +1

    Helpful Thank you!

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

    bravo and thank you

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

    How the code forms in a 2D case with flow in x direction and diameter in y direction

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

    Thank you for your video. I want to apply radiation in the temperature field. How can the applied radiation equation be in the temperature field using coded mixed BC.

  • @mitch.crockett
    @mitch.crockett 7 หลายเดือนก่อน +1

    Is there a way I can download these tutorial files?

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

    sir if we want powerLaw velocity profile then what i need to change in code ?

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

    Hi, how can we apply parabolic velocity profile using codedFixedValue BC in overSet meshes ? Any guideline/ idea/ recommendation ?

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

    i follow your steps and compile code, error as:
    0/U.boundaryField.inlet:45:15: error: ‘Cf’ was not declared in this scope
    can you give me a hint ?, many thanks

  • @professor.joao.r.andrade
    @professor.joao.r.andrade 3 ปีที่แล้ว +1

    Thank you for the video. I applied this boundary condition for temperature. However, I'd like to apply it to an imposed heat, is it possible?

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

      Yes, you can modify the expression and make it for the scalar field.

  • @parthdevbundela6744
    @parthdevbundela6744 3 ปีที่แล้ว +1

    Hi sir, can you please tell me how to give boundary condition for velocity inlet which is varying with time, instead of spatial variation

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

      a simple ramp example:
      #{
      const scalar t = this->db().time().value();
      operator==(min(10, 0.1*t));
      #};

  • @salchicasvoladoras
    @salchicasvoladoras 7 หลายเดือนก่อน

    "---> FOAM FATAL IO ERROR: Unknown patchField type parabolicVelocity for patch type patch" why do I keep getting this error. I set the type "codedFixedValue" and then name "parabolicVelocity" I dont get it :(

    • @tassawariqbal3694
      @tassawariqbal3694 5 หลายเดือนก่อน

      hey, I had the same issue, I forgot to put the semi colon on the closing bracket #}.

  • @yagnadurbhakula5792
    @yagnadurbhakula5792 3 ปีที่แล้ว +1

    It's very helpful. Can you also explain how to use codedFixedValue for scalar field (temperature)

    • @DDFluids
      @DDFluids  3 ปีที่แล้ว +1

      For scalar fields, you can remove 2 components from the equation. That should work. If you need any help, please do let me know.

    • @yagnadurbhakula5792
      @yagnadurbhakula5792 3 ปีที่แล้ว +1

      @@DDFluids I tried what you have told, but an error is showing up
      --> FOAM FATAL IO ERROR:
      keyword name is undefined in dictionary "/home/yagna/OpenFOAM/project/gradient/0/T/boundaryField/left"
      file: /home/yagna/OpenFOAM/project/gradient/0/T/boundaryField/left from line 31 to line 101.
      From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
      in file db/dictionary/dictionary.C at line 799.

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

      Did you gave name to your boundary condition?

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

      In the tutorial one entry is there "name parabolicVelocity;" the same way you need to give some name to your boundary.

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

      @@DDFluids yes i have given the name..actually i need to give codedfixedvalue boundary condition on left and right boundaries..so i have given "leftBC" and "rightBC" respectively in codedfixedvalue code

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

    Very very important tutorial. Thank you so much.
    --> FOAM FATAL IO ERROR:
    Failed wmake "dynamicCode/parabolicVelocity/platforms/linux64GccDPInt32Opt/lib/libparabolicVelocity_acd2aaca919d7a166a948cf1daab1ba94e58d104.so"
    file: /home/Desktop/try/0/U/boundaryField/inlet from line 24 to line 49.
    what should i do now bro.

    • @manuelfonseca1723
      @manuelfonseca1723 11 หลายเดือนก่อน

      i had this same problem, i read that happens for a security issue in OF code, it solves only enabling the lines of the code and recompiling the OF but i didn't try it.

  • @manuelo1738
    @manuelo1738 3 ปีที่แล้ว +1

    Why is the 0 file not showing the correct boundary?

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

      Custom boundary will start calculating after 0 sec. So whatever expression we are giving is not applied to 0 sec but as in when simulation starts, it will give correct value. But at 0 sec it will show you a dummy value or default value or placeholder. That is there in the code right before expression.

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

      @@DDFluids Is that the intended behaviour? Hopefully OF explicit and implicit operatores (grad, div, laplacian) will take that into consideration, otherwise for time 0 you will do calculations with the place holder :V

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

    Hi, thank you for the video, please upload case files if possible. thank you.