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] Question about ICEM script for mesh generation (https://www.cfd-online.com/Forums/ansys-meshing/105028-question-about-icem-script-mesh-generation.html)

lnk July 20, 2012 16:50

Question about ICEM script for mesh generation
 
Hi, everyone!

I'm using ICEM script to parameterize my geometry and mesh. After I parameterize the geometry, I'd also like to let the mesh generated automatically even the geometry changed. ( Because the geometry is parameterized firstly. It can be changed. ) But sometimes I only use the mouse to move the vertex to somewhere to adjust my mesh. And I can't parameterize that kind of action. So the mesh can't be always generated all automatically. Do you have any good idea to solve this problem? I'm looking forward to your answer.


Best regards and many thanks,
lnk

CRT July 22, 2012 09:05

Hi Ink,

If u use the same geometry the replay should work.
I suppose that the problem is that when you create the mesh, you select some points, .. that either they were not create in the new geometry or they were create with another name.
check it and tell me whether it is your problem or not.

regards,
carles

lnk July 22, 2012 09:15

Quote:

Originally Posted by CRT (Post 372865)
Hi Ink,

If u use the same geometry the replay should work.
I suppose that the problem is that when you create the mesh, you select some points, .. that either they were not create in the new geometry or they were create with another name.
check it and tell me whether it is your problem or not.

regards,
carles

Hi Carles,

Thanks for your answer. The problem is some points were never created at any geometry. Neither the new one nor the old one. These points are difficult to be parameterized. (If i want to parameterize these points, they need to be expressed by pi and sin(). )I only move the vertexes to these points by mouse.

Best regards,
lnk

PSYMN July 23, 2012 14:03

If you are moving on a surface or curve, it is parameterize because the placement is stored in uv space... for instance, moving a vertex on a surface looks like this (the last two numbers are the final UV space coordinates on the surface)

Quote:

ic_hex_place_node 42 surface:box8.GEOM.00.S2 0.789507323 0.991630465
This next one is a vertex associated to a curve, moving it shows the final location along that curve (0 to 1). In this case, it is 62.78% of the way along the curve... If you change the curve, this will keep up.

Quote:

ic_hex_place_node 70 curve:box8.GEOM.00.S1e1 0.627809517
The third way to move is in space... for that, you are simply given the XYZ coordinates like this...

Quote:

ic_hex_place_node 112 0.342652233 0.438871995 0.513184014
You need to create a parameter somewhere higher in the replay script (such as at the top)

Quote:

set parameter 0.42
then use that parameter in the command... For instance, if it was your Z location, you could change the original place node command to this...

Quote:

ic_hex_place_node 112 0.342652233 0.438871995 $parameter
And it would be equal to 0.42.

There may also be easier ways, depending on what you want to do. For instance, if you are just moving the volume vertex to align it to some other vertex at a point or on the surface, just use the align or set location commands. Then the location will be based on another location which you already control parametrically...

Search CFD-Online for other posts with a "$" in them to find more out about how to use parameters.


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