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

[openSmoke] LaminarSMOKE - Missing profiling.H

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2019, 17:11
Smile LaminarSMOKE - Missing profiling.H
  #1
New Member
 
Hafiz Ahmad
Join Date: May 2019
Location: Brunei
Posts: 19
Rep Power: 7
mdhfiz is on a distinguished road
Recently, I am trying to install LaminarSMOKE (built under OpenFOAM framework) but it seems that when I was trying to compile a file of LaminarSMOKE - "boundaryConditionsOpenSMOKE++", this was printed: "make *** No rule to make target '~/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/profiling.H', needed by Make/linux64GccDPInt640pt/backwardDiffusion/baclwardDiffusionFvPatchScalarField.C.dep'. Stop."

I referred to several threads and I can't seem to find the problem why. All I'm sure is the file profiling.H is missing and it's a missing from OF. I have checked my installation by using "icoFoam -help" and it printed details of OF. I am using OF 6.

My question is, could there be something wrong with my installation that profiling.H file is missing in my OF? Thanks!
mdhfiz is offline   Reply With Quote

Old   May 16, 2019, 19:36
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Depends on when you downloaded the laminarSMOKE source code, because it looks like they have recently starting to add support for OpenFOAM versions from OpenCFD at OpenFOAM.com. Furthermore, it's only in the versions from OpenFOAM.com that "profiling.H" exists, because the versions from the OpenFOAM Foundation do not have this feature.

So, the quickest solution that might work, but I haven't tested, is that you checkout a slightly older version of laminarSMOKE from the Git repository, by running these commands from inside the main source code folder for laminarSMOKE:
Code:
wclean all
git checkout 1c19a021638bbb2286bf596d0c425b672c5d6b93 -b lastCommitOF6
With luck, this works as intended, since it was the last commit that strictly supported OpenFOAM 6.

If this works, then please report the issue you have gotten on the Issue tracker for this project: https://github.com/acuoci/laminarSMOKE/issues
__________________
wyldckat is offline   Reply With Quote

Old   May 17, 2019, 14:33
Default
  #3
New Member
 
Hafiz Ahmad
Join Date: May 2019
Location: Brunei
Posts: 19
Rep Power: 7
mdhfiz is on a distinguished road
I followed your advice and ran "wclean all" inside the main folder of LaminarSMOKE source folder. After that, out of curiosity, I ran "wmake" and the error did not show up and it was compiled. I'm not sure what happened and how that solve the problem.

After that I compiled each of the solver and I received the following:

Code:
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    unknown option: '-I../../libs/radiationOpenSMOKE++/lnInclude'

Usage: wmakeLnInclude [OPTION] dir

options:
  -update | -u      update
  -silent | -s      use 'silent' mode (do not echo command)
  -help   | -h      print the usage

    Link all the source files in the <dir> into <dir>/lnInclude

Note
    The '-u' option forces an update when the lnInclude directory already exists
    and changes the default linking from 'ln -s' to 'ln -sf'.

    wmakeLnInclude error: base directory \ does not exist
This was the file that I managed to compile earlier. It also tried to make dependency list for source file but no such file was found:

Code:
Making dependency list for source file laminarSMOKEpostProcessor.C
could not open file AtomicComposition.h for source file laminarSMOKEpostProcessor.C due to No such file or directory
could not open file ThermoPolicy_CHEMKIN.hpp for source file laminarSMOKEpostProcessor.C due to No such file or directory
could not open file ReactionPolicy_CHEMKIN.hpp for source file laminarSMOKEpostProcessor.C due to No such file or directory
...
For validation, I tried one of the tutorials (with little expectation) and this pop up:

Code:
Fatal error:  The ../../../../kinetic-mechanisms/GLOBAL_H2_1step/kinetics/kinetics.xml file does not exist
Press enter to exit...
I know there are a few errors here and there but I think the root of the problem lies at:

Code:
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    unknown option: '-I../../libs/radiationOpenSMOKE++/lnInclude'
I'm slightly confused on how this error came up. I checked the directory and it seems to be there. I hope I can run this software soon. (I was not sure if I should've create a new thread because it's still the same installation process). Thanks for the help btw!

Last edited by wyldckat; May 18, 2019 at 14:08. Reason: Added [CODE][/CODE] markers
mdhfiz is offline   Reply With Quote

Old   May 18, 2019, 14:13
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick questions:
  1. Which exact steps did you take to try and build this toolkit?
  2. I ask this because it depends on which "mybashrc.*" file you modified, how you modified it and how you then used it. Because at the very top of this file is the need to identify which OpenFOAM version you're using.
wyldckat is offline   Reply With Quote

Old   May 18, 2019, 16:56
Smile
  #5
New Member
 
Hafiz Ahmad
Join Date: May 2019
Location: Brunei
Posts: 19
Rep Power: 7
mdhfiz is on a distinguished road
1. I followed the steps from README text as far as I could.
2. I'm using mybashrc.minimalist file.

Let me elaborate what 1. more:
(a) First, I get into the source file of LaminarSMOKE.
(b) Chose mybashrc.minimalist and adjusted the paths and also the OF version.
(c) Get into terminal and set things up to OF environment by alias "of6".
(d) source mybashrc.minimalist.
(e) compiled both boundaryConditionsOpenSMOKE++ and radiationOpenSMOKE++ by wmake.
(f) compiled the solvers by wmake.
(g) compiled the checkin pre-processor by wmake.

This is mybashrc.minimalist (Only including what I had changed.)

#OpenFOAM VERSION (22, 23, 24, 30, 40, 50, 60, 1000)
#dev version is equivalent to >= 1000
export OPENFOAM_VERSION='-DOPENFOAM_VERSION=60'

#If OpenFOAM dev version is used, this must be equal to 1
export DEVVERSION='-DDEVVERSION=1'

#Compulsory path
export EIGEN_LIBRARY_PATH=/home/hafiz/Documents/eigen-eigen-323c052e1731/
export BOOST_LIBRARY_PATH=/usr/include/boost
export RAPIDXML_LIBRARY_PATH=/usr/include/rapidxml

I set DDEVVERSION to 1 because apparently for OF6 it should be 1. Setting it to 0 won't compile the libraries.

Thanks for the help there btw. Appreciate the help.. I know its the weekend!
mdhfiz is offline   Reply With Quote

Old   June 11, 2020, 15:15
Default
  #6
New Member
 
Join Date: Apr 2019
Posts: 10
Rep Power: 7
Lehaibmo is on a distinguished road
How did you fix the issue as I am trying to compile laminarSMOKE with of6 as wel?

are you sure that this is the correct way -DOPENFOAM_VERSION=60?
Lehaibmo is offline   Reply With Quote

Reply

Tags
laminarsmoke, openfoam, profiling.h


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
[ANSYS Meshing] missing internal faces and uncovered faces after redifining parts containing surface. grv ANSYS Meshing & Geometry 2 December 9, 2016 05:38
what is syntax error : missing ')' before ';' aleisia Fluent UDF and Scheme Programming 8 March 10, 2015 16:42
[openSmoke] OpenFoam LaminarSmoke parallelization error nashiong OpenFOAM Community Contributions 10 February 17, 2015 15:31
[OpenFOAM] Xlib: extension "GLX" missing on display goldbeard ParaView 5 March 24, 2013 14:12
errors when installing openfoam2.1 on ubuntu12.o4 hewei OpenFOAM Installation 5 May 29, 2012 08:43


All times are GMT -4. The time now is 21:19.