|
[Sponsors] |
Compile boundary condition as a new dynamic library |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 23, 2010, 13:06 |
Compile boundary condition as a new dynamic library
|
#1 |
New Member
Mohan
Join Date: Jan 2010
Posts: 4
Rep Power: 16 |
Dear All,
I am trying to Compile boundary condition as a new dynamic library. I following this tutorials: http://openfoamwiki.net/index.php/Tu....28OF-1.4.1.29 I have done the following steps : openfoam@Mohan:~/OpenFOAM/openfoam-1.6/src/finiteVolume/fields/fvPatchFields/derived$ svn checkout http://openfoam-extend.svn.sourcefor...bolicVelocity/ A parabolicVelocity/parabolicVelocityFvPatchVectorField.C A parabolicVelocity/parabolicVelocityFvPatchVectorField.H U parabolicVelocity Checked out revision 1738. I have downloaded it : openfoam@Mohan:~/OpenFOAM/openfoam-1.6/src/finiteVolume/fields/fvPatchFields/derived$ cd parabolicVelocity/ openfoam@Mohan:~/OpenFOAM/openfoam-1.6/src/finiteVolume/fields/fvPatchFields/derived/parabolicVelocity$ ls parabolicVelocityFvPatchVectorField.C parabolicVelocityFvPatchVectorField.H openfoam@Mohan:~/OpenFOAM/openfoam-1.6/src/finiteVolume/fields/fvPatchFields/derived/parabolicVelocity$ mkdir Make openfoam@Mohan:~/OpenFOAM/openfoam-1.6/src/finiteVolume/fields/fvPatchFields/derived/parabolicVelocity$ ls Make parabolicVelocityFvPatchVectorField.H parabolicVelocityFvPatchVectorField.C openfoam@Mohan:~/OpenFOAM/openfoam-1.6/src/finiteVolume/fields/fvPatchFields/derived/parabolicVelocity$ cd Make/ openfoam@Mohan:~/OpenFOAM/openfoam-1.6/src/finiteVolume/fields/fvPatchFields/derived/parabolicVelocity/Make$ vim files openfoam@Mohan:~/OpenFOAM/openfoam-1.6/src/finiteVolume/fields/fvPatchFields/derived/parabolicVelocity/Make$ vim options wmake will show the following message : openfoam@Mohan:~/OpenFOAM/openfoam-1.6/src/finiteVolume/fields/fvPatchFields/derived/parabolicVelocity/Make$ wmake libso wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file parabolicVelocityFvPatchVectorField.C SOURCE=parabolicVelocityFvPatchVectorField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/openfoam/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/openfoam/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/parabolicVelocityFvPatchVectorField.o '/home/openfoam/OpenFOAM/openfoam-1.6/lib/linuxGccDPOpt/libmyBCs.so' is up to date. openfoam@Mohan:~/OpenFOAM/openfoam-1.6/src/finiteVolume/fields/fvPatchFields/derived/parabolicVelocity$ ls lnInclude parabolicVelocityFvPatchVectorField.C parabolicVelocityFvPatchVectorField.H Make parabolicVelocityFvPatchVectorField.dep It has successfully creates "libmyBCs.so" in /home/openfoam/OpenFOAM/openfoam-1.6/lib/linuxGccDPOpt/libmyBCs.so The tutorials saying that I need to add the following line in system/controlDict file: libs ("libmyBCs.so"); The problem is I don't know where is the system/controlDict file (absolute path). some one please explain me to find system/controlDict file. Thanks & Rg Mohan L |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
compile errors of boundary condition "expDirectionMixed" | liying02ts | OpenFOAM Bugs | 2 | February 1, 2010 20:11 |
how to set up a wall boundary condition according to calculated wall shear stress? | gameoverli | OpenFOAM Pre-Processing | 1 | May 21, 2009 08:28 |
How to define a dynamic Boundary Condition? | abrahamgx | CFX | 2 | March 9, 2009 23:03 |
How to define a dynamic Boundary Condition? (New) | abrahamgx | CFX | 2 | March 9, 2009 07:43 |
Dynamic Temperature Boundary Condition | Kshitij | FLUENT | 0 | October 12, 2005 13:40 |