|
[Sponsors] |
Kind request for help to implement new solver in dbns |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 22, 2019, 23:38 |
Kind request for help to implement new solver in dbns
|
#1 |
Member
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 8 |
Governing Equation (2D):
Shallow water droplet equation. Ut + A(U)x + B(U)y = 0 where, U = [rho rho*u rho*v], A = [rho*u, rho*u^2+rho^2, rho*u*v], B = [rho*v, rho*u*v, rho*v^2+rho^2] I am trying diccretize the convective fluxes by Roe upwind scheme. I implimented following steps:
p { margin-bottom: 0.1in; line-height: 115%; } I think compilation was successful. I am attaching the message after compilation: “ dbnsFlux/roeDropletFlux/roeDropletFlux.C:86:18: warning: unused variable ‘qTildeSquare’ [-Wunused-variable] const scalar qTildeSquare = magSqr(UTilde); ^ '/home/bidesh/foam/foam-extend-4.0/lib/linux64GccDPOpt/libdbns.so' is up to date. + wmake libso dbns. + wmake libso immersedBoundary/immersedBoundary '/home/bidesh/foam/foam-extend-4.0/lib/linux64GccDPOpt/libimmersedBoundary.so' is up to date. ............ + wmake libso immersedBoundary/immersedBoundaryDynamicMesh '/home/bidesh/foam/foam-extend-4.0/lib/linux64GccDPOpt/libimmersedBoundaryDynamicFvMesh.so' is up to date. + cd cudaSolvers + ./Allwmake No nvcc - CUDA not available. “ Last edited by BSengupta; August 23, 2019 at 01:02. |
|
August 23, 2019, 01:04 |
|
#2 |
Member
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 8 |
Next I created a directory in applications under compressible as dbnsDropletTurbFoam from dbnsTurbFoam.
I implimented following steps:
I made the necessary changes in the Make file. In files: dbnsDropletTurbFoam.C EXE = $(FOAM_USER_APPBIN)/dbnsDropletTurbFoam and in options: EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel \ -I$(LIB_SRC)/dbns/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lbasicThermophysicalModels \ -lspecie \ -lcompressibleTurbulenceModel \ -lcompressibleRASModels \ -lcompressibleLESModels \ -ldbns \ -llduSolvers Although many of the libraries are not required, but still I retained it unchanged. |
|
August 23, 2019, 01:07 |
|
#3 |
Member
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 8 |
Now I am receiving following errors after compilation with wmake:
“ /home/bidesh/foam/bidesh-4.0/applications/bin/linux64GccDPOpt/dbnsDropletTurbFoam /home/bidesh/foam/foam-extend-4.0/lib/linux64GccDPOpt/libdbns.so: undefined reference to `Foam::basicNumericFlux1::destroystateConstructorT ables()' /home/bidesh/foam/foam-extend-4.0/lib/linux64GccDPOpt/libdbns.so: undefined reference to `Foam::basicNumericFlux1::constructstateConstructo rTables()' /home/bidesh/foam/foam-extend-4.0/lib/linux64GccDPOpt/libdbns.so: undefined reference to `Foam::basicNumericFlux1::stateConstructorTablePtr _' collect2: error: ld returned 1 exit status /home/bidesh/foam/foam-extend-4.0/wmake/Makefile:159: recipe for target '/home/bidesh/foam/bidesh-4.0/applications/bin/linux64GccDPOpt/dbnsDropletTurbFoam' failed make: *** [/home/bidesh/foam/bidesh-4.0/applications/bin/linux64GccDPOpt/dbnsDropletTurbFoam] Error 1 ” Then I went through online resources and applied wmake libso, which seemed to have compiled successfully with the following message: “ /home/bidesh/foam/foam-extend-4.0/src/foam/lnInclude -I/home/bidesh/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/dbnsDropletTurbFoam.o 'libNULL.so' is up to date. ” But the compilation was not sucessful as it is not recognising dbnsDropletTurbFoam. “ dbnsDropletTurbFoam: command not found ” I am unable to understand the mistake, can you kindly suggest me to overcome this problem. I apologies for such big post, but I wanted to explain the problem that I am encountering. Thank you, Bidesh. |
|
Tags |
compilation error, dbnsfoam, foam ext 4.0, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Saving ParaFoam views and case | sail | ParaView | 9 | November 25, 2011 16:46 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
Kind request for a paper | CFD Student | Main CFD Forum | 0 | December 3, 2007 16:28 |
kind request for papers. | CFD Student | Main CFD Forum | 0 | November 14, 2005 17:13 |
compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 2, 2003 00:32 |