CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

user defined new material

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By Josyula
  • 1 Post By Josyula

Reply
 
LinkBack Thread Tools Display Modes
Old   July 7, 2011, 07:25
Default user defined new material
  #1
New Member
 
Jatinder Kumar
Join Date: Jun 2011
Posts: 6
Rep Power: 6
replytojk is on a distinguished road
May somebody tell me how to define new user materials in Fluent material panel
replytojk is offline   Reply With Quote

Old   July 7, 2011, 09:37
Default Adding materials to FLUENT panel
  #2
New Member
 
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 8
Josyula is on a distinguished road
Quote:
Originally Posted by replytojk View Post
May somebody tell me how to define new user materials in Fluent material panel
These are the steps to add new materials to FLUENT panel:-

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
nasser likes this.
Josyula is offline   Reply With Quote

Old   July 9, 2011, 00:38
Default
  #3
New Member
 
Jatinder Kumar
Join Date: Jun 2011
Posts: 6
Rep Power: 6
replytojk is on a distinguished road
Thankns , Josyula.
It is working
replytojk is offline   Reply With Quote

Old   July 9, 2011, 00:39
Default
  #4
New Member
 
Jatinder Kumar
Join Date: Jun 2011
Posts: 6
Rep Power: 6
replytojk is on a distinguished road
Thanks Josy !
It is working
replytojk is offline   Reply With Quote

Old   July 9, 2011, 02:53
Default
  #5
New Member
 
Jatinder Kumar
Join Date: Jun 2011
Posts: 6
Rep Power: 6
replytojk is on a distinguished road
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
replytojk is offline   Reply With Quote

Old   July 9, 2011, 04:59
Default
  #6
New Member
 
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 8
Josyula is on a distinguished road
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:
Originally Posted by replytojk View Post
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
nasser likes this.
Josyula is offline   Reply With Quote

Old   July 10, 2011, 02:32
Default
  #7
New Member
 
Jatinder Kumar
Join Date: Jun 2011
Posts: 6
Rep Power: 6
replytojk is on a distinguished road
your suggestions are nice.
But still my problem is not solved.
Kindly suggest something
replytojk is offline   Reply With Quote

Old   July 11, 2011, 01:49
Default Send the propdb file
  #8
New Member
 
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 8
Josyula is on a distinguished road
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?

Quote:
Originally Posted by replytojk View Post
your suggestions are nice.
But still my problem is not solved.
Kindly suggest something
Josyula is offline   Reply With Quote

Old   July 11, 2011, 10:34
Default here is propdb file attached
  #9
New Member
 
Jatinder Kumar
Join Date: Jun 2011
Posts: 6
Rep Power: 6
replytojk is on a distinguished road
plz find the propdb file attached

Quote:
Originally Posted by Josyula View Post
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?
replytojk is offline   Reply With Quote

Old   July 11, 2011, 10:43
Default Where is the propdb file?
  #10
New Member
 
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 8
Josyula is on a distinguished road
Hi,

I didn't get the file. Can you send it as an e-mail attachment?

Quote:
Originally Posted by replytojk View Post
plz find the propdb file attached
Josyula is offline   Reply With Quote

Old   March 4, 2013, 05:14
Default
  #11
Senior Member
 
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 6
hamid1 is on a distinguished road
Hi,
what do you mean by this:

Paste this just before the last parentheses

thanks
hamid1 is offline   Reply With Quote

Old   March 5, 2013, 01:07
Default
  #12
New Member
 
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 8
Josyula is on a distinguished road
Quote:
Originally Posted by hamid1 View Post
Hi,
what do you mean by this:

Paste this just before the last parentheses

thanks
I meant that you have to paste your new material properties before the last parentheses of your propdb.scm file
Josyula is offline   Reply With Quote

Old   April 2, 2013, 02:21
Default
  #13
Senior Member
 
Join Date: Nov 2009
Posts: 125
Rep Power: 7
mactech001 is on a distinguished road
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
mactech001 is offline   Reply With Quote

Old   April 2, 2013, 09:24
Default "define new materials with temperature dependent properties" for transient
  #14
Senior Member
 
Moha
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0
ahvz is on a distinguished road
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,
ahvz is offline   Reply With Quote

Old   April 3, 2013, 01:02
Default
  #15
New Member
 
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 8
Josyula is on a distinguished road
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
Josyula is offline   Reply With Quote

Old   April 3, 2013, 05:13
Default
  #16
Senior Member
 
Moha
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0
ahvz is on a distinguished road
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)
}
ahvz is offline   Reply With Quote

Old   April 3, 2013, 13:33
Default
  #17
New Member
 
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 8
Josyula is on a distinguished road
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.
Josyula is offline   Reply With Quote

Old   April 3, 2013, 13:58
Default
  #18
Senior Member
 
Moha
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0
ahvz is on a distinguished road
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,
Attached Images
File Type: jpg Capture.JPG (85.7 KB, 9 views)
Attached Files
File Type: h TransientTempProfile.h (614 Bytes, 4 views)
ahvz is offline   Reply With Quote

Old   April 5, 2013, 09:54
Default
  #19
New Member
 
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 8
Josyula is on a distinguished road
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.
Josyula is offline   Reply With Quote

Old   April 9, 2013, 15:16
Default
  #20
Senior Member
 
Moha
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0
ahvz is on a distinguished road
we are in the same page you right!
its work now!

thank you very much
ahvz is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating new user defined material Vidya FLUENT 4 August 26, 2013 09:26
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
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 12:02


All times are GMT -4. The time now is 00:27.