|
[Sponsors] |
May 22, 2006, 09:37 |
Compile calcMassFlowC
|
#1 |
Guest
Posts: n/a
|
Hi,
Has anybody compiled calcMassFlow.C with OpenFoam 1.3 or does a new version of this file which is compatible with OpenFoam 1.3 exist? I need help. Thank you |
|
May 22, 2006, 10:27 |
Where is the file located ?
|
#2 |
New Member
Rolf Hansen
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
Where is the file located ?
Rolf |
|
May 22, 2006, 20:29 |
@aurore: the file still works
|
#3 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
@aurore: the file still works for 1.3 you only have to change the fie Make/options (see http://openfoamwiki.net/index.php/HowTo_port_from _older_versions_to_13)
(to be honest, I just wrote this, hope it helps) @rolf: my guess is that aurore is refering to http://openfoamwiki.net/index.php/Contrib_calcMas sFlow
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
May 23, 2006, 03:57 |
Hello Bernhard
I cannot com
|
#4 |
New Member
Rolf Hansen
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
Hello Bernhard
I cannot compile calcMassFlow, as I don't have the neccesary libraries. I can see a link to FaceSetUtilities in Make/options: -I$(WM_PROJECT_USER_DIR)/Libraries/cellFaceSetUtilities/lnInclude This is obviously not a standard OpenFOAM library. Thanks Rolf |
|
May 23, 2006, 06:23 |
Hello Bernhard,
I have alwa
|
#5 |
Guest
Posts: n/a
|
Hello Bernhard,
I have always an error when I compile calcMassFlow.c This is the message : SOURCE=calcMassFlow.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/aurore/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/aurore/OpenFOAM/OpenFOAM-1.3/src/cfdTools/general/lnInclude -I/home/aurore/OpenFOAM/OpenFOAM-1.3/src/meshTools/lnInclude -I/home/aurore/OpenFOAM/aurore-1.3/Libraries/cellFaceSetUtilities/lnInclude -I/home/aurore/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/calcMassFlow.o calcMassFlow.C:36:30: error: FaceSetUtilities.H: No such file or directory calcMassFlow.C:37: error: ´FaceSetUtilities´ is not a namespace-name calcMassFlow.C:37: error: expected namespace-name before ´;´ token calcMassFlow.C: In function ´int main(int, char**)´: calcMassFlow.C:105: error: ´flipSet´ was not declared in this scope calcMassFlow.C:105: error: template argument 1 is invalid calcMassFlow.C:105: error: invalid type in declaration before ´=´ token calcMassFlow.C:105: error: ´checkFaceSetSides´ was not declared in this scope calcMassFlow.C:111: error: ´flips´cannot be used as a function make: *** [Make/linuxGcc4DPOpt/calcMassFlow.o] Error 1 Thank you for your help Aurore |
|
May 23, 2006, 07:17 |
Sorry Aurore, Sorry Rolf!
Y
|
#6 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Sorry Aurore, Sorry Rolf!
You are absolutely right and it's my fault. Let me explain the chronology of things 1. I posted the original calcMassFlow (then everything worked) 2. I separated some things concerning faceSets into a library 3. I forgot about the library and posted the updated calcMassFlow (I even checked by downloading and recompiling, but of course I've got the library installed so .....) I will update that (should be available today or tomorrow)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
May 23, 2006, 10:23 |
OK. The library can be downloa
|
#7 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
OK. The library can be downloaded from the Wiki-Page of calcMassFlow.
(The library currently only consists of only one function so if you want to you can copy the function to the main source file instead of installing the library)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
July 11, 2006, 03:30 |
Hi, I still have the problem.
|
#8 |
Member
Dihao Tang
Join Date: Mar 2009
Posts: 78
Rep Power: 17 |
Hi, I still have the problem. First of all, if I downloaded the files, where should I store these files? I put both files in /workdir/flux1/e7guest/OpenFOAM/OpenFOAM-1.3/src. Because it complained that FaceSetUtilities.H cannot be found, I copied FaceSetUtilities.H from library to the source file calcMassFlow, then compilation was ok. I moved calcMassFlowDict to the system directory of my solver case, say sonicTurbFoam/testCase/system, specified the patches in this dictionary. Last I ran the case, but no information was output. I am confused about this. Did I do something wrong? Thank you!
|
|
July 11, 2006, 05:02 |
Sorry, forget about the questi
|
#9 |
Member
Dihao Tang
Join Date: Mar 2009
Posts: 78
Rep Power: 17 |
Sorry, forget about the question
|
|
July 3, 2008, 14:16 |
I'm having trouble compiling y
|
#10 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
I'm having trouble compiling your code, too.
I have download the tool and the library and put them in seperated directories in /postProcessing/ I did a wmake libso in the cellFaceSetUtilities directory and a wmake in the calcMassFlow dirctory. The last one is reading like this: SOURCE=calcMassFlow.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/sega/OpenFOAM/OpenFOAM-1.4.1/src/cfdTools/lnInclude -I/home/sega/OpenFOAM/OpenFOAM-1.4.1/src/cfdTools/general/lnInclude -I/home/sega/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -I/home/sega/OpenFOAM/sega-1.4.1/Libraries/cellFaceSetUtilities/lnInclude -IlnInclude -I. -I/home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/calcMassFlow.o calcMassFlow.C:33:19: error: fvCFD.H: No such file or directory calcMassFlow.C:36:30: error: FaceSetUtilities.H: No such file or directory calcMassFlow.C:37: error: 'FaceSetUtilities' is not a namespace-name calcMassFlow.C:37: error: expected namespace-name before ';' token In file included from /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/addTimeOptions.H:1, from calcMassFlow.C:45: /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/addConstantOption.H: In function 'int main(int, char**)': /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/addConstantOption.H:1: error: 'argList' has not been declared /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/addConstantOption.H:2: error: 'argList' has not been declared In file included from /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/addTimeOptions.H:2, from calcMassFlow.C:45: /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/addTimeOption.H:1: error: 'argList' has not been declared In file included from /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/addTimeOptions.H:3, from calcMassFlow.C:45: /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/addLatestTimeOption.H: 1: error: 'argList' has not been declared In file included from calcMassFlow.C:47: /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/setRootCase.H:1: error: 'argList' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/setRootCase.H:1: error: expected `;' before 'args' /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/setRootCase.H:3: error: 'args' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/setRootCase.H:5: error: 'FatalError' was not declared in this scope In file included from calcMassFlow.C:48: /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/createTime.H:1: error: 'Info' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/createTime.H:1: error: 'endl' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/createTime.H:5: error: variable 'Foam::Time runTime' has initializer but incomplete type /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/createTime.H:5: error: incomplete type 'Foam::Time' used in nested name specifier /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/createTime.H:6: error: 'args' was not declared in this scope In file included from calcMassFlow.C:49: /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/createMesh.H:2: error: 'nl' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/createMesh.H:4: error: 'fvMesh' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/createMesh.H:4: error: expected `;' before 'mesh' calcMassFlow.C:52: error: 'IOdictionary' was not declared in this scope calcMassFlow.C:52: error: expected `;' before 'calcMassFlowDict' calcMassFlow.C:64: error: 'wordList' does not name a type calcMassFlow.C:66: error: 'dimensionedScalar' was not declared in this scope calcMassFlow.C:66: error: expected `;' before 'rho' calcMassFlow.C:68: error: 'calcMassFlowDict' was not declared in this scope calcMassFlow.C:70: error: expected `;' before 'tmp' calcMassFlow.C:71: error: 'rho' was not declared in this scope calcMassFlow.C:71: error: 'tmp' was not declared in this scope calcMassFlow.C:77: error: 'scalar' was not declared in this scope calcMassFlow.C:77: error: expected `;' before 'scaleFactor' calcMassFlow.C:78: error: 'calcMassFlowDict' was not declared in this scope calcMassFlow.C:79: error: 'scaleFactor' was not declared in this scope calcMassFlow.C:79: error: 'readScalar' was not declared in this scope calcMassFlow.C:83: error: 'instantList' was not declared in this scope calcMassFlow.C:83: error: expected `;' before 'Times' In file included from calcMassFlow.C:86: /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOptions.H:1: error: 'label' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOptions.H:1: error: expected `;' before 'startTime' /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOptions.H:2: error: expected `;' before 'endTime' In file included from /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOptions.H:4, from calcMassFlow.C:86: /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkConstantOption.H: 4: error: 'Times' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkConstantOption.H: 7: error: 'startTime' was not declared in this scope In file included from /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOptions.H:5, from calcMassFlow.C:86: /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOption.H:3: error: expected `;' before 'time' /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOption.H:6: error: expected `;' before 'nearestDiff' /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOption.H:8: error: 'Times' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOption.H:12: error: expected `;' before 'diff' /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOption.H:13: error: 'diff' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOption.H:13: error: 'nearestDiff' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOption.H:20: error: 'startTime' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOption.H:21: error: 'endTime' was not declared in this scope In file included from /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkTimeOptions.H:6, from calcMassFlow.C:86: /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkLatestTimeOption. H:3: error: 'startTime' was not declared in this scope /home/sega/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/checkLatestTimeOption. H:3: error: 'Times' was not declared in this scope calcMassFlow.C:88: error: expected `;' before 'i' calcMassFlow.C:88: error: 'i' was not declared in this scope calcMassFlow.C:88: error: 'endTime' was not declared in this scope calcMassFlow.C:90: error: 'Times' was not declared in this scope In file included from calcMassFlow.C:94: createPhi.H:5: error: 'IOobject' was not declared in this scope createPhi.H:5: error: expected `;' before 'testPhi' createPhi.H:13: error: 'testPhi' was not declared in this scope createPhi.H:13: error: 'exists' was not declared in this scope createPhi.H:18: error: 'surfaceScalarField' was not declared in this scope createPhi.H:18: error: expected `;' before 'phi' calcMassFlow.C:96: error: 'bcNames' was not declared in this scope calcMassFlow.C:97: error: expected `;' before 'flux' calcMassFlow.C:100: error: expected `;' before 'patchIndex' calcMassFlow.C:101: error: 'patchIndex' was not declared in this scope calcMassFlow.C:102: error: 'flux' was not declared in this scope calcMassFlow.C:102: error: 'phi' was not declared in this scope calcMassFlow.C:102: error: 'sum' was not declared in this scope calcMassFlow.C:104: error: 'faceSet' was not declared in this scope calcMassFlow.C:104: error: expected `;' before 'bcSet' calcMassFlow.C:105: error: 'autoPtr' was not declared in this scope calcMassFlow.C:105: error: 'flipSet' was not declared in this scope calcMassFlow.C:105: error: 'flips' was not declared in this scope calcMassFlow.C:105: error: 'mesh' was not declared in this scope calcMassFlow.C:105: error: 'bcSet' was not declared in this scope calcMassFlow.C:105: error: 'checkFaceSetSides' was not declared in this scope calcMassFlow.C:109: error: 'faceSet' is not a class or namespace calcMassFlow.C:109: error: expected `;' before 'faceI' calcMassFlow.C:109: error: 'faceI' was not declared in this scope calcMassFlow.C:111: error: expected `;' before 'factor' calcMassFlow.C:112: error: 'flux' was not declared in this scope calcMassFlow.C:112: error: 'factor' was not declared in this scope calcMassFlow.C:112: error: 'phi' was not declared in this scope calcMassFlow.C:119: error: expected `;' before 'fluxOut' calcMassFlow.C:120: error: 'fluxOut' was not declared in this scope make: *** [Make/linuxGccDPOpt/calcMassFlow.o] Fehler 1 Whats wrong? Maybe the problem is, that I don't understand the following: Make sure that the lnInclude is in the INCLUDE-path when compiling programs that use the library. The library itself is automagically used because it goes to the $FOAM_USER_LIBBIN.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
July 3, 2008, 15:15 |
Hi Sebastian!
Don't bother.
|
#11 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi Sebastian!
Don't bother. fvCFD.H is a strong hint, that this is a pre-1.3 source. It won't compile on a current OF-installation. I think someone here on the MessageBoard posted an improved version a couple of months ago Maybe I'll put the current version on the SVN one of these days, but don't hold your breath. BTW: I never tried, but maybe the stock-utilities patchIntegrate/patchAverage might help you. Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
July 11, 2008, 08:48 |
Hello Bernhard.
Yes, the pa
|
#12 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Hello Bernhard.
Yes, the patchAverage worked. After calculating the Ucomponents I was able to calculate the average velocity and so the average mass flow rate. If you remember my post at your setParabolicInlet I used a nonuniform list to create a parabolic inflow. After comparing the desired average flow rate with the calculated value I have an error of about 0.8%. Do you think this is small enough? Sebastian
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
March 18, 2014, 05:22 |
calcMassFlow.C:36:30: fatal error: FaceSetUtilities.H: No such file or directory
|
#13 |
Senior Member
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 13 |
Hi,
I am trying to compile calcMassFlow. I have followed wiki calcMassFlow instructions but I am getting the following error. Code:
sml5kor@BMH301562:~/OpenFOAM/OpenFOAM-2.3.0/applications/calcMassFlow$ wmake Making dependency list for source file calcMassFlow.C could not open file FaceSetUtilities.H for source file calcMassFlow.C due to No such file or directory SOURCE=calcMassFlow.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/sml5kor/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/sml5kor/OpenFOAM/OpenFOAM-2.3.0/src/cfdTools/general/lnInclude -I/home/sml5kor/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/home/sml5kor/OpenFOAM/sml5kor-2.3.0/Libraries/cellFaceSetUtilities/lnInclude -IlnInclude -I. -I/home/sml5kor/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/sml5kor/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/calcMassFlow.o calcMassFlow.C:36:30: fatal error: FaceSetUtilities.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/calcMassFlow.o] Error 1 |
|
March 23, 2018, 08:43 |
|
#14 |
New Member
Arturo González
Join Date: Mar 2018
Posts: 1
Rep Power: 0 |
Hello sam.ho
How did you correct the error message? fatal error: FaceSetUtilities.H: No such file or directory compilation terminated. Can somebody help me? I'm using foam 4.0 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile the UDF | Eric | FLUENT | 7 | August 18, 2006 15:46 |
F77 Compile. | CFD User. | Main CFD Forum | 9 | November 19, 2004 15:58 |
Help to Compile UDF | chiph | FLUENT | 2 | November 2, 2003 10:14 |
compile the UDF | Li Jingping | FLUENT | 2 | April 14, 2003 22:18 |
udf c compile | Rat | FLUENT | 2 | January 14, 2003 11:05 |