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

Query about UDS

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2022, 02:31
Post Query about UDS
  #1
New Member
 
bilal
Join Date: Oct 2021
Location: pakistan
Posts: 27
Rep Power: 5
hbilal1076 is on a distinguished road
Good time,
Is it possible to define 2 user define function in one UDF?
I have check the UDF manual and as for I understand in C_UDSI(c,t,P1), P1 is an integer having some value like 1,2,3......

I means in the UDS macro, p1 is the name or index of UDS.

so is it possible to use C_USDI(c, t, 1) is a UDS, named "1", and C_USDI(c, t, 2) is a UDS, named "2"
will this idea be correct?

DEFINE_SOURCE(energy_source, c, t, dS, eqn)
{
dS[eqn] = 0;
return -abs_coeff*(4.*SIGMA_SBC*pow(C_T(c,t),4.) - C_UDSI(c,t,P1)); }


Thanks in advance.

Last edited by hbilal1076; October 20, 2022 at 03:33.
hbilal1076 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
Change UDS Inlet Typ with UDF possible? schwaral Fluent UDF and Scheme Programming 8 September 17, 2020 09:47
UDS for gas-phase in cavitation models bug shaham Fluent Multiphase 0 December 31, 2015 01:38
Set UDS on wall... fivos Fluent UDF and Scheme Programming 2 July 25, 2014 06:57
Calculate UDS flux through the wall ananth_01 FLUENT 0 August 5, 2013 08:33
Doubts UDS Flux, UDS Unsteady for VOF model kel85uk FLUENT 0 March 17, 2010 09:53


All times are GMT -4. The time now is 14:56.