CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Count cells in one direction? (https://www.cfd-online.com/Forums/star-ccm/196580-count-cells-one-direction.html)

tisa December 8, 2017 07:31

Possible to create a plane after specific number of layers (directed mesh)?
 
Hello together,

is there a possibility to count cells in a direction of a local coordinate system (cs) axis?

I've got an extruded mesh and a local cs at the inlet of this mesh. My goal is to create a derived part (plane) after a specific number of cell layers in the direction of the coordinate system's axis.

I'm working with java, so don't hesitate if you have any ideas which don't include the GUI.

Thanks in advance.

ashokac7 December 8, 2017 07:55

Quote:

Originally Posted by tisa (Post 674484)
Hello together,

is there a possibility to count cells in a direction of a local coordinate system (cs) axis?

I've got an extruded mesh and a local cs at the inlet of this mesh. My goal is to create a derived part (plane) after a specific number of cell layers in the direction of the coordinate system's axis.

I'm working with java, so don't hesitate if you have any ideas which don't include the GUI.

Thanks in advance.

Yes you can create a threshold with field function as centroid of any direction like x,y or z.

tisa December 8, 2017 08:42

Quote:

Originally Posted by ashokac7 (Post 674490)
Yes you can create a threshold with field function as centroid of any direction like x,y or z.

Either I misunderstand you, or you got the wrong idea of my goal.

Here is a picture of my mesh:
https://abload.de/thumb/tests_meshscene1i1qpc.png

What I want is to create a plane for example after 3 layers in the direction of the x-axis. Is there any way to get the x coordinates of a specific layer in x direction?

Thanks in advance.

ashokac7 December 8, 2017 09:13

Quote:

Originally Posted by tisa (Post 674500)
Either I misunderstand you, or you got the wrong idea of my goal.

Here is a picture of my mesh:
https://abload.de/thumb/tests_meshscene1i1qpc.png

What I want is to create a plane for example after 3 layers in the direction of the x-axis. Is there any way to get the x coordinates of a specific layer in x direction?

Thanks in advance.

You said you want to count the cells in a direction from specific point. Is that right?

ashokac7 December 8, 2017 09:19

I am sorry if I am wrong again. open a mesh scene with that boundary. Manually put the cursor on the mesh cell or surface for which you want the co-ordinates and push "." button on keyboard. You will get the co-ordinates. :rolleyes: i dont know any other solution.

tisa December 8, 2017 09:29

Quote:

Originally Posted by tisa (Post 674500)
[...] What I want is to create a plane for example after 3 layers in the direction of the x-axis. Is there any way to get the x coordinates of a specific layer in x direction?[...]

:D my idea was to count cells in a specific direction (may not be the best?). But as I mentioned in my last two posts: I want to create a plane after a specific number of layers. Therefore I need a way to get the coordinates of the layer where I want to create my new plane.

I cant click on it, because there is no boundary to click :D But anyway, thanks for your efforts!


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