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

createSolidMeshes in chtMultiRegionSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2017, 00:19
Default createSolidMeshes in chtMultiRegionSimpleFoam
  #1
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 83
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
Hi Foamers,

in chtMultiRegionSimpleFoam solver, the createSolidMeshes.H appears in the terminal as follows:

createSolidMeshes.H -> ../../solid/createSolidMeshes.H

this solver contains createMeshesPostProcess.H which calls the createMeshes.H first then the latter calls crateSolidMeshes.H

now the createMeshes.H not included directly, is that what the line in blue means? and how it was linked to appear in this way?
Saleh Abuhanieh is offline   Reply With Quote

Old   December 6, 2017, 00:24
Default
  #2
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 83
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
correction

the creatSolidMeshes not included in the solver, createMeshes is included
Saleh Abuhanieh is offline   Reply With Quote

Old   December 7, 2017, 12:06
Default
  #3
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 83
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
when I moved this solver to my project directory to recompile it under different name only, the compiler doesn't recognize the header files which were written like my first comment:
createSolidMeshes.H -> ../../solid/createSolidMeshes.H
residualControlsSolid.H -> ../../solid/residualControlsSolid.H
setRegionSolidFields.H -> ../../solid/setRegionSolidFields.H

I am receiving the following error:

Making dependency list for source file electrostaticMultiRegionFoam.C
could not open file createMeshes.H for source file electrostaticMultiRegionFoam.C due to No such file or directory
could not open file setRegionSolidFields.H for source file electrostaticMultiRegionFoam.C due to No such file or directory
could not open file residualControlsSolid.H for source file electrostaticMultiRegionFoam.C due to No such file or directory

any ideas?
Saleh Abuhanieh is offline   Reply With Quote

Old   December 8, 2017, 04:58
Default
  #4
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 21
Bloerb will become famous soon enough
I am not sure if I understood your problem correctly. However
Code:
../../solid/createSolidMeshes.H
This states that createSolidMeshes.H is included two directories above this. This means from chtMultiRegionFoam/solid/createSolidMeshes.H and not from chtMultiRegionSimpleFoam/solid/createSolidMeshes.H. Simply copy the files from that solver into your directory and you can delete those inclusion lines.
Bloerb is offline   Reply With Quote

Old   December 8, 2017, 10:14
Default
  #5
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 83
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
Thank you Bloerb!

I copied the files inside, it works.
Saleh Abuhanieh 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 06:25.