For anyone who had the issue with the "setFields" command and returned error such as "Foam Warning: (...) Field U not found", "Foam Warning: (...) Field T not found", "Foam Warning: (...) Field P not found", try changing the "0.orig" to "0" it fixed my issue.
Now, I've tried to make a copy of 0.orig with name 0 and it works completely fine 😁. But I'm not sure if there will be any future problems because of this.
Hi Jozsef , after I create my setFieldsDict by setting the field default values and field region values when I go to paraview and refresh I am not able to see the T,p,U in the drop down ( I am only able to see these - ' Solid color', 'vtkCompositeIndex' , 'CasePath' ,'vtkBlockColors'. And my ' toggle colour legend visibility' becomes ineffective. Please help!
@@OpenFOAMJozsefNagy hello sir I am also having the same issue and also "paraFoam &" is also not working it gives errors like an import error. What should I do sir?
At 10:54, one doesn't need to copy the files into shockTube_1000 and shockTube_10000 folder. Also, inside shockTube_100 directory, one can create the dummy file executing the "paraFoam -touch" command, which will create a file named "shockTube_100.OpenFOAM" which can be read by Paraview. Repeat the same for the remaining two cases. To then visualize, one can run "paraFoam &" command, the "&" being the option to run the process Paraview in the background.
Thank you so MUCH!!! József Nagy, your virtual classes are more than helpful for me!! I am really enjoying learn with you! I have started learning from scratch with you, since then, I have learned loads! Thanks a lot! 10x better than using only the user guide! :)
When I open the case (before running the simulation) in paraview, p, T, and U don't load into it. After the simulation I still only see results from t=0,001 to t=0,007, but not for t=0. Any ideas what might be the reason for that?
hello professor, in this case , when we note the boundary in the blockMesh using the right hand rule, the thumb is pointing towards the surface to match the results shown in the file..... this contradicts what I learned from the last video that the normal vector (thumb) is always pointing out the surface
Hello Dr. Nagy, Thanks for your awesome tutorials. I have an error while trying to run the simulation using sonicFoam : "PIMPLE: no residual control data found. Calculations will employ 2 corrector loops" ..... how can I solve this issue ?
Hallo sir. When I command the blockMesh, it is created just 5 Folders inside the polyMesh.These are boundary,faces,neighbour,owner,points . I can't reach blockMeshdict folder inside the polyMesh. How can I fix that?
Hello, Your videos are very helpful. I was trying to run the foam.foam using paraview. But I don't know why I could not load it. I followed the whole thing as you showed in the video. Your reply is highly appreciated.
Several people seem to have this problem. Try another paraview version or you can convert your results to VTK. The command is foamToVTK. You'll get a VTK folder and there you can open your results.
Hello, First thanks for the great tutorials. Could you please help me, when I type setFields I get this error --> FOAM FATAL ERROR: cannot find file "/home/taron/OpenFOAM/openfoam6/tutorials/compressible/sonicFoam/laminar/shockeTube_baseCase/system/system/controlDict" I noticed that it wants to find the file in system/system/ but there is only one system and controlDict is there so I tried to create that additional /system folder and put files in it and enter the command. Thish time it shows this: --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times "0" down to constant
Hello, you should run the simulation from the main directory. So try to run it like this : 1-)Firstly, you should go up to your main case file. Do not run the simulation when your directory is in one of the sub-folders of the case file. cd ~/OpenFoam/openfoam6/tutorials/compressible/sonicFoam/laminar/shockeTube_baseCase 2-) Then run the simulation from this directory path with "sonicFoam" command. If you are using the later versions of Openfoam such as openFoam-7 . You may need to type "rhoPimpleFoam" instead of "sonicFoam".
--> FOAM Warning : From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = Foam::Vector; Foam::labelList = Foam::List] in file setFields.C at line 125 Field U not found --> FOAM Warning : From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List] in file setFields.C at line 125 Field T not found --> FOAM Warning : From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List] in file setFields.C at line 125 Field p not found Setting field region values Adding cells with centre within boxes 1((0 -1 -1) (5 1 1)) --> FOAM Warning : From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List] in file setFields.C at line 125 Field T not found --> FOAM Warning : From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List] in file setFields.C at line 125 Field p not found
Thanks for those great tutorials! I tried to increase the duration of the simulation to observe shock reflection from the sides but interestingly shock wave seems to be damped out. Is this due to the zero gradient BC that we have used to define the sides? What kind of BC shall I use?
Hi. I followed the instruction but when I try to used the "sonicFoam" solver I get "FATAL ERROR" that it can not find the informations in fvSolution/fvScheme/thermophysicalProperties. I notice that content is this folder is different from content it is show in this tutorial. I try to change the data in these folder base on the tutorial but I still get error. I just want to ask where can I get the case setup with the same folders as this in tutorial. I am using openFOAM 2012.
No, that is correct. If you take a look at the compressible Navier Stokes equations, you see, that you do not divide by the constant density (because the flow is compressible i.e. the density is not constant). sonicFoam is a compressible solver. In icoFoam you solve the incompressible Navier Stokes equations, where you do divide by the constant density.
József Nagy Oh I see, it's kind of obvious now that I see what the code is doing. Kind of like how some codes solve the NS equations in non-dimensional form first, then multiply by the appropriate constants after a solution is found? I guess there's no need for the solution variables to be the actual physical quantities so long as a well-defined map exists to go between them.
Whenever I type setFields, I get this error: Create mesh for time = 0 Reading setFieldsDict Setting field default values --> FOAM Warning : From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = Foam::Vector; Foam::labelList = Foam::List] in file setFields.C at line 123 Field U not found --> FOAM Warning : From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List] in file setFields.C at line 123 Field T not found --> FOAM Warning : From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List] in file setFields.C at line 123 Field p not found Setting field region values End
I had the same problem, and i renamed the files p.orig to p, T.orig to T and U.orig to U. After, that the setFields command gave the same results as the video. I think its a problem with the openfoam7 users.
@@PM-ei3og tht buds i had the same issue , just change the 0.orig to 0 it worked , the tut file copied doesnn't have the 0 dir so one need to change it to '0"
Dear Jozsef, I'm using OpenFOAM version 6. In the tutorial file, there is no 0.org file and in folder 0, there is no magU file too. Do I need to download the files from any external source?
Hello sir, in paraview foam.foam I can't manipulate p, U, T and also there is nothing in Cell Arrays. In your case you have T, U, magU and p but in my case it doesn't show anything in the Cell Array and in your case you can choose Solid Color, cellNormals, magU, p, T, U, etc. but in my case I can only choose Solid color, cellNormals, vtkCompositeIndex, CasePath (partial), vtkBlockColors (partial). What did I do wrong?
Hi József, I really enjoy following you so far, however, I noticed that the tutorial sequences are not the same for different openFoam versions. Right now I am using openFoam11 and I can't locate tutorials/compressible/sonicFoam/laminar/shockTube. is there a way to overcome this issue or do I just have to install openFoam2.3?
Yes, I do not support the .org version anymore, because of things like this. They just randomly drop things and change syntax to break compatibility. Please use v2312 to be compatible with my tutorials and also have backwards compatibility for the future.
Sir, I am looking for simulating a jet impingement slurry erosion test. Can you please give me any suggestions for the solver that I must use? Also, how does one calculate the erosive wear rate using OpenFOAM?
+karsh tharyani I think, that for that you need both a multiphase and a compressible flow. So comperssibleInterFoam. Maybe you have to modify it. Take a look at the source code, if it contains everything, you need. As for the wear you could calculate the force on the wall, where your liquid hits the wall.
Hello manikanta, the setFieldsDict should be located inside the system folder of your case. For any reason you cannot find it over there, use the following link to get the file and place it inside the system folder. drive.google.com/open?id=1_HFRtmy83pvabUBmls-nYRIFNNv5S-lZ
Thank you sir, for your support. But now i am getting the following error when i execute the SonicFaom Reading field U Reading/calculating face flux field phi Creating turbulence model Selecting turbulence model type laminar Creating field kinetic energy K No MRF models present No finite volume options present Starting time loop Time = 1e-05 Courant Number mean: 0 max: 0 diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 PIMPLE: iteration 1 --> FOAM FATAL IO ERROR: keyword div(((rho*nuEff)*dev2(T(grad(U))))) is undefined in dictionary "/home/manikanta/OpenFOAM-in-Box-18.06v1/Othercases/OpenFOAM-2.4.x-master/tutorials/compressible/sonicFoam/laminar/shockTube_100/system/fvSchemes.divSchemes" file: /home/manikanta/OpenFOAM-in-Box-18.06v1/Othercases/OpenFOAM-2.4.x-master/tutorials/compressible/sonicFoam/laminar/shockTube_100/system/fvSchemes.divSchemes from line 30 to line 36. From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const in file db/dictionary/dictionary.C at line 441. FOAM exiting Could you please help me with this? Thankyou in advance
i'm using openfoam6 and there's many difference of file in the tutorials folder sir, should i replace it with older one from github.com/OpenFOAM/OpenFOAM-2.4.x (?)
I used back then the recent version of 2.3.0. You might, but it is a better idea to use the recent ones. On wiki.openfoam.com/Tutorials, amogst my tutorials I mention the syntax changes in recent versions. Unfortunately TH-cam doesn't allow me to change the videos.
Hi, Jozsef! When I run the simulation of 100 cells and 10000 cells, there is a FOAM FATAL ERROR " negative initial temperature T0: -0.0406692". What can I do to solve this problem?
Hello, everything works fine! Except for the ShockTube_10000 simulation. When I run SetFields I get the following message: Create mesh for time = 0 --> FOAM FATAL ERROR: (openfoam-2112 patch=220610) Cannot find file "points" in directory "polyMesh" in times "0" down to constant From virtual Foam::IOobject Foam::fileOperation::findInstance(const Foam::IOobject&, Foam::scalar, const Foam::word&) const in file global/fileOperations/fileOperation/fileOperation.C at line 1137. FOAM exiting Anyone can help me? Thank you so much Sara
Thank you very much!! But when I run setFields, it returned: Setting field default values --> FOAM Warning : From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = Foam::Vector; Foam::labelList = Foam::List] in file setFields.C at line 125 Field U not found --> FOAM Warning : From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List] in file setFields.C at line 125 Field T not found --> FOAM Warning : From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List] in file setFields.C at line 125 Field p not found Setting field region values Adding cells with centre within boxes 1((0 -1 -1) (5 1 1)) --> FOAM Warning : From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List] in file setFields.C at line 125 Field T not found --> FOAM Warning : From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List] in file setFields.C at line 125 Field p not found
when I try to run setFields for shocktube_100 I get this: --> FOAM FATAL ERROR: cannot find file "/home/alina/OpenFoam/tutorials/tutorials/compressible/sonicFoam/laminar/shockTube_100/system/system/controlDict" From function virtual Foam::autoPtr Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 532. I do have the controlDict but it is in "/home/alina/OpenFoam/tutorials/tutorials/compressible/sonicFoam/laminar/shockTube_100/system/controlDict" Any idea how to fix it?
Hello, you should run the simulation from the main directory. So try to run it like this : 1-)Firstly, you should go up to your main case file. Do not run the simulation when your directory is in one of the sub-folders of the case file. cd ~/OpenFoam/tutorials/tutorials/compressible/sonicFoam/laminar/shockTube_100 2-) Then run the simulation from this directory path with "sonicFoam" command
I want to simulate this case but when write sonicFoam, the terminal say: sonicFoam: symbol lookup error: /lib/libincompressibleTransportModels.so: undefined symbol: _ZN4Foam9UOPstream5writeERKNS_5tokenE what do i do?
Good mornign professor. Excellent Tutorials! I managed to run this tutorial with OpenFoam8. Instead of using socinFoam I used rhoPimpleFoam after running it appeared 2 warning messages: """ --> FOAM Warning : functionObjects::mag mag(U) cannot find required object U of type volScalarField --> FOAM Warning : functionObjects::mag mag(U) cannot find required object U of type surfaceScalarField """ Do you know what does that means?
Hi! Your videos are great. I have a question. To Repear your videos in paraview use the version 3.12.0. When i repeat them, does not leave the refresh botton. I'm doing some step wrong? thanks in advance. All the best.
Note for people reading the comments:
you can now create the paraView dummy file by running the command: paraFoam -touch
in the case directory
really helpful now I can see something in volume Fields (P U T)
For anyone who had the issue with the "setFields" command and returned error such as "Foam Warning: (...) Field U not found", "Foam Warning: (...) Field T not found", "Foam Warning: (...) Field P not found", try changing the "0.orig" to "0" it fixed my issue.
I've also faced the same problem.
Now, I've tried to make a copy of 0.orig with name 0 and it works completely fine 😁. But I'm not sure if there will be any future problems because of this.
Made a copy with name 0. Worked! Thanks
Hello,
Please note that "foamCalc mag U" has been deprecated and replaced by "postProcess -func sample"
Thanks!
in OpenFOAM 11, the shockTube example is now located in 'tutorials/shockFluid/shockTube/' and the application is foamRun (instead of sonicFoam)
Hi Jozsef , after I create my setFieldsDict by setting the field default values and field region values when I go to paraview and refresh I am not able to see the T,p,U in the drop down ( I am only able to see these - ' Solid color', 'vtkCompositeIndex' , 'CasePath' ,'vtkBlockColors'. And my ' toggle colour legend visibility' becomes ineffective. Please help!
Maybe an issue with "skip zero time"?
@Sandip Gewali thank you very much, it worked here with this command:)
@@OpenFOAMJozsefNagy hello sir I am also having the same issue and also "paraFoam &" is also not working it gives errors like an import error. What should I do sir?
Same issue here
At 10:54, one doesn't need to copy the files into shockTube_1000 and shockTube_10000 folder.
Also, inside shockTube_100 directory, one can create the dummy file executing the "paraFoam -touch" command, which will create a file named "shockTube_100.OpenFOAM" which can be read by Paraview. Repeat the same for the remaining two cases.
To then visualize, one can run "paraFoam &" command, the "&" being the option to run the process Paraview in the background.
Thank your for your input.
@@OpenFOAMJozsefNagy thanks for all the work you do for us. Much love 😍
Thank you so MUCH!!! József Nagy, your virtual classes are more than helpful for me!! I am really enjoying learn with you! I have started learning from scratch with you, since then, I have learned loads! Thanks a lot! 10x better than using only the user guide! :)
14:43 There is a backup folder 0.orig (just in case) because the setFieldsDict changes the files p,T and U. Thats brilliant.
When I open the case (before running the simulation) in paraview, p, T, and U don't load into it. After the simulation I still only see results from t=0,001 to t=0,007, but not for t=0. Any ideas what might be the reason for that?
Yes, uncheck Skip zero time.
These comments are amazing! Every problem I run into has a solution in the comments. Thank you @aveloxer and thank you @OpenFOAMJozsefNagy !
@@OpenFOAMJozsefNagy Thank you!
Every video i have seen so far is excellent and was great help in understanding
I am glad.
hello professor, in this case , when we note the boundary in the blockMesh using the right hand rule, the thumb is pointing towards the surface to match the results shown in the file..... this contradicts what I learned from the last video that the normal vector (thumb) is always pointing out the surface
Hello Dr. Nagy, Thanks for your awesome tutorials. I have an error while trying to run the simulation using sonicFoam : "PIMPLE: no residual control data found. Calculations will employ 2 corrector loops" ..... how can I solve this issue ?
This is a warning, the simulation should still run.
Hallo sir. When I command the blockMesh, it is created just 5 Folders inside the polyMesh.These are boundary,faces,neighbour,owner,points . I can't reach blockMeshdict folder inside the polyMesh. How can I fix that?
For newer versions of OpenFOAM blockMeshDict is in system.
Hello, Your videos are very helpful. I was trying to run the foam.foam using paraview. But I don't know why I could not load it. I followed the whole thing as you showed in the video. Your reply is highly appreciated.
Several people seem to have this problem. Try another paraview version or you can convert your results to VTK. The command is foamToVTK. You'll get a VTK folder and there you can open your results.
I had the same problem...
the problem was solved when I ran 'blockMesh' before running
paraview foam.foam &
U must have run it beforehand :)
Peace :)
Hello,
First thanks for the great tutorials.
Could you please help me, when I type setFields I get this error
--> FOAM FATAL ERROR:
cannot find file "/home/taron/OpenFOAM/openfoam6/tutorials/compressible/sonicFoam/laminar/shockeTube_baseCase/system/system/controlDict"
I noticed that it wants to find the file in system/system/ but there is only one system and controlDict is there so I tried to create that additional /system folder and put files in it and enter the command. Thish time it shows this:
--> FOAM FATAL ERROR:
Cannot find file "points" in directory "polyMesh" in times "0" down to constant
Hello, you should run the simulation from the main directory. So try to run it like this :
1-)Firstly, you should go up to your main case file. Do not run the simulation when your directory is in one of the sub-folders of the case file.
cd ~/OpenFoam/openfoam6/tutorials/compressible/sonicFoam/laminar/shockeTube_baseCase
2-) Then run the simulation from this directory path with "sonicFoam" command. If you are using the later versions of Openfoam such as openFoam-7 . You may need to type "rhoPimpleFoam" instead of "sonicFoam".
i get a big list of errors while executing the setField command, plz help and thanks for the videos
--> FOAM Warning :
From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = Foam::Vector; Foam::labelList = Foam::List]
in file setFields.C at line 125
Field U not found
--> FOAM Warning :
From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List]
in file setFields.C at line 125
Field T not found
--> FOAM Warning :
From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List]
in file setFields.C at line 125
Field p not found
Setting field region values
Adding cells with centre within boxes 1((0 -1 -1) (5 1 1))
--> FOAM Warning :
From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List]
in file setFields.C at line 125
Field T not found
--> FOAM Warning :
From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List]
in file setFields.C at line 125
Field p not found
ok i solved the problem , intially in the tutorial there was no 0 directory only 0.orig , so I created one file with 0 and it worked
@@spandanmaikap7775 Great!
Thanks for those great tutorials! I tried to increase the duration of the simulation to observe shock reflection from the sides but interestingly shock wave seems to be damped out. Is this due to the zero gradient BC that we have used to define the sides? What kind of BC shall I use?
I think using noSlip BC for U solves the problem but I am not sure for p and T.
It is due to the discretization schemes. Take a look at the following videos!
Hi. I followed the instruction but when I try to used the "sonicFoam" solver I get "FATAL ERROR" that it can not find the informations in fvSolution/fvScheme/thermophysicalProperties. I notice that content is this folder is different from content it is show in this tutorial. I try to change the data in these folder base on the tutorial but I still get error.
I just want to ask where can I get the case setup with the same folders as this in tutorial. I am using openFOAM 2012.
I had recently a live stream of the redux version of this tutorial check out that video!
@@OpenFOAMJozsefNagy thanks for reply
5:20 Why does sonicfoam use actual pressure [Pa] instead of pressure divided by density [m^2/s^2] like icofoam? Or did I misunderstand something?
No, that is correct. If you take a look at the compressible Navier Stokes equations, you see, that you do not divide by the constant density (because the flow is compressible i.e. the density is not constant). sonicFoam is a compressible solver. In icoFoam you solve the incompressible Navier Stokes equations, where you do divide by the constant density.
József Nagy Oh I see, it's kind of obvious now that I see what the code is doing. Kind of like how some codes solve the NS equations in non-dimensional form first, then multiply by the appropriate constants after a solution is found? I guess there's no need for the solution variables to be the actual physical quantities so long as a well-defined map exists to go between them.
Whenever I type setFields, I get this error:
Create mesh for time = 0
Reading setFieldsDict
Setting field default values
--> FOAM Warning :
From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = Foam::Vector; Foam::labelList = Foam::List]
in file setFields.C at line 123
Field U not found
--> FOAM Warning :
From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List]
in file setFields.C at line 123
Field T not found
--> FOAM Warning :
From function bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List]
in file setFields.C at line 123
Field p not found
Setting field region values
End
Did you use the correct syntax?
I guess I made a mistake somewhere. I followed your steps again and it was running fine. Thankyou :)
I had the same problem, and i renamed the files p.orig to p, T.orig to T and U.orig to U. After, that the setFields command gave the same results as the video.
I think its a problem with the openfoam7 users.
I just changed the folder name from 0.orig to 0 and the setField function worked.
@@PM-ei3og tht buds i had the same issue , just change the 0.orig to 0 it worked , the tut file copied doesnn't have the 0 dir so one need to change it to '0"
How come the sonic solver supports laminar flow? Is it for solver velocity stability?
They assume an inviscid flow.
Dear Jozsef,
I'm using OpenFOAM version 6. In the tutorial file, there is no 0.org file and in folder 0, there is no magU file too. Do I need to download the files from any external source?
In newer versions you don'T have this file. You don't need it for the simulation.
@@OpenFOAMJozsefNagy Thank you for your reply.
@@OpenFOAMJozsefNagy Dear sir,
I after running the analysis I got some pressure value other than 100000 and 10000. What may be the reason for that?
@@binilbabu9460 Oscillations?
Hi, where can I download the tutorial sonicFoam?
You should have it in the .com version of OpenFOAM.
Hello sir,
in paraview foam.foam I can't manipulate p, U, T and also there is nothing in Cell Arrays. In your case you have T, U, magU and p but in my case it doesn't show anything in the Cell Array and in your case you can choose Solid Color, cellNormals, magU, p, T, U, etc. but in my case I can only choose Solid color, cellNormals, vtkCompositeIndex, CasePath (partial), vtkBlockColors (partial).
What did I do wrong?
Hmm. Difficult to say. Do you get some error from Paraview? Which version do you use?
József Nagy I use OpenFOAM5.0 and Ubuntu 16.04
and how can I get mag U file?
I mean which version of Paraview and is there a error message?
With e.g. the postProcess -funcs '(div(U) mag(U))' command
Hi József, I really enjoy following you so far, however, I noticed that the tutorial sequences are not the same for different openFoam versions. Right now I am using openFoam11 and I can't locate tutorials/compressible/sonicFoam/laminar/shockTube. is there a way to overcome this issue or do I just have to install openFoam2.3?
Yes, I do not support the .org version anymore, because of things like this. They just randomly drop things and change syntax to break compatibility. Please use v2312 to be compatible with my tutorials and also have backwards compatibility for the future.
How can I define multiple boxToCell.
Just line up the boxes below each other.
Sir, I am looking for simulating a jet impingement slurry erosion test. Can you please give me any suggestions for the solver that I must use? Also, how does one calculate the erosive wear rate using OpenFOAM?
+karsh tharyani I think, that for that you need both a multiphase and a compressible flow. So comperssibleInterFoam. Maybe you have to modify it. Take a look at the source code, if it contains everything, you need. As for the wear you could calculate the force on the wall, where your liquid hits the wall.
Sir, i didn't find setFiledsDict in my download .where i can find it??
Hello manikanta, the setFieldsDict should be located inside the system folder of your case. For any reason you cannot find it over there, use the following link to get the file and place it inside the system folder.
drive.google.com/open?id=1_HFRtmy83pvabUBmls-nYRIFNNv5S-lZ
This was in the tutorial, which came with OpenFOAM, but it is a simple text file so you can just copy it off the screen.
Thank you sir, for your support.
But now i am getting the following error when i execute the SonicFaom
Reading field U
Reading/calculating face flux field phi
Creating turbulence model
Selecting turbulence model type laminar
Creating field kinetic energy K
No MRF models present
No finite volume options present
Starting time loop
Time = 1e-05
Courant Number mean: 0 max: 0
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
PIMPLE: iteration 1
--> FOAM FATAL IO ERROR:
keyword div(((rho*nuEff)*dev2(T(grad(U))))) is undefined in dictionary "/home/manikanta/OpenFOAM-in-Box-18.06v1/Othercases/OpenFOAM-2.4.x-master/tutorials/compressible/sonicFoam/laminar/shockTube_100/system/fvSchemes.divSchemes"
file: /home/manikanta/OpenFOAM-in-Box-18.06v1/Othercases/OpenFOAM-2.4.x-master/tutorials/compressible/sonicFoam/laminar/shockTube_100/system/fvSchemes.divSchemes from line 30 to line 36.
From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 441.
FOAM exiting
Could you please help me with this?
Thankyou in advance
i'm using openfoam6 and there's many difference of file in the tutorials folder sir, should i replace it with older one from github.com/OpenFOAM/OpenFOAM-2.4.x (?)
I used back then the recent version of 2.3.0. You might, but it is a better idea to use the recent ones. On wiki.openfoam.com/Tutorials, amogst my tutorials I mention the syntax changes in recent versions. Unfortunately TH-cam doesn't allow me to change the videos.
Great series of videos! Like it! Doing every step. I see many times you talk "uncomment" in the meainig of "comment out" :-)
pki79 Well, I'm not a native speaker.
that word seems to exist.
Hi, Jozsef! When I run the simulation of 100 cells and 10000 cells, there is a FOAM FATAL ERROR " negative initial temperature T0: -0.0406692". What can I do to solve this problem?
Which solver do you execute?
sonicFoam
I have the same problem. Did you solve it @Stan Zhou ?
@@OpTimus0603 me too :(
Hello, everything works fine! Except for the ShockTube_10000 simulation. When I run SetFields I get the following message:
Create mesh for time = 0
--> FOAM FATAL ERROR: (openfoam-2112 patch=220610)
Cannot find file "points" in directory "polyMesh" in times "0" down to constant
From virtual Foam::IOobject Foam::fileOperation::findInstance(const Foam::IOobject&, Foam::scalar, const Foam::word&) const
in file global/fileOperations/fileOperation/fileOperation.C at line 1137.
FOAM exiting
Anyone can help me? Thank you so much
Sara
Thank you very much!! But when I run setFields, it returned:
Setting field default values
--> FOAM Warning :
From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = Foam::Vector; Foam::labelList = Foam::List]
in file setFields.C at line 125
Field U not found
--> FOAM Warning :
From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List]
in file setFields.C at line 125
Field T not found
--> FOAM Warning :
From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List]
in file setFields.C at line 125
Field p not found
Setting field region values
Adding cells with centre within boxes 1((0 -1 -1) (5 1 1))
--> FOAM Warning :
From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List]
in file setFields.C at line 125
Field T not found
--> FOAM Warning :
From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List]
in file setFields.C at line 125
Field p not found
Do you have a field "p" in 0?
when I try to run setFields for shocktube_100 I get this:
--> FOAM FATAL ERROR:
cannot find file "/home/alina/OpenFoam/tutorials/tutorials/compressible/sonicFoam/laminar/shockTube_100/system/system/controlDict"
From function virtual Foam::autoPtr Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 532.
I do have the controlDict but it is in "/home/alina/OpenFoam/tutorials/tutorials/compressible/sonicFoam/laminar/shockTube_100/system/controlDict"
Any idea how to fix it?
Hello, you should run the simulation from the main directory. So try to run it like this :
1-)Firstly, you should go up to your main case file. Do not run the simulation when your directory is in one of the sub-folders of the case file.
cd ~/OpenFoam/tutorials/tutorials/compressible/sonicFoam/laminar/shockTube_100
2-) Then run the simulation from this directory path with "sonicFoam" command
I want to simulate this case but when write sonicFoam, the terminal say:
sonicFoam: symbol lookup error: /lib/libincompressibleTransportModels.so: undefined symbol: _ZN4Foam9UOPstream5writeERKNS_5tokenE
what do i do?
Good mornign professor. Excellent Tutorials!
I managed to run this tutorial with OpenFoam8.
Instead of using socinFoam I used rhoPimpleFoam
after running it appeared 2 warning messages:
"""
--> FOAM Warning : functionObjects::mag mag(U) cannot find required object U of type volScalarField
--> FOAM Warning : functionObjects::mag mag(U) cannot find required object U of type surfaceScalarField
"""
Do you know what does that means?
This has something to do with the functionObject incontrolDict, not the simulation itself.
Hi! Your videos are great. I have a question. To Repear your videos in paraview use the version 3.12.0. When i repeat them, does not leave the refresh botton. I'm doing some step wrong? thanks in advance. All the best.
+Martín García As far as I know, your don't have this button in older versions. I use the newer versions (4.x and upwards).
I don't have 0 dir instead i have 0.orig. Can anyone help me how to get 0 file from 0.orig
Make a copy
@@OpenFOAMJozsefNagy after making a copy and naming it to 0 I'm not getting p U T in paraview.
@@chintalapudirohitmanikanta4492 Uncheck "skip zero time"
Can you please tell me how to do that
@@chintalapudirohitmanikanta4492 In Paraview you have a checkbox. ALso I have a video on it.
Really A GREAT Thank you Man and GOD bless you