CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Cumulative variable

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 30, 2015, 02:32
Default Cumulative variable
  #1
New Member
 
Join Date: Mar 2013
Posts: 6
Rep Power: 10
brigi85 is on a distinguished road
Hi!
Someone knows how can I create a cumultaive variable in a transient problem? I want to see, at the end of the transient, an isovolume related to the sumatory of each time, for one of the variables.
Is it possible?

Thanks a lot!
brigi85 is offline   Reply With Quote

Old   January 30, 2015, 04:07
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,840
Rep Power: 132
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Can you explain what you are trying to do? What is the equation you are trying to implement? Integration of what, with respect to what, over what domain, and what averaging/normalising?
ghorrocks is offline   Reply With Quote

Old   January 30, 2015, 04:59
Default
  #3
New Member
 
Join Date: Mar 2013
Posts: 6
Rep Power: 10
brigi85 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Can you explain what you are trying to do? What is the equation you are trying to implement? Integration of what, with respect to what, over what domain, and what averaging/normalising?
Of course... It's very easy.
I'm making a transient analysis of a tank. The tank is full of water and I'm introducing particles in it (particle tracking). In the post I can see the particle tracks perfectly. I can also see an isovolume with the averaged volume fraction variable in each step, but I want the cumulative value of it (an isovolume of the sumatory of all the averaged volume frations).

Is it possible? Can I create some expression for that?
brigi85 is offline   Reply With Quote

Old   January 30, 2015, 05:04
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,840
Rep Power: 132
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Please define "an isovolume of the sumatory of all the averaged volume frations"

Do you mean an isovolume of the average VF at all points over the time of the simulation? (You can do this with transient statistics)

Do you mean an isovolume of the sum over time of the average VF over the domain? (I do not understand what this would mean)

Or something else?
ghorrocks is offline   Reply With Quote

Old   January 30, 2015, 05:25
Default
  #5
New Member
 
Join Date: Mar 2013
Posts: 6
Rep Power: 10
brigi85 is on a distinguished road
Example:

For each time I can draw the next:

Volume 1:
Domains: All Domains
Method: Isovolume
Variable: PT Averaged volume fraction
Mode: At value 1

I want to see, at the end of the simulation (time = 90s) the summatory of all these volumes (An isovolume of Averaged VF in time 1s + Averaged VF in time 2s + Averaged VF in time 3s....).

I hope you could understand me... Thanks
brigi85 is offline   Reply With Quote

Old   January 30, 2015, 05:59
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,840
Rep Power: 132
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Do you mean the isovolumes of all time steps in one image? So an image with lots of isovolumes in it with each isovolume representing a time step?
ghorrocks is offline   Reply With Quote

Old   January 30, 2015, 06:09
Default
  #7
New Member
 
Join Date: Mar 2013
Posts: 6
Rep Power: 10
brigi85 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Do you mean the isovolumes of all time steps in one image? So an image with lots of isovolumes in it with each isovolume representing a time step?
Exactly. I mean the isovolumes of all time steps in one image.
brigi85 is offline   Reply With Quote

Old   January 30, 2015, 06:19
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,840
Rep Power: 132
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Try loading your output file, then loading it again with "append" selected. Hopefully that will give you two instances of your simulation which you can set to different time steps to show simultaneously. If that works then you should be able to load all the time steps, and you can generate the isovolumes.
ghorrocks is offline   Reply With Quote

Old   January 30, 2015, 06:56
Default
  #9
New Member
 
Join Date: Mar 2013
Posts: 6
Rep Power: 10
brigi85 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Try loading your output file, then loading it again with "append" selected. Hopefully that will give you two instances of your simulation which you can set to different time steps to show simultaneously. If that works then you should be able to load all the time steps, and you can generate the isovolumes.
Thank you!
This works perfectly. The problem is that I have to load the output file 90 times. One for each time step.
brigi85 is offline   Reply With Quote

Old   January 31, 2015, 04:37
Default
  #10
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,840
Rep Power: 132
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Record a session file of you doing it for the first few times. Then edit the session file to do them all. If you are feeling really clever you can put in a perl command to do the looping.
ghorrocks is offline   Reply With Quote

Reply

Tags
cumulative, sumatory, transient, variable

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
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


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