|
[Sponsors] |
June 17, 2014, 06:36 |
user defined function
|
#1 |
New Member
sethu
Join Date: Jun 2014
Posts: 3
Rep Power: 11 |
hello,
am new in fluent. i want to create a new material in fluent database. the material is salt water. but i dont know how to write udf code for making this new material. can anyone help me??? Last edited by Geethu g; June 18, 2014 at 00:52. |
|
June 18, 2014, 07:22 |
|
#2 |
Senior Member
Join Date: Nov 2010
Posts: 103
Rep Power: 15 |
Hi,
If the properties of salt water are not varying (say with respect to time or other independent variables), I don't think you need any UDFs. You can simply create a new material by modifying an available one. For example see this tutorial on how to create a new material: http://aerojet.engr.ucdavis.edu/flue...tg/node309.htm cheers! |
|
June 18, 2014, 07:50 |
|
#3 | |
New Member
Marco Dc
Join Date: Feb 2014
Location: Italy
Posts: 20
Rep Power: 12 |
Quote:
Once you've created a new material, if you need to set a property that is for example temperature dependent you need a UDF similar to the following. Once you've interpreted your udf, you have to modify material property calling your function. This udf set a temperature dependent viscosity, you can modify it for your goal. /************************************************** ******************* UDF for Temperature dependent Dynamic Viscosity ************************************************** ********************/ #include "udf.h" #include "math.h" DEFINE_PROPERTY(cell_viscosity,cell,thread) { real mu_lam; real temp = C_T(cell,thread); { mu_lam=0.0000631*pow(10,3.722*pow(1+(temp-273)/(135),-1.102)); return mu_lam; } }
__________________
Marco |
||
June 19, 2014, 04:26 |
|
#4 |
New Member
sethu
Join Date: Jun 2014
Posts: 3
Rep Power: 11 |
okay... i will try these steps....thankyou so much guys.....
|
|
January 25, 2016, 14:01 |
|
#5 |
New Member
Harith Jayakody
Join Date: Dec 2015
Posts: 3
Rep Power: 10 |
Hi Geethu,
Did u manage to model Salt-water as a material in fluent? I am struggling to do this as well. Please let me know if you found out how to do this. Thank you very much. If anyone else has an idea on how to do this please let me know... Thanks. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] Errors during blockMesh meshing | Madeleine P. Vincent | OpenFOAM Meshing & Mesh Conversion | 51 | May 30, 2016 10:51 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 06:42 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 04:37 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 06:27 |
Help: user defined function | alice | FLUENT | 3 | December 13, 2000 00:10 |