|
[Sponsors] |
January 16, 2010, 21:16 |
New Material
|
#1 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
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 |
|
January 18, 2010, 00:05 |
|
#2 |
Member
Join Date: Apr 2009
Posts: 46
Rep Power: 17 |
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)) ) ) |
|
January 18, 2010, 14:21 |
|
#3 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
Thanks a lot,
Do |
|
|
|
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 |