CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

pisoCentralFoam and dynamicMeshDict

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2016, 14:01
Default pisoCentralFoam and dynamicMeshDict
  #1
New Member
 
Lewis
Join Date: Dec 2015
Posts: 14
Rep Power: 10
levvis is on a distinguished road
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
levvis is offline   Reply With Quote

Old   January 20, 2016, 14:20
Default
  #2
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
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")
mkraposhin is offline   Reply With Quote

Old   February 10, 2016, 06:40
Default
  #3
New Member
 
Lewis
Join Date: Dec 2015
Posts: 14
Rep Power: 10
levvis is on a distinguished road
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?
levvis is offline   Reply With Quote

Old   February 10, 2016, 06:42
Default
  #4
New Member
 
Lewis
Join Date: Dec 2015
Posts: 14
Rep Power: 10
levvis is on a distinguished road
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
levvis is offline   Reply With Quote

Old   February 11, 2016, 11:11
Default
  #5
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
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?
mkraposhin is offline   Reply With Quote

Old   February 11, 2016, 13:17
Default
  #6
New Member
 
Lewis
Join Date: Dec 2015
Posts: 14
Rep Power: 10
levvis is on a distinguished road
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?
levvis is offline   Reply With Quote

Old   February 11, 2016, 19:06
Default
  #7
New Member
 
Lewis
Join Date: Dec 2015
Posts: 14
Rep Power: 10
levvis is on a distinguished road
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!
levvis is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 15:57.