CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   New Material (http://www.cfd-online.com/Forums/fluent-udf/71828-new-material.html)

DoHander January 16, 2010 21:16

New Material
 
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

fox000002 January 18, 2010 00:05

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))
    )
)



DoHander January 18, 2010 14:21

Thanks a lot,

Do


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