|
[Sponsors] |
July 7, 2011, 08:25 |
user defined new material
|
#1 |
New Member
Jatinder Kumar
Join Date: Jun 2011
Posts: 6
Rep Power: 15 |
May somebody tell me how to define new user materials in Fluent material panel
|
|
July 7, 2011, 10:37 |
Adding materials to FLUENT panel
|
#2 | |
New Member
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 17 |
Quote:
1) Go to C:/Fluent.Inc (or where ever your Fluent files are installed) 2) Search for *.scm in that folder 3) You will get two folders like this: propdb.scm and thermodb.scm 4) Open the propdb.scm with wordpad 5) Copy any one of the material from list, like the one mentioned below: (turpentine fluid (chemical-formula . c10h16) (density (constant . 855)) (specific-heat (constant . 1800)) (thermal-conductivity (constant . 0.128)) (viscosity (constant . 0.001487)) (molecular-weight (constant . 136.1364)) ) 6) Paste this just before the last parentheses i.e. after the 'particle-mixture-template' parentheses. 7) After pasting, you can change the numbers as desired and while naming the material, name them as new-xyz (where xyz is the name of your material). 8) Make sure that the parentheses are positioned properly. 9) Save the file and close it. 10) Restart the system. 11) Open Fluent, load the case & data file, then go to the Materials panel. In the list, check for new-xyz This should give you the new material that you have added |
||
July 9, 2011, 01:39 |
|
#4 |
New Member
Jatinder Kumar
Join Date: Jun 2011
Posts: 6
Rep Power: 15 |
Thanks Josy !
It is working |
|
July 9, 2011, 03:53 |
|
#5 |
New Member
Jatinder Kumar
Join Date: Jun 2011
Posts: 6
Rep Power: 15 |
Hi !
I have wriiten a code for water-nacl mixture and did the same as suggested by Josy. It appeared in Fluent database tab under mixtures material type. But I failed to copy it to case file i.e. to main material panel. It shows the following error Error: CAR: invalid argument [1]: wrong type [not a pair] Error Object: #f The code written was (WaterNaCl mixture (Chemical formula . #f) (density (constant . 997)) (viscosity (constant . 8.9e-4)) ) Kindly help to fix the problem |
|
July 9, 2011, 05:59 |
|
#6 | |
New Member
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 17 |
Quick observations on what you had written:-
a) Change 'Chemical' to 'chemical-formula' b) Change '8.9e-4' to '8.9e-04' These are trivial changes but they make a difference. Try this and let me know. Quote:
|
||
July 10, 2011, 03:32 |
|
#7 |
New Member
Jatinder Kumar
Join Date: Jun 2011
Posts: 6
Rep Power: 15 |
your suggestions are nice.
But still my problem is not solved. Kindly suggest something |
|
July 11, 2011, 02:49 |
Send the propdb file
|
#8 |
New Member
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 17 |
Hi,
Please send the propdb file in which you have written the new material properties. I will try to read it in my system and see. Additionally, have you activated the Mixture model? |
|
July 11, 2011, 11:34 |
here is propdb file attached
|
#9 |
New Member
Jatinder Kumar
Join Date: Jun 2011
Posts: 6
Rep Power: 15 |
||
July 11, 2011, 11:43 |
Where is the propdb file?
|
#10 |
New Member
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 17 |
||
March 4, 2013, 05:14 |
|
#11 |
Senior Member
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 16 |
Hi,
what do you mean by this: Paste this just before the last parentheses thanks |
|
March 5, 2013, 01:07 |
|
#12 |
New Member
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 17 |
||
April 2, 2013, 03:21 |
|
#13 |
Senior Member
Join Date: Nov 2009
Posts: 125
Rep Power: 17 |
Dear Josyula,
i would like to define a temperature dependent material property that follows the equation: y = -1.09ln(T) + 5.740, where T is temperature in Celsius. how do i define this please?
__________________
Thank you for your kind attention. Kind regards, mactech001 Currently using: ANSYS v13 |
|
April 2, 2013, 10:24 |
"define new materials with temperature dependent properties" for transient
|
#14 |
Senior Member
Moha
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0 |
hi,
how to define a new materials with temperature pendent properties into FLUENT ? I need to define a materials with different temperature- enthalpy values... regards, |
|
April 3, 2013, 02:02 |
|
#15 |
New Member
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 17 |
Mactech001 and ahvz,
It is advisable to use 'DEFINE_PROPERTY' Macro for your respective problems and hook to the material which has the temperature dependent property in the 'Define-Materials'. FLUENT Manual has an example for this Macro. Please check. Regards, Josyula |
|
April 3, 2013, 06:13 |
|
#16 |
Senior Member
Moha
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0 |
Hi,
thank you for reply, how can I be sure that, if the UDF is true and working well or not? I bring the UDF file in the below regards, start the UDF: /************************************************** ********************* udfexample.c UDF for specifying transient temperature profile boundary condition ************************************************** **********************/ #include "udf.h" DEFINE_PROFILE(Temp_Profile, thread, position) { face_t f; real x[ND_ND]; /* this will hold the position vector */ real y; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[0]; F_PROFILE(f, thread, position) = (-1e-26*x*x*x*x*x*x)+(3e-21*x*x*x*x*x)-(3e-16*x*x*x*x)+(1e-11*x*x*x)-(2e-7*x*x)+((1/1000)*x)+13; /*this formula achieved from "curve fitting" */ } end_f_loop(f,t) } |
|
April 3, 2013, 14:33 |
|
#17 |
New Member
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 17 |
ahvz,
Can you please repeat your question again? What is it that you would like to do? The UDF which you have posted here is a DEFINE_PROFILE UDF where it is essentially applied to a boundary condition like inlet, walls, etc. of your geometry. Also, I suggest a small correction:- The equation in the F_PROFILE should have 'y' and not 'x' because you have defined y = x[0] which is essentially 'x'. If you can let me know your exact question, I try to help you. Good day. |
|
April 3, 2013, 14:58 |
|
#18 |
Senior Member
Moha
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0 |
Dear Josyula,
thank you for reply, I am trying to do transient analysis for my model. I used "curve fitting" method to achieve the temperature -time equation which is presented at below text. you right. this is the temperature profile as a convective heat transfer through the model which I want to impose to the wall geometries. /************************************************** ********************* udfexample.c UDF for specifying transient temperature profile boundary condition ************************************************** **********************/ #include "udf.h" DEFINE_PROFILE(Temp_Profile, thread, position) { face_t f; real x[ND_ND]; /* this will hold the position vector */ real y; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[0]; F_PROFILE(f, thread, position) = (-1e-26*y*y*y*y*y*y)+(3e-21*y*y*y*y*y)-(3e-16*y*y*y*y)+(1e-11*y*y*y)-(2e-7*y*y)+((1/1000)*y)+13; /*this formula achieved from "curve fitting" */ } end_f_loop(f,t) } how can I hock the file to the FLUENT (what about the type of this file). I already tried to do this steps to call the attached file (its placed at directory file of the model. capture.JPG. am I doing right? regards, |
|
April 5, 2013, 10:54 |
|
#19 |
New Member
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 17 |
ahvz,
Thank you for clarifying the question. From what I understand, you want to impose this at the walls. Right? Compile the UDF. Then go to Boundary Conditions - 'Wall' - 'Convection' and choose 'User-Defined' not 'New Input Parameter' from the drop down list. Let me know if it helps. Further, please refer the FLUENT manual for help on hooking the UDF's. Good day. |
|
April 9, 2013, 16:16 |
|
#20 |
Senior Member
Moha
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0 |
we are in the same page you right!
its work now! thank you very much |
|
|
|
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 |
Creating new user defined material | Vidya | FLUENT | 4 | August 26, 2013 10:26 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
How to use User defined database to add material | sangeeta | FLUENT | 1 | February 25, 2009 14:02 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 13:02 |