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

Apply Energy from APDL (W/m^3) into Fluent Model

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 20, 2016, 13:39
Default Apply Energy from APDL (W/m^3) into Fluent Model
  #1
Member
 
Join Date: Nov 2016
Posts: 67
Rep Power: 2
h0rst is on a distinguished road
Hello everybody,

I programmed a 3D modell in Ansys APDL where a current flows through a copper tube. There is water going through the tube for cooling.
Now, I simulated the energy (W/m) in the tube generated by the current.

So, I would like to couple the results with fluent, so I exported the geometry into fluent.

To get to know UDF better, I wrote a simple (but working UDF) which gives a constant W/m^3:

#include "udf.h"

DEFINE_SOURCE(energy_source,cell,thread,dS,eqn)
{
real source;

source = dS[eqn] = 10000000;

return source;
}


I imported this file in Fluent by adding sources and chosing the c.file.
So right now, the copper tube in fluent is provided with a constant energy of 10e7 W/m^3.
But as I said, I would like to adapt the W/m^3 results I had from Ansys APDL into Fluent (each element shall have the W/m^3 that is created by APDL).
I don't really know how to do this since I have just a bit experience with UDF. I have looked through the manual but I could not receive the necessary information input to solve this issue.

Can somebody explain me how to realize that?



Best regards

h0rst
h0rst is offline   Reply With Quote

Old   December 24, 2016, 04:49
Default
  #2
Member
 
Join Date: Nov 2016
Posts: 67
Rep Power: 2
h0rst is on a distinguished road
Does nobody have an idea?

I wrote the APDL results into an array and text file gives me in the

1 column: jouleheat
2 column: cent x coordinates
3 column: cent y coordinates
4 column: cent z coordinates

But how can I read this array into my fluent udf?


h0rst
h0rst is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Evaporation model in ansys Fluent 12.1 oldisbest Fluent UDF and Scheme Programming 10 June 12, 2017 11:46
Difference between Fluent transitional model and CFX transitional model Anna Tian FLUENT 2 August 7, 2014 10:52
The fluent stopped and errors with "Emergency: received SIGHUP signal" yuyuxuan FLUENT 0 December 3, 2013 23:56
Is Non premixed combusiton (flamelet model) in Fluent able to calculate laminar? sooroo3 FLUENT 2 November 10, 2013 06:47
Exporting fluent melting/solidification model results to ansys mechanical apdl omair11 ANSYS 3 August 28, 2013 06:22


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