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

[swak4Foam] [solved]fatal error: meshToMesh.H: No such file or directory (under OpenFOAM2212)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2023, 21:45
Default [solved]fatal error: meshToMesh.H: No such file or directory (under OpenFOAM2212)
  #1
Ary
New Member
 
Join Date: Apr 2023
Posts: 11
Rep Power: 3
Ary is on a distinguished road
Hello,

I installed swak4Foam under the path like this "/home/user/swak4Foam" in OpenFOAM 2212. And swak4Foam works now by typing "FunkySetFields".

When I use swak4Foam in a new solver


(mySolver/mySolver.C)

HTML Code:
#include "fvCFD.H"
#include "expressionSource.H"
...

(mySolver/Make/files)

HTML Code:
mySolver.C

EXE = $(FOAM_USER_APPBIN)/mySolver

(mySolver/Make/options)

HTML Code:
EXE_INC = \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude \
    -I../../../../../swak4Foam/Libraries/swak4FoamParsers/lnInclude/ \
    -I../../../../../swak4Foam/Libraries/swakSourceFields/lnInclude/

EXE_LIBS = \
    -lfiniteVolume \
    -lmeshTools \
    -lswak4FoamParsers \
    -lswakSourceFields

There would be en fatal error

HTML Code:
In file included from ../../../../../swak4Foam/Libraries/swak4FoamParsers/lnInclude/CommonValueExpressionDriver.H:78,
                 from ../../../../../swak4Foam/Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:57,
                 from ../../../../../swak4Foam/Libraries/swakSourceFields/lnInclude/expressionSource.H:43,
                 from laserAblation01.C:47:
../../../../../swak4Foam/Libraries/swak4FoamParsers/lnInclude/MeshesRepository.H:48:10: fatal error: meshToMesh.H: No such file or directory
   48 | #include "meshToMesh.H"
      |          ^~~~~~~~~~~~~~
compilation terminated.

(It seems like swak4Foam cannot link to the libraries of OpenFOAM entirely.)

How to fix the error then?

Thank you very much for any help!

Ary

Last edited by Ary; April 3, 2023 at 22:24. Reason: Solved
Ary is offline   Reply With Quote

Old   April 3, 2023, 22:25
Default
  #2
Ary
New Member
 
Join Date: Apr 2023
Posts: 11
Rep Power: 3
Ary is on a distinguished road
Library of sampling is also needed in Make/options
Ary 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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