CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Pointwise & Gridgen (http://www.cfd-online.com/Forums/pointwise/)
-   -   Feature request: User defined shortcut (macro), node draging, connector pairing (http://www.cfd-online.com/Forums/pointwise/129133-feature-request-user-defined-shortcut-macro-node-draging-connector-pairing.html)

lakeat January 29, 2014 11:42

Feature request: User defined shortcut (macro), node draging, connector pairing
 
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 :)

cnsidero January 29, 2014 12:19

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 (Post 472357)
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 (Post 472357)
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 (Post 472357)
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?


lakeat January 29, 2014 12:24

Okay, I'll learn tcl today and see how productive it is.
Thank you Chris, you are so kind.


All times are GMT -4. The time now is 11:57.