CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Pointwise & Gridgen

Feature request: User defined shortcut (macro), node draging, connector pairing

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 29, 2014, 11:42
Default Feature request: User defined shortcut (macro), node draging, connector pairing
  #1
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: South Bend, IN, USA
Posts: 688
Blog Entries: 9
Rep Power: 12
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Hi,

Maybe my way of building multi-block structured mesh is not very correct, but I do frequently use "divide a line (split a line)" and "join two lines" function in pointwise. I am getting quite annoyed since everytime I have to click the button multiple times. For instance, I always want to divide a line at 50% (in its center), Ctrl+Q and then blahblah,,,,, I hope that there could be a macro-recording function and then one can assign a keyboard shortcut to it, so I can just select a connector and hit the shortcut.

PS: There is no shortcut to evoke "building a new connector". There is no shortcut to evoke "hide a surface"... I think they are all frequently used operations.

Another thing is sometimes in building the multi- blocks, I found the topology may not look very pretty/clear, so one may want to drag an internal node a little bit, so to make the blocks more clear visually. Any ideas?

I found in structured mesh generation, line meshes are always in pair, you change dimension in one line/connector, it should automatically be applied to its pairing line. (blocks are all hex (in 2D), right?) Why not add this feature, so whenever the user select one connector, its pairing lines are all highlighted?

Thanks
__________________
~
Daniel WEI
-------------
NatHaz Modeling Laboratory
Department of Civil & Environmental Engineering & Earth Sciences
University of Notre Dame, USA
Email || My Personal CFD Blog
lakeat is offline   Reply With Quote

Old   January 29, 2014, 12:19
Default
  #2
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 371
Rep Power: 12
cnsidero is on a distinguished road
That's what Glyph scripting is for. This would be a really straightforward script to write.

As a start I recommend going through the Glyph tutorial. Next, if you want to know the script commands to split a connector, right click on message window, enable journaling under Preferences>Journal, perform the connector split operation and copy/paste the resulting script commands into your favorite text editor. I recommend cleaning up the journaled code as it will contain a lot of temporary variables.

You should also visit the script exchange and grab one from there to see how things are done: https://github.com/pointwise

Finally, the complete Glyph reference documents are here: http://www.pointwise.com/glyph2/file...Glyph-cxx.html

Quote:
Originally Posted by lakeat View Post
Maybe my way of building multi-block structured mesh is not very correct, but I do frequently use "divide a line (split a line)" and "join two lines" function in pointwise. I am getting quite annoyed since everytime I have to click the button multiple times. For instance, I always want to divide a line at 50% (in its center), Ctrl+Q and then blahblah,,,,, I hope that there could be a macro-recording function and then one can assign a keyboard shortcut to it, so I can just select a connector and hit the shortcut.
Yes. There's a command called "Tweak" in the edit menu that will allow you to move individual grid points.

Quote:
Originally Posted by lakeat View Post
Another thing is sometimes in building the multi- blocks, I found the topology may not be very pretty/clear, so I want to drag a internal node a little bit, so to make the blocks more clear in shape. Any ideas?
This functionality exists. Go to Grid > Dimension and you will find that when you select a connector that is part of a structured domain or block it will automatically find any other connectors that need to be update to ensure the domain or block remains balanced. It's not guaranteed though as the opposing edges in a domain or block may not have the same number of connectors. It will be up to you to correct those manually.

Quote:
Originally Posted by lakeat View Post
I found in structured mesh generation, line meshes are always in pair, you change dimension in one line/connector, it should automatically be applied to its pairing line. (blocks are all hex (in 2D), right?) Why not add this feature, so whenever the user select one connector, its pairing lines are all highlighted?

Last edited by cnsidero; January 29, 2014 at 16:25.
cnsidero is offline   Reply With Quote

Old   January 29, 2014, 12:24
Default
  #3
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: South Bend, IN, USA
Posts: 688
Blog Entries: 9
Rep Power: 12
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Okay, I'll learn tcl today and see how productive it is.
Thank you Chris, you are so kind.
__________________
~
Daniel WEI
-------------
NatHaz Modeling Laboratory
Department of Civil & Environmental Engineering & Earth Sciences
University of Notre Dame, USA
Email || My Personal CFD Blog
lakeat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transient User Defined Function in CFX Niru CFX 0 November 12, 2013 18:07
Re: Cell Acess Macro for User defined Scalar transport equations yashganatra FLUENT 0 July 1, 2013 09:35
using METIS functions in fortran dokeun Main CFD Forum 7 January 29, 2013 05:06
Saving ParaFoam views and case sail OpenFOAM Paraview & paraFoam 9 November 25, 2011 16:46
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21


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