Hallo zusammen,
ich habe eine paar relativ grundlegende Fragen zum Thema "Compilieren eines Solvers". Ich habe versucht das folgende Beispiel nachzuvollziehen:
The applications are located in $WM_PROJECT_DIR/applications
◮ cd $WM_PROJECT_DIR/applications/solvers/incompressible
• Copy the icoFoam solver and put it in the
$WM_PROJECT_USER_DIR/applications directory
◮ cp -r icoFoam $WM_PROJECT_DIR/applications
• Rename the directory and the source file name, clean all the dependancies and
◮ mv icoFoam myIcoFoam
◮ cd icoFoam
◮ mv icoFoam.C myIcoFoam.C
◮ wclean
• Go the the Make directory and change files as follows:
myIcoFoam.C
EXE = $(FOAM_USER_APPBIN)/myIcoFoam
• Now compile the application with wmake in the myIcoFoam directory. rehash if
necessary.
Als Ausgabe erhalte ich von wmake:
SOURCE=my_icoFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoReposito
ry -ftemplate-depth-100 -I/home/software/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/software/OpenFOAM/OpenFOAM-2.3.1/src/sa
mpling/lnInclude -IlnInclude -I. -I/home/software/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/software/OpenFOAM/OpenFOAM-2.3.1/s
rc/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/my_icoFoam.o
'libNULL.so' is up to date.
Und es wird ein Verzeichnis mit folgenden Dateien angelegt:
-rw------- 1 stw a301 24 12. Jul 17:32 dependencies
-rw------- 1 stw a301 32 12. Jul 17:32 dependencyFiles
-rw------- 1 stw a301 0 12. Jul 17:32 dontIncludeDeps
-rw------- 1 stw a301 113 12. Jul 17:32 files
-rw------- 1 stw a301 37 12. Jul 17:32 filesMacros
-rw------- 1 stw a301 23 12. Jul 17:32 includeDeps
-rwx------ 1 stw a301 635009 12. Jul 17:32 libNULL.so
-rw------- 1 stw a301 31 12. Jul 17:32 localObjectFiles
-rw------- 1 stw a301 1069904 12. Jul 17:32 my_icoFoam.o
-rw------- 1 stw a301 40 12. Jul 17:32 objectFiles
-rw------- 1 stw a301 184 12. Jul 17:32 options
-rw------- 1 stw a301 24 12. Jul 17:32 sourceFiles
Soweit, so gut. Aber:
- Es scheint keine neue Applikation my_icoFoam angelegt zu werden. Wie würde die entsprechende Datei überhaupt aussehen (welche Endung haben)?
- Es ist auch nicht möglich my_icoFoam als Solver zu verwenden. OpenFoam kennt diesen Ausdruck einfach gar nicht. Bzw. wie müsste ich den neuen Solver ansprechen? Ist die Verwendung nicht ähnlich zu der Verwendung von jedem anderen Solver (z.B. icoFoam)? Oder muss ich da noch spezielle Links setzen oder ähnliches?
Hat jemand eine Idee was ich falsch mache bzw. was hier falsch läuft?
Schöne Grüße,
RS
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP