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

execute command to create report definitions during simulations

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

Like Tree4Likes
  • 1 Post By vinerm
  • 1 Post By vinerm
  • 1 Post By vinerm
  • 1 Post By vinerm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2020, 03:57
Default execute command to create report definitions during simulations
  #1
Member
 
Francesco
Join Date: Apr 2020
Posts: 33
Rep Power: 2
franc1 is on a distinguished road
Hi guys,

In my simulation i have to create a report definition during calculation, which consist in the difference between avg-temperature at the initial time 0s and after 3s of simulation. I need this because after that parameter is created i have to use it in a further step of the simulation.
So, there's a way to create a report definition (or an output parameter) just for something measured during calculation?
franc1 is offline   Reply With Quote

Old   May 12, 2020, 06:14
Default
  #2
Member
 
Francesco
Join Date: Apr 2020
Posts: 33
Rep Power: 2
franc1 is on a distinguished road
I found a way to write a .vrp file containing the instantaneous values of temperature during calculation at different time.
Now if i want to read those file in order to create an outputparameter or a report definition, how would i do it?
franc1 is offline   Reply With Quote

Old   May 12, 2020, 06:45
Default Expression
  #3
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,549
Blog Entries: 1
Rep Power: 28
vinerm will become famous soon enough
You don't need to write report files if all you want is difference between values at 0s and 3s. Since Fluent does not maintain values for all time-steps in the memory, you have to create output parameter or expression wherein value of the variable you want to use at 0s is given as constant. Then, write an expression to fetch value of same variable using if condition. You can compare Time variable with 3. As soon as it matches 3, the value should be reported. However, if you don't use a time-step which is exact factor of 3, then the condition will never be true.
franc1 likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared on the Forum
vinerm is offline   Reply With Quote

Old   May 12, 2020, 08:34
Default
  #4
Member
 
Francesco
Join Date: Apr 2020
Posts: 33
Rep Power: 2
franc1 is on a distinguished road
The problem is that i need that difference in the same simulation. So it would be great finding a way to save it as output parameter or better a report definition. Any suggestions?
franc1 is offline   Reply With Quote

Old   May 12, 2020, 09:14
Default Difference
  #5
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,549
Blog Entries: 1
Rep Power: 28
vinerm will become famous soon enough
The process I explained is for one simulation and not for two different simulations.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared on the Forum
vinerm is offline   Reply With Quote

Old   May 12, 2020, 10:18
Default
  #6
Member
 
Francesco
Join Date: Apr 2020
Posts: 33
Rep Power: 2
franc1 is on a distinguished road
Ok, maybe i did not understand what you meant.
How can i fix as constant an output parameter or expression?
Since output parameter is just something which changes at each time-step.
franc1 is offline   Reply With Quote

Old   May 12, 2020, 10:21
Default Input Parameter or expression
  #7
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,549
Blog Entries: 1
Rep Power: 28
vinerm will become famous soon enough
You can create an input parameter or expression with constant value. You don't need to use it anywhere. Output parameter have to be used, always. So, you can define an expression that uses output parameter value and subtracts a constant from it.
franc1 likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared on the Forum
vinerm is offline   Reply With Quote

Old   May 12, 2020, 11:01
Default
  #8
Member
 
Francesco
Join Date: Apr 2020
Posts: 33
Rep Power: 2
franc1 is on a distinguished road
I think that i didn't ask clearly the question, sorry for this.

I need to find a way to store the difference between values of a certain physical quantity in a cell_zone (i.e temperature in this case), after 0s and 3s. This has to be done during the calculation since my calculation lasts more than 3 seconds and because after that i have a scheme command which refers to that difference and if this difference is a certain value, the scheme command can do a task.

Sorry for this bad explanation. Thank you in any case Vinerm
franc1 is offline   Reply With Quote

Old   May 12, 2020, 11:47
Default Explanation
  #9
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,549
Blog Entries: 1
Rep Power: 28
vinerm will become famous soon enough
Your explanation and my understanding are in-sync. And what I am trying to explain is supposed to do exactly that. At time 0, calculate the value of temperature. So, this is a known, constant value. Then, write expression that fetches value whenever time is equal to 3 s and subtracts this constant value from the fetched value.
franc1 likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared on the Forum
vinerm is offline   Reply With Quote

Old   May 13, 2020, 03:25
Default
  #10
Member
 
Francesco
Join Date: Apr 2020
Posts: 33
Rep Power: 2
franc1 is on a distinguished road
Thank you,
which kind of function should i use to fetch that value?
franc1 is offline   Reply With Quote

Old   May 13, 2020, 03:53
Default Expression
  #11
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,549
Blog Entries: 1
Rep Power: 28
vinerm will become famous soon enough
You just need to define an expression as average of temperature at a particular boundary with condition that time should be equal to 3 s for its execution.
franc1 likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared on the Forum
vinerm is offline   Reply With Quote

Reply

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
Meshing a Sphere Ajay FLUENT 10 September 3, 2016 14:18
Actuator disk model audrich FLUENT 0 September 21, 2009 07:06
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 01:07
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
create Report from StarCD settings Fab Siemens 4 August 22, 2006 11:41


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