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

Kind request for help to implement new solver in dbns

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2019, 23:38
Default 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
BSengupta is on a distinguished road
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:


  • Making of two new directories in dbns. They are basicNumericFlux1 and NumericFlux1 and made all the necessary changes.


  • Making a new directory in dbnsFlux which is roeDropletFlux by changing roeFlux.


  • Compilation was made from src directory by Allmake.


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.
BSengupta is offline   Reply With Quote

Old   August 23, 2019, 01:04
Default
  #2
Member
 
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 8
BSengupta is on a distinguished road
Next I created a directory in applications under compressible as dbnsDropletTurbFoam from dbnsTurbFoam.


I implimented following steps:


  • Creation of dbnsDropletTurbFoam.C.
  • Updating createFields.H.
  • Modifying updateFields1.H and readFieldBounds1.H and placing in same directory.


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.
BSengupta is offline   Reply With Quote

Old   August 23, 2019, 01:07
Default
  #3
Member
 
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 8
BSengupta is on a distinguished road
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.
BSengupta is offline   Reply With Quote

Reply

Tags
compilation error, dbnsfoam, foam ext 4.0, openfoam


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
[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


All times are GMT -4. The time now is 17:10.