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

store new variables of DPM in memory

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2021, 17:45
Default store new variables of DPM in memory
  #1
New Member
 
Sara
Join Date: Apr 2020
Posts: 19
Rep Power: 6
sara moradi is on a distinguished road
hi all,

I am writing a UDF for calculating the moisture content in particles. now i want to store this variable (moisture content of particles) in memory. but i don't know which macro can store it as a new variable. does anybody knows how can i store it?

thanks

Last edited by sara moradi; February 7, 2021 at 11:34.
sara moradi is offline   Reply With Quote

Old   February 4, 2021, 01:38
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
This is what a User Defined Memory (UDM) is for.
pakk is offline   Reply With Quote

Old   February 4, 2021, 03:14
Default
  #3
New Member
 
Sara
Join Date: Apr 2020
Posts: 19
Rep Power: 6
sara moradi is on a distinguished road
Quote:
Originally Posted by pakk View Post
This is what a User Defined Memory (UDM) is for.
thanks for your response.
yes i'm familiar with this macro, but the manual of Ansys use it for continuous phases. i want to loop over particles which hit the walls.
sara moradi is offline   Reply With Quote

Old   February 4, 2021, 04:42
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Quote:
Originally Posted by sara moradi View Post
thanks for your response.
yes i'm familiar with this macro, but the manual of Ansys use it for continuous phases. i want to loop over particles which hit the walls.
Then look further in the manual: there is a user defined memory for particles. P_UDMI might be the name, I'm not sure.
pakk is offline   Reply With Quote

Old   February 4, 2021, 05:12
Default
  #5
New Member
 
Sara
Join Date: Apr 2020
Posts: 19
Rep Power: 6
sara moradi is on a distinguished road
Quote:
Originally Posted by pakk View Post
Then look further in the manual: there is a user defined memory for particles. P_UDMI might be the name, I'm not sure.
thank you Pakk. I find it.
particle values store in this macro: P_USER_REAL(p,i)

Last edited by sara moradi; February 7, 2021 at 11:35.
sara moradi is offline   Reply With Quote

Old   February 4, 2021, 05:25
Default
  #6
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Quote:
Originally Posted by sara moradi View Post
thank you Pakk. I find it.
particle values store in this micro: P_USER_REAL(p,i)
That's the one I meant!
sara moradi likes this.
pakk is offline   Reply With Quote

Reply


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
solver-dev : which variables to store in memory and which to compute on the fly? aerosayan Main CFD Forum 16 November 23, 2020 19:24
How to read a Value from Text File and store it in Variables (writing in UDF) Amirreza_pro FLUENT 0 October 26, 2020 04:50
Reserve DPM scalar memory? CeesH FLUENT 0 September 12, 2017 11:19
Access variables in UDF (Fluent) Combustion_Engineer FLUENT 0 September 25, 2015 18:56
memory calculation of variables in FORTRAN codes John Main CFD Forum 1 April 8, 2002 15:13


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