|
[Sponsors] |
November 30, 2015, 10:45 |
adding new fvm class
|
#1 |
Senior Member
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 14 |
Hello,
I am trying to add another fvm solver to my OpenFOAM installation. As usual, I copied some example, in this case, the easiest, I think. So, I thought fvmSup.C and fvmSup.H would be a good start. I changed the names of the copied files into something like fvmSumDiff, the class name Sp into something like SurSumDiff. There is only one entry, which is the vf volumeField. What strikes me is that I cannot find where the operator is called. I added fvmSumDiff.H to the fvm.H file. I cannot find any reference in the make option file though. I compiled that stuff in the finiteVolume directory and there was no error. However, compiling my custom application solver, I get the following error message: HTML Code:
$ wmakeMaking dependency list for source file interFoamcrtc.Ccould not open file fvmSumDiff.H for source file interFoamcrtc.C due to No such file or directorySOURCE=interFoamcrtc.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/twoPhaseMixture/lnInclude -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/lnInclude -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/interfaceProperties/lnInclude -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/fvOptions/lnInclude -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -IlnInclude -I. -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/interFoamcrtc.oIn file included from /home/dw/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/fvCFD.H:10:0, from interFoamcrtc.C:40:/home/dw/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/fvm.H:48:24: schwerwiegender Fehler: fvmSumDiff.H: Datei oder Verzeichnis nicht gefundenKompilierung beendet. Thanks, Daniel |
|
December 14, 2015, 09:53 |
|
#2 |
Senior Member
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 14 |
This topic is settled. It works, the error above is unrelated. There is no file in the make folder that needs to be changed. Compiling needs to be done in the application solver only, in src/finiteVolume no compiling is necessary.
Regards, Daniel |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The udf.h headers are unable to open- in VISUAL STUDIO 13 | sanjeetlimbu | Fluent UDF and Scheme Programming | 4 | May 2, 2016 05:38 |
chtMultiRegionSimpleFoam | samiam1000 | OpenFOAM Running, Solving & CFD | 39 | March 31, 2016 08:43 |
chtMultiRegionFoam, adding a member to an existing class (regionProperties) | romain.h | OpenFOAM Running, Solving & CFD | 1 | October 10, 2012 15:05 |
Adding a user application class | Rasmus Gjesing (Gjesing) | OpenFOAM Pre-Processing | 57 | February 3, 2010 03:45 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 20:30 |