CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   adding new fvm class (https://www.cfd-online.com/Forums/openfoam-programming-development/163525-adding-new-fvm-class.html)

danny123 November 30, 2015 10:45

adding new fvm class
 
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.
Is there anybody who has an idea where to add fvmSumDiff.H?

Thanks,

Daniel

danny123 December 14, 2015 09:53

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


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