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

New Material

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2010, 20:16
Default New Material
  #1
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 19
DoHander is on a distinguished road
How can I define a new material using a Scheme macro (I've seen Fluent can import a database of materials as a *.scm file, but I didn't see any example).

Or should I use a UDF for this ?

Thanks,

Do
DoHander is offline   Reply With Quote

Old   January 17, 2010, 23:05
Default
  #2
Member
 
fox000002's Avatar
 
Join Date: Apr 2009
Posts: 46
Rep Power: 17
fox000002 is on a distinguished road
There is an example file below.

Save the code to a .scm file.

Then u can edit the prop directly or in the GUI.

Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;             FLUENT USER DEFINED MATERIAL DATABASE
;;;                                                              ;;;
;;; (name type[fluid/solid] (chemical-formula . formula)
;;;             (prop1 (method1a . data1a) (method1b . data1b))
;;;            (prop2 (method2a . data2a) (method2b . data2b)))
;;;                                                              ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(
    (xxxx solid
        (chemical-formula . xxxx)
        (density (constant . 7900))
        (specific-heat (constant . 502))
        (thermal-conductivity  (constant . 20))
    )
)

fox000002 is offline   Reply With Quote

Old   January 18, 2010, 13:21
Default
  #3
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 19
DoHander is on a distinguished road
Thanks a lot,

Do
DoHander 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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 00:58
Wall Material Maple FLUENT 4 March 13, 2009 05:39
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02
material mass imbalance Im FLUENT 3 September 5, 2001 22:47


All times are GMT -4. The time now is 15:55.