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

Compile c99 standard UDF in Cluster

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2015, 02:58
Default Compile c99 standard UDF in Cluster
  #1
New Member
 
Join Date: May 2014
Posts: 13
Rep Power: 11
darsonli is on a distinguished road
Hi All,

How do I compile an UDF written in c99 standard to run on the cluster? Blow are my .sh and command files.

Run.sh

#!/bin/bash
#SBATCH --time=3-00:00:00
#SBATCH --mem=129000
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=64
#SBATCH --mail-user=xxxx@xxxx.edu.au
#SBATCH --mail-type=ALL
#SBATCH --partition=short64

cd $SLURM_SUBMIT_DIR
module load fluent/15.0
fluent 2d -g -t64 -ssh <commands.txt >output.txt


Command.txt

/file/rc "2D_Transient_Trail_3.cas.gz"
/define/user-defined/compiled-functions unload libudf
/define/user-defined/compiled-functions compile "libudf" yes "Forces_Latest.c" "" ""
/file/rd "2D_Transient_Trail_3.dat.gz"
;/solve/initialize/initialize-flow
/solve/iterate 100000000
;/solve/dual-time-iterate 1200000 25
/file/wcd "2D_Transient_Trail_3.dat"
/exit
darsonli 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
UDF on cluster why? Fluent UDF and Scheme Programming 14 February 12, 2020 12:48
compile UDF in journal file ivanbuz FLUENT 6 February 10, 2020 11:21
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 07:26
[B]the compiler keep on compile previous udf without updating new udf?[/B] fruitkiwi Fluent UDF and Scheme Programming 5 July 24, 2014 19:38
Help: how to realize UDF on parallel cluster? Haoyin FLUENT 1 August 6, 2007 13:53


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