|
[Sponsors] |
November 1, 2016, 05:24 |
Running the Openfoam tutorials
|
#1 |
New Member
Bala
Join Date: Jul 2015
Posts: 18
Rep Power: 11 |
Hi everyone!
I am new to Openfoam and trying to run some tutorials. One such tutorial is this- https://github.com/OpenFOAM/OpenFOAM...nWithObstacles I am not able to understand the README file provided, as I am not able to figure out the functions necessary to run the case. PDR test case Step to introduce the PDR fields: 1) Create zero-size patches for wall or/and coupled baffles in the boundary file. 2) Specify the boundary contitions for these patches in the fields. 3) Create the new PDR mesh using the PDRMesh utility. It would be great if someone can help me run this tutorial. Thanks! |
|
November 9, 2016, 11:42 |
|
#2 | |
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 10 |
Try reading the README along with the Allrun script which might help. Normally running allrun script is all you need to run a case and hence you can figure it out what steps you need to follow for running a case
Quote:
2. changeDictionary specifies the boundary conditions (Step 2) 3. PDRMesh with over write option will create PDR mesh and overwrite the existing mesh(Step 3) |
||
November 9, 2016, 12:30 |
|
#3 |
New Member
Bala
Join Date: Jul 2015
Posts: 18
Rep Power: 11 |
Hi Khedar!
I am currently having issues with my system. I will try this and get back to you. However, I did read the Allrun script. I was facing some error in the changeDictionary step. I will post the error once I try it out, in 2-3 days Thanks! |
|
November 14, 2016, 05:29 |
|
#4 |
New Member
Bala
Join Date: Jul 2015
Posts: 18
Rep Power: 11 |
Hi Khedar!
When I run the 'changeDictionary' command, I get the following error. Can you help me out? balavignesh@bumblebee:~/OpenFOAM/balavignesh-4.1/run/flamePropagationWithObstacles$ changeDictionary /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 4.1-1e03d68d4f4e Exec : changeDictionary Date : Nov 14 2016 Time : 14:52:26 Host : "bumblebee" PID : 10607 Case : /home/balavignesh/OpenFOAM/balavignesh-4.1/run/flamePropagationWithObstacles nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Read dictionary changeDictionaryDict with replacements for dictionaries 1(dictionaryReplacement) Reading polyMesh/boundary file to extract patch names Loaded dictionary boundary with entries 6 ( outer ground blockedFaces baffleWall baffleCyclic_half0 baffleCyclic_half1 ) Extracted patch groups: group cyclic with patches 2 ( baffleCyclic_half0 baffleCyclic_half1 ) group wall with patches 3 ( ground blockedFaces baffleWall ) Replacing entries in dictionary dictionaryReplacement Loading dictionary dictionaryReplacement --> FOAM FATAL IO ERROR: cannot find file file: /home/balavignesh/OpenFOAM/balavignesh-4.1/run/flamePropagationWithObstacles/0/dictionaryReplacement at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 72. FOAM exiting |
|
November 14, 2016, 05:55 |
|
#5 |
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 10 |
It seems there is no dictionaryReplacement file at the specified Location..
Edited:After trying the tutorial myself. I tried running the case with Allrun script and it ran fine, without any problem. Then i tried all functions individually and again it worked fine. Don't forget to rename 0.org to 0 before running anything. Code:
cp -r 0.orig 0 blockMesh changeDictionary topoSet PDRMesh -overwrite PDRFoam Last edited by khedar; November 14, 2016 at 06:54. Reason: More detailed explanation |
|
November 15, 2016, 03:53 |
|
#6 |
New Member
Bala
Join Date: Jul 2015
Posts: 18
Rep Power: 11 |
Hey Khedar!
I tried it again. This time, I manually replaced the boundary conditions & associated values instead of using 'changeDictionary'. It worked. However, I got the same error when I ran the 'changeDictionary' function. But, once I load the solution into ParaView, I am not able to see which is the obstacle past which the flame is propagating and what the domain is, in this problem. Were you able to? If yes, can you explain me? Thanks anyways! |
|
November 23, 2016, 03:39 |
|
#7 |
New Member
Bala
Join Date: Jul 2015
Posts: 18
Rep Power: 11 |
Hi Khedar!
I successfully managed to setup my case using XiFoam. However, after a few timesteps, I am getting the janaf (temperature out of bounds) warning. Eventually, after some timesteps, the simulation stops. I searched through the posts and found some threads. But, I am not able to understand as to how I can resolve this error. Can you (or someone else) help in this regard? Thanks! |
|
November 24, 2016, 05:46 |
|
#8 |
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 10 |
Reply to post 6: did you copy 0.org Folder to 0 Folder before running the changeDictionary ?
Reply to post 7: normally out of bounds error for any field Variable is either due to Bad Mesh or improper boundary conditions..I would suggest you to do a checkMesh for your Mesh and recheck your boundary conditions.. Below is a link to a seemingly good Tutorial on XiFoam.I have no experience with it.. Good luck. http://www.tfd.chalmers.se/~hani/kur...port.pdf<br /> |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
Looking for more details on Openfoam tutorials | Balux | OpenFOAM | 0 | May 18, 2014 11:13 |
Running in parallel with a machine that doesn't have OpenFOAM | aujamal20 | OpenFOAM Running, Solving & CFD | 1 | September 14, 2013 11:08 |
Running OpenFoam on a Computer Cluster in the Cloud - cloudnumbers.com | Markus Schmidberger | OpenFOAM Announcements from Other Sources | 0 | July 26, 2011 09:18 |
Statically Compiling OpenFOAM Issues | herzfeldd | OpenFOAM Installation | 21 | January 6, 2009 10:38 |