Тёмный

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

József Nagy
Подписаться 25 тыс.
Просмотров 23 тыс.
50% 1

"How to run your first OpenFOAM® case yourself" - Part 2
This material is published under the creative commons license CC BY-NC-SA (Attribution-NonCommercial-ShareAlike). If you plan to use it, please acknowledge it.
This video contains auxiliary material for students at the Johannes Kepler University in Linz, Austria. Students from other universities are welcome to use it for their learning purposes.
Thanks to Gavin Tabor from the University of Exeter for his input.
This series is based upon CFD tutorials created at the Vienna University of Technology in a cooparation with Bahram Haddadi, Christian Jordan and Michael Harasek and further improved at the Johannes Kepler University in Linz, Austria.
The used OpenFOAM version was precompiled by Andras Horvath from Rheologic GmbH, you can download it here:
rheologic.at/?q...

Опубликовано:

 

22 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 61   
@DaylightDigital
@DaylightDigital 9 лет назад
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!
@gauravraj999
@gauravraj999 4 года назад
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
@sandipgewali641
@sandipgewali641 3 года назад
13:23 to go down to last line of the file in nano editor, press ctrl+end key combination.
@waelelorfi5660
@waelelorfi5660 7 лет назад
Thanks a lot :) Moving to the intermediate tutorials set.
@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.
@OpenFOAMJozsefNagy
@OpenFOAMJozsefNagy 5 лет назад
Great!
@Aragorn32167
@Aragorn32167 9 лет назад
Thank you for great tutorial for beginners
@퓨리에
@퓨리에 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
@YATHARTHLILHARE-x6j
@YATHARTHLILHARE-x6j Год назад
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!
@carloscarmonacaceres4382
@carloscarmonacaceres4382 4 года назад
Thanks a lot for this great tutorial
@mahashayjee5545
@mahashayjee5545 3 года назад
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
@143jaggu
@143jaggu 6 лет назад
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 лет назад
Well there are some function objects, where you can add a code. There you could overwrite the velocity each time step. This could work.
@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 лет назад
Yes, because we only have one cell over the thickness and they are inside both the sphere and the cylinder.
@isaacc4026
@isaacc4026 6 лет назад
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?
@OpenFOAMJozsefNagy
@OpenFOAMJozsefNagy 6 лет назад
That is a very good idea, yes.
@chensongtao9244
@chensongtao9244 5 лет назад
After finishing the basic, which video should I watch? intermediate?btw, your video is really useful!
@OpenFOAMJozsefNagy
@OpenFOAMJozsefNagy 5 лет назад
I am glad. Yes, intermediate is a good idea.
@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?
@OpenFOAMJozsefNagy
@OpenFOAMJozsefNagy 6 лет назад
Reload your case. This is a problem of paraview
@parasghumare5502
@parasghumare5502 5 лет назад
Happens with me everytime. I hate it.
@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 лет назад
You can copy it from \tutorials\compressible\sonicFoam\laminar\shockTube\system
@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.
@OpenFOAMJozsefNagy
@OpenFOAMJozsefNagy 4 года назад
You do it in separate steps.
@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 лет назад
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 года назад
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 года назад
@@giacomodelbianco I am glad it works.
@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 3 года назад
On the panel there is an option says ignore the zero time. Make sure it is not selected
@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 года назад
If the flow is pointing outwards it is zeroGradient if the flow points inward the fix value is used which you provide as inletValue.
@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 лет назад
volScalarFieldvalue --> volScalarFieldValue
@mahashayjee5545
@mahashayjee5545 3 года назад
I got the same error @jozsef Nazy, sir please clarify what you said in this
@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 года назад
@@OpenFOAMJozsefNagy yes. It worked. Thankyou very much
@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.
Далее
Introduction to transport equations - Part 1
24:47
Просмотров 44 тыс.
How to run parallel simulations in OpenFOAM® - Part 3
19:42
Introduction to discretization - Part 1
19:29
Просмотров 34 тыс.
What the h*ll is OpenFOAM? Explained with a PIZZA!
14:38
How the Best Hackers Learn Their Craft
42:46
Просмотров 2,6 млн
Understanding grid convergence - Part 1
30:42
Просмотров 62 тыс.
How To Think Like A Programmer
1:00:07
Просмотров 2 млн