|
[Sponsors] |
January 20, 2016, 14:01 |
pisoCentralFoam and dynamicMeshDict
|
#1 |
New Member
Lewis
Join Date: Dec 2015
Posts: 14
Rep Power: 10 |
Good day to all
I'm currently doing a project on a development of an OpenFOAM code, for use in aviation. I've done some tutorials to get to grips with Linux, OpenFOAM and the fundamentals of C++, and I've achieved the right results. I'm now trying to take a code developed by user mkraposhin, implement sHM, which I have done successfully, and edit the code slightly. The editing will be done gradually, as the code develops I'll push it to achieve more. Current objective is a simulation involving high velocity air over an aerofoil. The link to his original forum and path to github links is: http://www.cfd-online.com/Forums/ope...ntralfoam.html But I'm now getting thrown out due to not having a "dynamicMeshDict". Please see the error below: --> FOAM FATAL IO ERROR: cannot find file file: /home/lwsedgeworth/OpenFOAM/lwsedgeworth-2.4.0/run/fyp/OpenFOAM-2.3.0/aeroFoamRun/incompressible/aerofoil1/constant/dynamicMeshDict at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 73. FOAM exiting I'm new to OpenFOAM and therefore posting errors on the forum, so any information needed or suggestions on how to better show/explain my error, will be appreciated. At the moment, I've just added sHM and compiled the solver under a new name, and pisoCentralFoam doesn't use dynamicMeshDict, by the looks of things. Many thanks in advance |
|
January 20, 2016, 14:20 |
|
#2 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Hi,
It seems, that you are trying to run pisoCentralDyMFoam instead of pisoCentralFoam. If error persist, please write also which version of OF are you using Or, you are creating dynamic mesh in your new solver ("createDynamicFvMesh.H")
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
February 10, 2016, 06:40 |
|
#3 |
New Member
Lewis
Join Date: Dec 2015
Posts: 14
Rep Power: 10 |
Hi Matvey
Thanks for your fast response! Sorry I had to take some time off, due to exams and writing reports. I noticed that it's trying to run pisoCentralDyMFoam, but whenever I edit the files to rid it of Dynamic Mesh, Linux creates a copy of the original file. I do not need to use a dynamic mesh currently, but even ridding the DyM files and commands from the 'new' solver, it still attempts to use pisoCentralDyMFoam. Any suggestions on how to correct this? |
|
February 10, 2016, 06:42 |
|
#4 |
New Member
Lewis
Join Date: Dec 2015
Posts: 14
Rep Power: 10 |
I'm trying to use various threads and youtube videos to help point me in the right direction but they don't have a solver along with a sister solver for DyM. So although helpful, they do not have this critical point
Many thanks in advance |
|
February 11, 2016, 11:11 |
|
#5 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Hi,
your error seems very strange to me - because, if you are starting pisoCentralFoam, then how it can start pisoCentralDyMFoam Can you tell about your case and about you are doing?
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
February 11, 2016, 13:17 |
|
#6 |
New Member
Lewis
Join Date: Dec 2015
Posts: 14
Rep Power: 10 |
Hello
I've copied the whole pisoCentralFoam folder across to a new folder for editing, and then entered into the OpenFoam-2.4.0 directory (that's the OpenFOAM version I'm using) and then entered into the Make folder. There I edited 'files' in gedit, to my new name for the purposes of my project. Along with the header in the main source file. Then went back a directory, so I wasn't in the Make folder and compiled, but it compiled pisoCentralDyMFoam. I looked into Allwclean and Allwmake files and they both have the script: "wmake cd pisoCentralDyMFoam; wmake; cd ../" But that's just ensuring both pisoCentralFoam and pisoCentralDyMFoam are cleaned and made? |
|
February 11, 2016, 19:06 |
|
#7 |
New Member
Lewis
Join Date: Dec 2015
Posts: 14
Rep Power: 10 |
Hi Matvey
The problem has been solved. I think while using the command "./Allwmake", the pisoCentralDyMFoam was being compiled along with pisoCentralFoam. Clearly, as it has "All" in it, and in the run file it is scripted to change to the pisoCentralDyMFoam directory. Therefore using the command "./wmake" worked. Such a careless mistake. Thank you very much for your selfless approach! |
|
|
|