How to run your first OpenFOAM® case yourself - Part 2

Поділитися
Вставка
  • Опубліковано 29 гру 2024

КОМЕНТАРІ • 61

  • @DaylightDigital
    @DaylightDigital 10 років тому +16

    It's interesting to see how the numerical diffusion manifests itself only in the direction of local convection, resulting first in an ellipse, and a circle after the second translation. Neat!

  • @sandipgewali641
    @sandipgewali641 3 роки тому +3

    13:23 to go down to last line of the file in nano editor, press ctrl+end key combination.

  • @gauravraj999
    @gauravraj999 4 роки тому +1

    Your videos are very useful for the beiginners like me. I have finished the basic and now moving forward to intermediate. Thanks a lot sir

  • @waelelorfi5660
    @waelelorfi5660 8 років тому +2

    Thanks a lot :)
    Moving to the intermediate tutorials set.

  • @mahashayjee5545
    @mahashayjee5545 3 роки тому +1

    I am trying to simulate colliding droplets with multiphase VOF solver( interFoam) in OpenFOAM so, the problem I'm having is to give velocities of same magnitude but opposite in direction to droplets, using internal fields won't help same as with setFields which accepts only scalar fields so, any help in this would be highly appreciated

  • @Aragorn32167
    @Aragorn32167 9 років тому +3

    Thank you for great tutorial for beginners

  • @143jaggu
    @143jaggu 6 років тому +1

    Hi Jozef thanks a lot for the informative tutorial. The velocity field you had mentioned is constant. How and we simulate in an accelerating field (for example U = t, where t in time)? If possible kindly made a video.

    • @143jaggu
      @143jaggu 6 років тому

      U = t means U = (t 0 0)

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  6 років тому +1

      Well there are some function objects, where you can add a code. There you could overwrite the velocity each time step. This could work.

  • @YATHARTHLILHARE-x6j
    @YATHARTHLILHARE-x6j Рік тому +1

    Create time
    Create mesh for time = 0
    Reading setFieldsDict
    Setting field default values
    Setting internal values of volScalarField T
    Setting field region values
    --> FOAM FATAL IO ERROR: (openfoam-2012)
    Entry 'radius' has 6 excess tokens in stream
    7(1 fieldValues ( volScalarFieldValue T 1 ))
    file: sphereToCell at line 29.
    FOAM exiting
    @József Nagy, any solution for this?

  • @isokarako
    @isokarako 3 роки тому

    I thank you Jozsef, you are the best!

  • @jayeshgolhar
    @jayeshgolhar 5 років тому

    Thank you very much Jozsef Nagy sir. I tried by my self without looking this video. And I end up making 3 different cases . Lol.
    Then I saw this video and realised my mistake then I corrected it.... Thank you very much sir.

  • @퓨리에
    @퓨리에 5 років тому +5

    start from latest time in controldict some beginner couldn't catch this.

    • @UmutPekduz
      @UmutPekduz 5 років тому

      Thank you for life saver point!

    • @sacramentofwilderness6656
      @sacramentofwilderness6656 4 роки тому

      I've got it without explanation, it was not mentioned in previous tutorials, but one could infer the logic, how the simulation is run, and folders for each timestep are created

  • @ruizeng3076
    @ruizeng3076 5 років тому

    Hi professor, so even for" sphereToCell", it will generate a cylinder of radius 1 for this case? .....it seems using cylinderToCell is more intuitive. Based on the word "sphere", it seems spheretocell might generate a ball shape region at 0 0 0, and the circle shown on the front and back "empty plane" might not have the radius of 1.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  5 років тому +1

      Yes, because we only have one cell over the thickness and they are inside both the sphere and the cylinder.

  • @isaacc4026
    @isaacc4026 7 років тому

    Hi, How to know the required physical properties (eg. thermophysical properties ,transport properties..etc in the constant directory) for each solver? For example, if I want to solve a case using the icoFoam solver, may be I have to copy a basecase from an icoFoam tutorial and check out the required properties from that?

  • @carloscarmonacaceres4382
    @carloscarmonacaceres4382 4 роки тому +1

    Thanks a lot for this great tutorial

  • @arnesimons6826
    @arnesimons6826 6 років тому

    When I click the button in paraview to see the next step, it jumps over a period of time of 1.3333s rather than 1s. This causes paraview never to show the folder after 2 seconds since it jumps from 1.333 (approximately 1) to 2.6666 (approximately 3). The folders that are created in my file however only contain integers and I can also put these integers manually. Is there a reason for this strange behavior of paraview?

  • @lucasazevedo6298
    @lucasazevedo6298 4 роки тому

    sorry for the question, but what does the boundery inletOutlet means? I read the user and I still didnt get it

    • @lucasazevedo6298
      @lucasazevedo6298 4 роки тому

      the user guide*

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому +2

      If the flow is pointing outwards it is zeroGradient if the flow points inward the fix value is used which you provide as inletValue.

  • @Daniel-gv9gr
    @Daniel-gv9gr 4 роки тому

    I can not see the temperature at all in paraview same for the velocity, in my 0 folder there is the Temperature file how can this be?

    • @rearea784
      @rearea784 4 роки тому

      On the panel there is an option says ignore the zero time. Make sure it is not selected

  • @parasghumare5502
    @parasghumare5502 5 років тому

    I am never able to see the initial conditions in paraview. Only after I run my simulation I am. I am talking about 12.09. This happened during the grid convergence tutorial as well. But if I use paraFoam instead of paraview & then I can see the initial values? why so?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  5 років тому +2

      In recent versions of Paraview, thee is an annoying check box with "Skip zero time". Uncheck it.

    • @giacomodelbianco
      @giacomodelbianco 4 роки тому

      ​@@OpenFOAMJozsefNagy I have got the same, I unchecked this box and refreshed, applied. I cannot see the initial value on the mesh which appears completely blue, right from the first second photogram the circle appears correctly. It is strange because paraFoam opens another version of paraview and there it is visible also the first photogram. I think this is a bug.

    • @giacomodelbianco
      @giacomodelbianco 4 роки тому +1

      I fixed the problem, it was my fault. Just for knowledge, my mistake was this: in the 0 folder I kept the file names with the extension: T.org and U.org. I repeated changing the name in T, U (without .org) and I was able to see also the time 0 configuration. I am sorry for this.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому +2

      @@giacomodelbianco I am glad it works.

  • @gauravraj999
    @gauravraj999 4 роки тому

    how do we do it in one go ? l tried giving the if condition using runTime in the U file. But, I guess that was the wrong way to do. gave me so many errors which I failed to solve.

  • @jeanpinto8864
    @jeanpinto8864 7 років тому

    Hello, in my
    OpenFoam folder I'm missing the setFieldsDict file in the tutorials /
    basic / scalarTransportFoam / location, how do I solve it?

    • @kai1973o
      @kai1973o 7 років тому +1

      You can copy it from \tutorials\compressible\sonicFoam\laminar\shockTube\system

  • @chensongtao9244
    @chensongtao9244 6 років тому

    After finishing the basic, which video should I watch? intermediate?btw, your video is really useful!

  • @mmaruthiprasanna
    @mmaruthiprasanna 4 роки тому

    Hiii.
    In your youtube video "How to run your first openfoam case yourself" though I deleted phi, still the scalar transport is going out of the domain which is suppose to go in positive y direction. Please help me

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      Did you run the case from the last time step?

    • @mmaruthiprasanna
      @mmaruthiprasanna 4 роки тому

      @@OpenFOAMJozsefNagy in the first run, I ran for 4 seconds. After that I deleted the phi in the 4th second time step. And I changed the velocity in 0 folder to (0 1 0).in the control dict I changed endtime to 8 seconds. But still it's going out of domain

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      @@mmaruthiprasanna Change it in folder 4

    • @mmaruthiprasanna
      @mmaruthiprasanna 4 роки тому +1

      @@OpenFOAMJozsefNagy yes. It worked. Thankyou very much

  • @jinlaizhang312
    @jinlaizhang312 6 років тому

    why things come to wrong ?
    Reading setFieldsDict
    Setting field default values
    Setting internal values of volScalarField T
    Setting field region values
    Adding cells with centre within sphere, with centre = (0 0 0) and radius = 1
    --> FOAM Warning :
    From function Foam::autoPtr setCellField::iNew::operator()(Foam::Istream&) const
    in file setFields.C at line 174
    field type volScalarFieldvalue not currently supported
    --> FOAM Warning :
    From function Foam::autoPtr setCellField::iNew::operator()(Foam::Istream&) const
    in file setFields.C at line 174
    field type T not currently supported
    --> FOAM FATAL IO ERROR:
    wrong token type - expected word, found on line 27 the label 1
    file: .sphereToCell.fieldValues at line 27.
    From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::word&)
    in file primitives/strings/word/wordIO.C at line 74.
    FOAM exiting

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  6 років тому +1

      volScalarFieldvalue --> volScalarFieldValue

    • @mahashayjee5545
      @mahashayjee5545 3 роки тому

      I got the same error @jozsef Nazy, sir please clarify what you said in this

  • @learnwithDk-h2
    @learnwithDk-h2 2 роки тому

    Create time
    Create mesh for time = 0
    SIMPLE: no convergence criteria found. Calculations will run for 4 steps.
    Reading field T
    Reading field U
    Reading transportProperties
    Reading diffusivity DT
    Reading/calculating face flux field phi
    No finite volume options present
    Calculating scalar transport
    Courant Number mean: 0.1 max: 0.1
    Time = 0.01
    --> FOAM FATAL IO ERROR: (openfoam-2012)
    Entry 'T' not found in dictionary ""
    From const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&, Foam::keyType::option) const
    in file db/dictionary/dictionary.C at line 537.
    FOAM exiting
    I got this error here 3 times, and still, I am unable to solve it.
    @József Nagy, can you tell me what it is?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 роки тому

      You forgot to take some of the dictionaries. Check 0/T and system/fvSchemes and especially system/fvSolution, whether you have the correct entries about T.