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

[Other] Issues installting foamCalcEx on OF6

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 1, 2020, 19:12
Default Issues installting foamCalcEx on OF6
  #1
Member
 
M Malik
Join Date: Jan 2019
Posts: 49
Rep Power: 3
mmalik is on a distinguished road
So I want to use volIntegrate using foamCalcEx (installation - https://openfoamwiki.net/index.php/C...alcEx#Download)

when I try to ./Allwmake I am getting an error:

I referred to Error making a new utility code: "cyclicAMILduInterface.H: No such file or directory"

where I included

Code:
EXE_INC = \
    -I$(LIB_SRC)/meshTools/lnInclude \
    -I$(LIB_SRC)/triSurface/lnInclude \
    -I$(LIB_SRC)/surfMesh/lnInclude \
    -I$(LIB_SRC)/fileFormats/lnInclude 


LIB_LIBS = \
    -ltriSurface \
    -lsurfMesh \
    -lfileFormats
in src/meshTools/Make at the top suggested on the same thread (i.e. to put it first)

Error making a new utility code: "cyclicAMILduInterface.H: No such file or directory"

At meshTools, I wclean as per wmake error: file 'Make/linux64Gcc44DPOpt/objectFiles' could not be created and followed by wmake, that's when I get the error.

Error
Code:
m@E-10DXX4FZ6352:~/OpenFOAM/m-6/foamcalcex$ ./Allwmake 
~/OpenFOAM/m-6/foamcalcex/postProcessing ~/OpenFOAM/m-6/foamcalcex
+ wmake libo postCalc
wmake libo postCalc
+ wmake libso foamCalcFunctionsEx
wmake libso foamCalcFunctionsEx
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/home/m/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude  -IlnInclude -I. -I/home/m/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/m/OpenFOAM/OpenFOAM-6/src/OSspecific/POSIX/lnInclude   -fPIC -c calcType/calcType.C -o Make/linux64GccDPInt64Opt/calcType/calcType.o
In file included from /home/m/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/ddtScheme.C:30:0,
                 from /home/m/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/ddtScheme.H:357,
                 from /home/m/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/fvcDdt.C:28,
                 from /home/m/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/fvcDdt.H:250,
                 from /home/m/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/fvc.H:44,
                 from /home/m/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/fvCFD.H:8,
                 from calcType/calcType.H:48,
                 from calcType/calcType.C:26:
/home/m/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory
 #include "cyclicAMILduInterface.H"
                                   ^
compilation terminated.
/home/m/OpenFOAM/OpenFOAM-6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt64Opt/calcType/calcType.o' failed
make: *** [Make/linux64GccDPInt64Opt/calcType/calcType.o] Error 1

Any help is appreciated.
mmalik is offline   Reply With Quote

Old   January 2, 2020, 15:25
Default
  #2
Member
 
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 39
Rep Power: 11
gtarang is on a distinguished road
https://github.com/OpenFOAM/OpenFOAM...etc/caseDictsI think some hit and trial has to be done. Try removing all the other files and folders from your Make directory except files and options. And then wmake again. Sometimes i have faced these kind of problems for which I used this.

Other than that I think trying changing the order of lnInclude files.


PS: I think you can also use function object for your activity. Pls see if these folders are of any help

1. https://github.com/OpenFOAM/OpenFOAM...nObjects/field
2. https://github.com/OpenFOAM/OpenFOAM.../etc/caseDicts

Last edited by gtarang; January 2, 2020 at 15:25. Reason: Spelling
gtarang is offline   Reply With Quote

Old   January 4, 2020, 11:01
Default
  #3
Member
 
M Malik
Join Date: Jan 2019
Posts: 49
Rep Power: 3
mmalik is on a distinguished road
I tried different ways but unfortunately none of them are successful so far.

In regards to removing other files and folders from Make directory, I have nothing else beside file and options.

Yes I had a look at the functionsObjects but couldn't find the ones I require:

1. volIntegrate (which is available using foamCalcEx https://openfoamwiki.net/index.php/Contrib_foamCalcEx)

2. magGrad (which is available using foamCalc Use of foamCalc)

Any other way to acquire those?
mmalik is offline   Reply With Quote

Old   January 4, 2020, 12:06
Default
  #4
Member
 
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 39
Rep Power: 11
gtarang is on a distinguished road
Sorry I cannot help with compilation, after quick glance through the code at bitbucket, I can help you with magGrad utility.


Code:
postProcess -func "grad(T)"
postProcess -func "mag(grad(T))"
T is the variable name.
I check above code for OpenFOAM-6. I guess above code will work for OpenFOAM-5 onwards.



I couldn't get what volIntegrate is supposed to do. Can you explain a bit what you want to achieve through it?
gtarang is offline   Reply With Quote

Old   January 6, 2020, 03:59
Default
  #5
Member
 
M Malik
Join Date: Jan 2019
Posts: 49
Rep Power: 3
mmalik is on a distinguished road
Hi Tarang. Sorry for the late reply.

I realised the "mag(grad(T))" postProcess in another forum but thank you for helping me with that.

volIntegrate is volume integral of a field, in my case volumetric charge density.

I will try the volFieldValue function to see if I get the same results I acquired using foamCalcEx in OF231 or maybe try define operation volIntegrate .

Another way I found is including function in controlDict (volum integral of mag(U)...?)

will update which works with OF6.
mmalik is offline   Reply With Quote

Reply

Tags
foamcalcex, meshtools.h, of6, utilities

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
InterFoam: Different results in OF5 and OF6 vatavuk OpenFOAM Bugs 8 December 5, 2018 09:34
chtMultiRegionSimpleFoam issues - non-conformal meshes & residual handling... manalis OpenFOAM Running, Solving & CFD 3 October 10, 2018 18:53
Convergence issues for Flat plate with sharp edge rajnarayang FLUENT 3 June 20, 2017 12:02
[ANSYS Meshing] Multizone issues (on my project) crenaudo ANSYS Meshing & Geometry 8 April 13, 2016 02:59
Multigrid Stability Issues ThomasHermann SU2 1 November 5, 2014 16:18


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