CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Cannot run simpleFoam for turbineSiting

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2021, 13:05
Default Cannot run simpleFoam for turbineSiting
  #1
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
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.
KimBest is offline   Reply With Quote

Old   February 8, 2021, 15:37
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
You need either execute `./Allrun` or need to follow the commands inside the `Allrun`.
HPE is offline   Reply With Quote

Old   February 9, 2021, 07:07
Default
  #3
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
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.
KimBest is offline   Reply With Quote

Old   February 9, 2021, 15:30
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
interesting. let me try to run the tutorial on my local workstation tomorrow. will let you know.
HPE is offline   Reply With Quote

Old   February 9, 2021, 16:40
Default
  #5
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 219
Rep Power: 18
tas38 is on a distinguished road
It may be that the following bit within the Allrun script is not working...

Code:
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions
If not, then you will not have access to several of the tutorial run functions. Such as "restore0Dir". Is your environment variable set correctly? Try running the following to see...

Code:
echo $WM_PROJECT_DIR
tas38 is offline   Reply With Quote

Old   February 10, 2021, 06:50
Default
  #6
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
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.
KimBest is offline   Reply With Quote

Old   February 10, 2021, 10:02
Default
  #7
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
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
KimBest is offline   Reply With Quote

Old   February 10, 2021, 15:07
Default
  #8
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
I kindly suggest you to learn OpenFOAM a bit more by starting to examine the tutorials. The links below may also help.


Quote:
I'm still confused however about how to run the case without ./Allrun.

`Allrun` is a script containing the commands to run the tutorial. Open it and examine it.
HPE is offline   Reply With Quote

Old   March 4, 2021, 05:55
Default
  #9
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
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.
KimBest is offline   Reply With Quote

Old   March 4, 2021, 17:44
Default
  #10
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Let me run the case, will let you know.
HPE is offline   Reply With Quote

Old   March 6, 2021, 13:22
Default
  #11
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
still pending from my side - I'm sorry. (pef) it is in my mind and list.
HPE is offline   Reply With Quote

Old   March 8, 2021, 06:28
Default
  #12
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
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 07:17.
KimBest is offline   Reply With Quote

Reply

Tags
mac os, simplefoam, turbinesiting


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 14:29
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
parallell run --> error (probably due to meshing) aylalisa OpenFOAM Running, Solving & CFD 0 February 2, 2014 13:13
Problem run simpleFoam ynos OpenFOAM Running, Solving & CFD 1 December 18, 2013 11:13
Trying to run a benchmark case with simpleFoam spsb OpenFOAM 3 February 24, 2012 09:07


All times are GMT -4. The time now is 11:51.