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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2010, 21: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 18, 2010, 00:05
Default
  #2
Member
 
fox000002's Avatar
 
Join Date: Apr 2009
Posts: 46
Rep Power: 16
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, 14: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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 06:21
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 01:58
Wall Material Maple FLUENT 4 March 13, 2009 06:39
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 13:02
material mass imbalance Im FLUENT 3 September 5, 2001 23:47


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