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

How to extract part of a library?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2015, 01:03
Default How to extract part of a library?
  #1
Member
 
Di Cheng
Join Date: May 2010
Location: Beijing, China
Posts: 47
Rep Power: 15
chengdi is on a distinguished road
Hi, everyone

I am using LEMOS to do POD analysis. But I need to modify some file slightly. What is the best way to do that?

I copied
Code:
$LEMOSEXT/libLEMOS-2.3.x/postProcessing/POD
to
Code:
$WM_PROJECT_USER_DIR
and copied the Make directory in
Code:
$LEMOSEXT/libLEMOS-2.3.x/
to
Code:
$WM_PROJECT_USER_DIR/POD
And I modified files and options in Make directory.

here is my output:

Code:
make: *** No rule to make target `postProcessing/POD/PODEigenBase/PODEigenBase.C', needed by `postProcessing/POD/PODEigenBase/PODEigenBase.dep'.  Stop.
I cannot understand how wmake runs. anyone help?

I will try to use git to manage the code in $LEMOSEXT to modify the POD code

files:
Code:
PODEigenBase/PODEigenBase.C
PODOrthoNormalBase/scalarPODOrthoNormalBase.C
PODODE/PODODE.C
scalarTransportPOD/scalarTransportPOD.C

LIB = $(FOAM_USER_LIBBIN)/libPOD
options:
Code:
EXE_INC = \
 -Wno-deprecated \
 -I$(LIB_SRC)/dynamicMesh/lnInclude \
 -I$(LIB_SRC)/triSurface/lnInclude \
 -I$(LIB_SRC)/turbulenceModels \
 -I$(LIB_SRC)/transportModels \
 -I$(LIB_SRC)/finiteVolume/lnInclude \
 -I$(LIB_SRC)/meshTools/lnInclude \
 -I$(LIB_SRC)/sampling/lnInclude \
 -I$(LIB_SRC)/sampling/meshToMeshInterpolation/meshToMesh \
 -I$(LIB_SRC)/fvOptions/lnInclude \
 -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
 -I$(LIB_SRC)/turbulenceModels/LES/LESdeltas/lnInclude \
 -I$(LIB_SRC)/turbulenceModels/LES/LESfilters/lnInclude \
 -I$(LIB_SRC)/postProcessing/functionObjects/field/fieldAverage/fieldAverage \
 -I$(LIB_SRC)/postProcessing/functionObjects/field/fieldAverage/fieldAverageItem \
 -I$(LIB_SRC)/postProcessing/functionObjects/forces/lnInclude \
 -I$(LIB_SRC)/fileFormats/lnInclude \
 -I$(LIB_SRC)/turbulenceModels/incompressible/LES/LESModel


LIB_LIBS = \
 -lfiniteVolume \
 -lfluidThermophysicalModels \
 -lspecie \
 -lincompressibleTurbulenceModel \
 -lcompressibleTurbulenceModel \
 -lincompressibleRASModels \
 -lincompressibleLESModels \
 -lLESfilters \
 -lLESdeltas \
 -ltriSurface \
 -ldynamicMesh \
 -lfieldFunctionObjects \
 -lgsl \
 -lgslcblas \
 -lmeshTools \
 -lsampling \
 -lfileFormats \
 -lforces \
 -lfvOptions \
 -lLEMOS-2.3.x
chengdi 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
Importing ccm file - Creation of geometry part from boundary crevoise STAR-CCM+ 1 January 10, 2013 03:17
Modelled Part of Reynoldstresses in Channelflow LeFrog OpenFOAM Running, Solving & CFD 0 November 16, 2012 09:01
[ANSYS Meshing] Match Control on multi-body part tdbbz ANSYS Meshing & Geometry 2 September 19, 2012 19:43
How to call FORTRAN files as UDF? Ehsan-F Fluent UDF and Scheme Programming 6 September 11, 2012 11:03
how to simulate the rotation of a solid part Jiuan FLUENT 2 July 10, 2010 02:54


All times are GMT -4. The time now is 02:39.