CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

new material with new chemical formula

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

Like Tree1Likes
  • 1 Post By sara moradi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2021, 14:57
Default new material with new chemical formula
  #1
New Member
 
Sara
Join Date: Apr 2020
Posts: 19
Rep Power: 3
sara moradi is on a distinguished road
Hi all,

Do you know how can I write a UDF for a new material with new chemical formula?
sara moradi is offline   Reply With Quote

Old   February 9, 2021, 06:31
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,819
Rep Power: 23
pakk will become famous soon enough
Maybe. It depends on what you want the UDF to do... You forgot to say that.
pakk is offline   Reply With Quote

Old   February 9, 2021, 10:56
Default
  #3
New Member
 
Sara
Join Date: Apr 2020
Posts: 19
Rep Power: 3
sara moradi is on a distinguished road
Quote:
Originally Posted by pakk View Post
Maybe. It depends on what you want the UDF to do... You forgot to say that.
I want to calculate molecular weight (molwt) of species.
sara moradi is offline   Reply With Quote

Old   February 9, 2021, 13:41
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,819
Rep Power: 23
pakk will become famous soon enough
Quote:
Originally Posted by sara moradi View Post
I want to calculate molecular weight (molwt) of species.
And why do you want to use a UDF for that? Why don't you just add a material and change the molecular weight?
pakk is offline   Reply With Quote

Old   February 9, 2021, 15:41
Default
  #5
New Member
 
Sara
Join Date: Apr 2020
Posts: 19
Rep Power: 3
sara moradi is on a distinguished road
Quote:
Originally Posted by pakk View Post
And why do you want to use a UDF for that? Why don't you just add a material and change the molecular weight?
because my type of material is droplet-particle, and there is no icon for molecular weight!
sara moradi is offline   Reply With Quote

Old   February 10, 2021, 03:42
Default
  #6
Senior Member
 
Join Date: Nov 2013
Posts: 1,819
Rep Power: 23
pakk will become famous soon enough
Quote:
Originally Posted by sara moradi View Post
because my type of material is droplet-particle, and there is no icon for molecular weight!
Maybe you should rephrase your question to what you really want.
On the first post you forgot to say what the UDF should do, and on the second post you forgot to say that you have a droplet-particle. I'm afraid to start to answer, because maybe you forgot to mention something else...

Why do you need molecular weight for a droplet? For which physics is that relevant? What should the weight be? A constant that you know? Calculated from other values? Don't make us guess what you need, tell us?
pakk is offline   Reply With Quote

Old   February 12, 2021, 14:12
Default
  #7
New Member
 
Sara
Join Date: Apr 2020
Posts: 19
Rep Power: 3
sara moradi is on a distinguished road
Quote:
Originally Posted by pakk View Post
Maybe you should rephrase your question to what you really want.
On the first post you forgot to say what the UDF should do, and on the second post you forgot to say that you have a droplet-particle. I'm afraid to start to answer, because maybe you forgot to mention something else...

Why do you need molecular weight for a droplet? For which physics is that relevant? What should the weight be? A constant that you know? Calculated from other values? Don't make us guess what you need, tell us?
there is no different whether the molecular weight is constant or not. i'm simulating the heat and mass transfer in multi components. but i don't have access to change the molecular weight of my material (droplet- particle), so i guessed to change its chemical formula instead of changing the molecular weight (as i mentioned in the first post). however, changing the molwt would be an easier strategy.
thanks for your time and consideration Pakk.
sara moradi is offline   Reply With Quote

Old   February 12, 2021, 15:05
Default
  #8
Senior Member
 
Join Date: Nov 2013
Posts: 1,819
Rep Power: 23
pakk will become famous soon enough
If the molwt is not given in the Fluent screen, it is because it is not used in any calculation at all.

You seem to have a model in your mind where heat transfer depends on molecular weight. Which is fine, but apparently Fluent does not use such a model.

So I guess that your real question is: how can I use a model that includes the molecular weight in the heat transfer calculation of your droplet-particles?

Honestly: I don't know. Sorry that I could not get the answer, but I hope I helped to clarify your question.
pakk is offline   Reply With Quote

Old   February 12, 2021, 15:09
Default
  #9
New Member
 
Sara
Join Date: Apr 2020
Posts: 19
Rep Power: 3
sara moradi is on a distinguished road
Quote:
Originally Posted by pakk View Post
If the molwt is not given in the Fluent screen, it is because it is not used in any calculation at all.

You seem to have a model in your mind where heat transfer depends on molecular weight. Which is fine, but apparently Fluent does not use such a model.

So I guess that your real question is: how can I use a model that includes the molecular weight in the heat transfer calculation of your droplet-particles?

Honestly: I don't know. Sorry that I could not get the answer, but I hope I helped to clarify your question.
No! there is a model of heat and mass transfer which is associated with the molecular weight. why you change my question in every post! you can check the DPM-heat and mass transfer in the fluent manual.
sara moradi is offline   Reply With Quote

Old   February 13, 2021, 02:15
Default
  #10
Senior Member
 
Join Date: Nov 2013
Posts: 1,819
Rep Power: 23
pakk will become famous soon enough
If the model uses molwt, Fluent needs to know this number, so there has to be an input field for this.
So there are three options:
1. There is an input field for molwt for particle droplets, but you can not find it, possibly because you are looking in the wrong place.
2. The heat transfer model that uses molwt can not be used for droplet particles.
3. The programmers of Fluent made a very stupid mistake.

I don't know which of the three is the truth, but in no case is the solution "write a UDF for molwt".
Note: I am only changing your question to help you. You are asking the wrong problem. It's an X/Y problem, if you know what that means.
pakk is offline   Reply With Quote

Old   February 14, 2021, 02:00
Default
  #11
New Member
 
Sara
Join Date: Apr 2020
Posts: 19
Rep Power: 3
sara moradi is on a distinguished road
Quote:
Originally Posted by pakk View Post
If the model uses molwt, Fluent needs to know this number, so there has to be an input field for this.
So there are three options:
1. There is an input field for molwt for particle droplets, but you can not find it, possibly because you are looking in the wrong place.
2. The heat transfer model that uses molwt can not be used for droplet particles.
3. The programmers of Fluent made a very stupid mistake.

I don't know which of the three is the truth, but in no case is the solution "write a UDF for molwt".
Note: I am only changing your question to help you. You are asking the wrong problem. It's an X/Y problem, if you know what that means.
thank you Pakk for your response.

I realized that in the Create/edit material dialog box there is a button named "user-defined database" in which you can define your material with a specific chemical formula as well as any properties. I share it since it would be useful for others.
pakk likes this.
sara moradi is offline   Reply With Quote

Reply

Tags
heat and mass transfer, multi-component, new material definition

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 05:37
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Setting the height of the stream in the free channel kevinmccartin CFX 10 July 9, 2015 21:36
error message cuteapathy CFX 14 March 20, 2012 06:45
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02


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