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

What is the command to start a batch file with UDF?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2017, 10:04
Default What is the command to start a batch file with UDF?
  #1
Member
 
Join Date: Nov 2016
Posts: 73
Rep Power: 10
h0rst is on a distinguished road
Hello everyone,

I have a coupled model (Fluent + Ansys Classic).

I programmed a batch file so that I can start Ansys classic with this batchfile.


But I would like to start this batch file at the end of the Fluent Simulation.


My Source code is:

DEFINE_ON_DEMAND(ansys_start)
{
FILE *fp;
fp=fopen("startansys.bat","w");
fclose(fp);
}



Unfortunatley, this doesn't start the batch file. Also "execute on demand" doens't change anything.


Can someone tell me how to start a batch file with Fluent?


Best regards
h0rst
h0rst is offline   Reply With Quote

Old   May 24, 2017, 04:21
Default
  #2
Member
 
KirMaks
Join Date: Aug 2016
Posts: 34
Rep Power: 10
kirmaks is on a distinguished road
Hallo,

You may use scheme instead:

Execute external program in fluent udf

Best regards, Maks
kirmaks 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
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 09:46
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43


All times are GMT -4. The time now is 21:20.