CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   EnSight (https://www.cfd-online.com/Forums/ensight/)
-   -   Using a variable to set a plane (https://www.cfd-online.com/Forums/ensight/192261-using-variable-set-plane.html)

wjbvg5 August 31, 2017 16:43

Using a variable to set a plane
 
Hello,

I've been trying to mess around with my domain for analysis purposes. Currently, I am taking integrals and sums across my entire domain, but really need to be able to isolate the region down to some box around say a fluid interface.

I've been trying to do something like:
1. Create an iso-surface based on a 5% contour
2. Use the calculated to turn the coordinates of said iso-surface into a variable
3. Find the max and min x,y coordinates of the iso-surface
4a. Using filter, I want to remove any region on the master part greater than the max's and less than the minimums.

- or -
4b. I select the master part, then using calculator create some variables which are slaved to the master part and are equal to my iso-surface max and min values.
5. I try 4a. as listed above, to remove any region greater than the max's and less than the mins.

However, following either procedure, ensight crashes without any warning or reasoning. I am unsure of why - any advice on how to do this would be useful.

In fact, trying to filter using any variable as opposed to a number crashes ensight regardless.

As mentioned before, I'd rather use a plane tool, since I'm not even sure if filter will actually allow me calculate the regions only within the box. But- as far as I can see, plane tool does not allow one to use variables and instead needs direct input from the user. Since my fluid interface moves through time, it would be nice to have something do this automatically so I can take the integral/sum using a constant area around the interface.

Marina G September 1, 2017 16:51

Hi,

I was able to verify the crash and I've reported to our devs. team. Thank you for pointing it out.

What I would do is the following:

1. Create the isosurface
2. Calculate MinZ, MaxZ on this part (and of the other coordinates as well, if you need them)
3. On the original fluid part, calculate a new variable:

range_z = (Coordinates[Z] - MinZ)/(MaxZ - MinZ)

4. On the original fluid part, create an isovolume for range_z between 0 and 1.

This should give you what you're looking for.

Please let me know if I misunderstood your request, or if this isn't what you're looking for.

Thank you.
Best Regards,

Marina Galvagni
CEI Software Support Engineer


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