|August 3, 2010, 11:10||
Journal File – Calling/Defining Vertices with variables
Join Date: Aug 2010
Posts: 5Rep Power: 7
I am creating a journal file to automate a geometry creation/meshing in Gambit. I have imported data using import - vertex data, which created around 30 000 points to create the shape of a wing. So, the wing is made up of 200 airfoils made up of 150 points each. From there, I am trying to make edges by taking a point every 150 points… so:
edge create "Edge.1" “vertex.1”, “vertex.151”, “vertex.301”… “vertex.29851”
The problem is that I would like to be able to vary the number of airfoils and the number of points per airfoil without changing the vertex numbers. So, I have been trying to “call” the vertices using the provided variables: $NoAirfoils = 200, $NoPoints = 150, &EdgeStart = 1. However, I cannot find a way to do this as the vertex label is a string. I have tried using “vertex.” &EdgeStart, “vertex.” &EdgeStart+150 … just in case it worked, but it doesn’t
Has anyone tried this or know of a method or function that could help??
Thanks for the help!
|gambit, journal file|
|Thread||Thread Starter||Forum||Replies||Last Post|
|BlockMesh FOAM warning||gaottino||OpenFOAM Native Meshers: blockMesh||7||July 19, 2010 14:11|
|OpenFOAM Install Script||ljsh||OpenFOAM Installation||82||October 12, 2009 11:47|
|gcc and executable file from Mac to Linux||simone Marras||Main CFD Forum||0||April 8, 2007 15:49|
|Results saving in CFD||hawk||Main CFD Forum||16||July 21, 2005 20:51|
|Gambit Journal File Scripts, Public Database Needed?||Jonas Larsson||Main CFD Forum||13||March 2, 1999 08:25|