CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [ICEM] ic_geo_surface_get_objects (https://www.cfd-online.com/Forums/ansys-meshing/143150-ic_geo_surface_get_objects.html)

macfly October 17, 2014 11:00

ic_geo_surface_get_objects
 
Hi,

I can't get the geometry function ic_geo_surface_get_objects surface type [embedded_points] to work. I tried all the types (surface, curve, point, material, loop, density) and I always get the following error message (box8.00 is the name of a given surface):
Error: bad object type "'surface'" for surface "box8.00"

Moreover, I have no idea of what I'm supposed to do with [embedded_points]??

bluebase October 17, 2014 16:34

Hi François,

i don't have an idea to what valid values are accepted. I think "embedded_points" is just the standard value for types.

There is a chance that you're looking for a function to get the boundary curves of a surface or boundary points of curves. If that's the case, have a look at ic_geo_boundary.

Quote:

args: should be "ic_geo_boundary type ?names? ?outer? ?even_if_dormant? ?embedded?"

## Return what objects of lower dimensionality are the boundary of this one.
## Points are the boundary of curves and curves are the boundary of surfaces
## and loops. The list returned has a sublist foreach element in <em>names</em>
## such that {{c00 c01} {c10 c11} ...}, unless names is one elment, in which
## case the returned list goes as: "c00 c01".
## <i>names</i> may be one name, or a list of names
## <i>outer</i> may be 0 or 1, indicating what kind of boundaries
## <i>even_if_dormant</i> may be 0 or 1, indicating which additional boundaries
## <i>embedded</i> may be 0 or 1, indicating which additional boundaries
type should be the type of the parent entity

Code:

ic_geo_boundary surface s.c.wll.inl.1
Result: c.wll.inl c.p.wll.inl.1 c.wll.inl.2 c.p.wll.inlvrd.1

ic_geo_boundary curve c.wll.inl
Result: p.wll.inlvrd.1 p.wll.inl.1

with regards,
Sebastian

macfly October 17, 2014 16:55

Hi Sebastian,

Yes I'm looking for a function that will get some boundary coordinates of a given surface. I want to locate all surfaces and group them in different parts.

Thanks for ic_geo_boundary, I might use it eventually. I found ic_geo_get_srf_pos which gets the coordinates at a surface parameter, I think it's the simplest way to go.

Thanks for your input,
Regards


All times are GMT -4. The time now is 18:12.