CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Trouble: Sandia UV UDF on FLUENT 12.0.16

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 24, 2010, 16:22
Question Trouble: Sandia UV UDF on FLUENT 12.0.16
  #1
New Member
 
Ryan Jones
Join Date: Mar 2009
Location: MA, USA
Posts: 7
Rep Power: 17
RPJones is on a distinguished road
I am trying to us a UV Dose UDF available from Sandia National Labs.

http://www.sandia.gov/cfd-water/uvdisinfection.htm

But it does not appear to be working right. The UDF is supposed to allow me to output a custom particle variable, in this case UV Dose, through the Reports->Discrete->Sample function. When I try to do this only a header line is produced, but no numbers are filled in.

Outside of the reporting problem, the UDF appears to work. I am able to view particle tracks colored by the user defined dose. Although I belive I could possibly output data from the particle track portion, having the data in the DPM form would be ideal for post processing.

The UDF is provided with a shared library. If I try to rebuild the library, with changes to the source files, I get the following:

for d in lnx86/[23]*; do \
( \
cd $d; \
for f in ../../src/*.[ch] ../../src/makefile; do \
if [ ! -f `basename $f` ]; then \
echo "# linking to" $f "in" $d; \
ln -s $f .; \
fi; \
done; \
echo ""; \
echo "# building library in" $d; \
if [ "" = "1" ]; then \
echo "# using gcc64"; \
make ARCHC=gcc64 -k>makelog 2>&1; \
else \
if [ "" = "1" ]; then \
echo "# using gcc"; \
make ARCHC=gcc -k>makelog 2>&1; \
else \
make -k>makelog 2>&1; \
fi; \
fi;\
cat makelog; \
) \
done

# building library in lnx86/3d
make[1]: Entering directory `/home4/rjones/UVFlowSim/MSWork/libudf/lnx86/3d'
make[1]: Circular udf_names.c <- udf_names.c dependency dropped.
make[2]: Entering directory `/home4/rjones/UVFlowSim/MSWork/libudf/lnx86/3d'
make libudf.so "CFLAGS=-fpic -shared -ansi -Wall -m32 -O " "LDFLAGS=-shared -lm -m elf_i386"
make[3]: Entering directory `/home4/rjones/UVFlowSim/MSWork/libudf/lnx86/3d'
make[3]: Circular udf_names.c <- udf_names.c dependency dropped.
# Compiling udf_names.o because of udf_names.c
cc -fpic -shared -ansi -Wall -m32 -O -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/src -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/cortex/src -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/client/src -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/tgrid/src -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/multiport/src -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/multiport/mpi_wrapper/include -I. -c udf_names.c
# Compiling uvdose_par_6326.o because of uvdose_par_6326.c
cc -fpic -shared -ansi -Wall -m32 -O -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/src -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/cortex/src -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/client/src -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/tgrid/src -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/multiport/src -I/usr/local/ansys_inc/v120/fluent/fluent12.0.16/multiport/mpi_wrapper/include -I. -c uvdose_par_6326.c
uvdose_par_6326.c: In function ‘uv_dosage’:
uvdose_par_6326.c:16: warning: unused variable ‘c’
# Linking libudf.so because of makefile udf_names.c udf_names.o uvdose_par_6326.o
ld -shared -lm -m elf_i386 udf_names.o udf_names.o uvdose_par_6326.o -o libudf.so
udf_names.o: In function `UDF_Inquire_Release':
udf_names.c: (.text+0x0): multiple definition of `UDF_Inquire_Release'
udf_names.o:udf_names.c: (.text+0x0): first defined here
udf_names.o: (.data.rel+0x0): multiple definition of `udf_data'
udf_names.o: (.data.rel+0x0): first defined here
udf_names.o: (.data+0x0): multiple definition of `n_udf_data'
udf_names.o: (.data+0x0): first defined here
make[3]: *** [libudf.so] Error 1
make[3]: Leaving directory `/home4/rjones/UVFlowSim/MSWork/libudf/lnx86/3d'
make[2]: *** [lnx86] Error 2
make[2]: Leaving directory `/home4/rjones/UVFlowSim/MSWork/libudf/lnx86/3d'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home4/rjones/UVFlowSim/MSWork/libudf/lnx86/3d'

The system I am workin with is the following:

Linux box running RedHat
X86 chip
FLUENT 12.0.16 Serial
3D, pbns, vof, ske

Thanks for any help that you can provide. I'm sure I'm missed showing some helpful, important information, so let me know and I'll add whatever helps.

Ryan
RPJones is offline   Reply With Quote

 

Tags
fluent, help me, udf


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
problem with loading udf in fluent 6.3 James Fluent UDF and Scheme Programming 6 January 22, 2015 05:51
problem loading UDF in parallel fluent Tim FLUENT 12 July 12, 2008 12:59
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 10:16
UDF of Zimont model in fluent Z Main CFD Forum 0 February 17, 2005 03:07
UDF in Fluent to Match Mass Flow at Pressure Outlet Jonas Larsson Main CFD Forum 1 April 29, 1999 10:44


All times are GMT -4. The time now is 05:11.