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

How to create my own functionObject ?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 23, 2010, 05:12
Default How to create my own functionObject ?
  #1
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 16
panda60 is on a distinguished road
Dear all,
I use functionObjedt like following:
functions
{
extraction
{
type surfaces;
functionObjectLibs ("libsampling.so");
enabled true;
outputControl timeStep;
outputInterval 5;
surfaceFormat foamFile;
interpolationScheme cellPointFace;
fields
(
U
T
);
surfaces
(
aplane
{
type plane;
basePoint (-0.4 0 0.5);
normalVector (1.0 0 0);
}
);
}
}

my purpose is to extract a plane data of internal domain in every time step. But the file directory is not what I want.
I copy src/sampling ,and modify a little ,create another called libmysampling.so.

but when using, it displays:

--> FOAM Warning :
From function dlLibraryTable:pen(const dictionary& dict, const word& libsEntry, const TablePtr tablePtr)
in file lnInclude/dlLibraryTableTemplates.C at line 68
library "libmysampling.so" did not introduce any new entries


It seems that my own libmysampling.so doesn't take effect.
Could any one tell me how to create functionObject type ?
Thanks.
panda60 is offline   Reply With Quote

 


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
Meshing a Sphere Ajay FLUENT 10 September 3, 2016 14:18
Steps to create a quater O grid or Y grid brissyben ANSYS Meshing & Geometry 3 April 12, 2012 05:46
Actuator disk model audrich FLUENT 0 September 21, 2009 07:06
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 01:07
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 23:49.