|
[Sponsors] |
February 8, 2021, 14:05 |
Cannot run simpleFoam for turbineSiting
|
#1 |
New Member
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5 |
Hi,
I want to use the actuator disk model for a university project I am doing. I am running on Mac OSX 10.14.6. I am trying to use the turbineSiting tutorial ($FOAM_TUTORIALS/incompressible/simpleFoam/turbineSiting). I can successfully run blockMesh but when I run simpleFoam I get the error: --> FOAM FATAL ERROR: (openfoam-2012) cannot find file "/home/ofuser/workingDir/turbineSiting/0/p" From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::rea dStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 547. FOAM exiting I not sure what to do here as the pressure p file is definitly there. It might be worth noting that the folder '0' is actually named '0.orig' for me (unlike some of the other tutorials). If I manually change it back to '0' I then get the error: No MRF models present Creating finite volume options from "constant/fvOptions" Selecting finite volume options type actuationDiskSource Source: disk1 - selecting cells using cellSet actuationDisk1 --> FOAM FATAL ERROR: (openfoam-2012) cannot find file "/home/ofuser/workingDir/turbineSiting/constant/polyMesh/sets/actuationDisk1" From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::rea dStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 547. FOAM exiting The 'sets' and 'actuationDisk1' directory also doesnt exist, but I'm at a loss as to go from here really. |
|
February 8, 2021, 16:37 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
You need either execute `./Allrun` or need to follow the commands inside the `Allrun`.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
February 9, 2021, 08:07 |
|
#3 |
New Member
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5 |
Hi, thanks for the reply! I did try running Allrun but when I check the log.simpleFoam script afterwards it contains the same errors as the one I posted above (cannot find file etc). The only difference is that the error is recorded for each parallel processor this time, but the error itself is the same.
|
|
February 9, 2021, 16:30 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
interesting. let me try to run the tutorial on my local workstation tomorrow. will let you know.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
February 9, 2021, 17:40 |
|
#5 |
Senior Member
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 19 |
It may be that the following bit within the Allrun script is not working...
Code:
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions Code:
echo $WM_PROJECT_DIR |
|
February 10, 2021, 07:50 |
|
#6 |
New Member
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5 |
Okay thank you. I think a problem was that after I ran the case using blockMesh and simpleFoam and got the error, I used used ./Allclean to clean the generated case files. When I ran ./Allrun I got the errors I posted above. Instead I copied the case again fresh from the tutorial directory and when I run ./Allrun then it converged. I can also successfully view the results in paraview.
I'm still confused however about how to run the case without ./Allrun. I want to use the actuator disk for a project I'm doing but I don't want to have to run the parallel scripts every time I use it. I also wish to cut the mesh down quite a bit as I intent to run a simulation in 2D. |
|
February 10, 2021, 11:02 |
|
#7 |
New Member
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5 |
Also, when I run the RunFunctions line it tells me I don't have permission, and when I run echo $WM_PROJECT_DIR I get: /usr/lib/openfoam/openfoam2012
|
|
February 10, 2021, 16:07 |
|
#8 | |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
I kindly suggest you to learn OpenFOAM a bit more by starting to examine the tutorials. The links below may also help.
Quote:
`Allrun` is a script containing the commands to run the tutorial. Open it and examine it.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
||
March 4, 2021, 06:55 |
|
#9 |
New Member
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5 |
Hi,
In the past few weeks I've been learning much more about the case and have adapted it to my own specific problem, however the fvOptions file still doesn't seem to be working on my machine. It simulates the momentum source but seems to be invariant in it's effect regardless of how I edit the file. For example, if I take the turbineSiting tutorial, completely unaltered, and then switch the diskDir to (-1,0,0) instead of (1,0,0), there is no noticeable change to the results. Similiarly, if I increase C_p and C_t to ridiculously high values (up to say 100) there is also no change. Additionally, if I switch sink to false (from true), simpleFoam returns an IO error with no other explanation. Do you have any idea what this might be? SHM seems to mesh the turbine area well and topoSet is successfully marking enough cells as momentum sources. |
|
March 4, 2021, 18:44 |
|
#10 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Let me run the case, will let you know.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
March 6, 2021, 14:22 |
|
#11 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
still pending from my side - I'm sorry. (pef) it is in my mind and list.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
March 8, 2021, 07:28 |
|
#12 |
New Member
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5 |
No worries, thanks a lot for getting back to me.
I have now switched to using CFDDFC on amazon's web services to run my simulations. I can confirm that there is something wrong with the mac installation files, as I can now run the simulations perfectly with my chosen geometry. Kim Last edited by KimBest; March 10, 2021 at 08:17. |
|
Tags |
mac os, simplefoam, turbinesiting |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simpleFoam tutorial PitzDaily using Reynolds stress tensor (LRR RASModel) | dlahaye | OpenFOAM Running, Solving & CFD | 24 | August 4, 2023 15:29 |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 19:45 |
parallell run --> error (probably due to meshing) | aylalisa | OpenFOAM Running, Solving & CFD | 0 | February 2, 2014 14:13 |
Problem run simpleFoam | ynos | OpenFOAM Running, Solving & CFD | 1 | December 18, 2013 12:13 |
Trying to run a benchmark case with simpleFoam | spsb | OpenFOAM | 3 | February 24, 2012 10:07 |