CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[ICEM] Question about ICEM script for mesh generation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2012, 17:50
Question Question about ICEM script for mesh generation
  #1
lnk
Senior Member
 
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15
lnk is on a distinguished road
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

Last edited by lnk; July 22, 2012 at 10:15.
lnk is offline   Reply With Quote

Old   July 22, 2012, 10:05
Default
  #2
CRT
New Member
 
Carles
Join Date: Jan 2012
Location: Karlsruhe
Posts: 29
Rep Power: 14
CRT is on a distinguished road
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
CRT is offline   Reply With Quote

Old   July 22, 2012, 10:15
Default
  #3
lnk
Senior Member
 
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15
lnk is on a distinguished road
Quote:
Originally Posted by CRT View Post
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
lnk is offline   Reply With Quote

Old   July 23, 2012, 15:03
Default
  #4
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
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.
__________________
-----------------------------------------
Please help guide development at ANSYS by filling in these surveys

Public ANSYS ICEM CFD Users Survey

This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)...

CFD Online Users Survey
PSYMN is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] ICEM CFD script CFD-1987 ANSYS Meshing & Geometry 3 June 5, 2012 08:56
ICEM - incomplete mesh generation ralph CFX 0 June 24, 2008 00:35
ICEMCFD script files question hadj Main CFD Forum 0 December 5, 2007 10:06
awk script question awk script question Main CFD Forum 0 March 28, 2005 03:06
QUESTION IN GENERATION OF BODY-FITTED MESH James Zhu Main CFD Forum 0 September 19, 2000 05:06


All times are GMT -4. The time now is 05:38.