Journal File – Calling/Defining Vertices with variables
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!
|All times are GMT -4. The time now is 16:42.|