Cumulative variable
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! |
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?
|
Quote:
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? |
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? |
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 |
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?
|
Quote:
|
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.
|
Quote:
This works perfectly. The problem is that I have to load the output file 90 times. One for each time step. |
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.
|
All times are GMT -4. The time now is 04:37. |