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

adding new fvm class

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2015, 10:45
Default adding new fvm class
  #1
Senior Member
 
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 14
danny123 is on a distinguished road
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 is offline   Reply With Quote

Old   December 14, 2015, 09:53
Default
  #2
Senior Member
 
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 14
danny123 is on a distinguished road
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
danny123 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
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


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