Farfield Script
1 Attachment(s)
I want to automate the process of creating a rectangular farfield around an airfoil with a baffle.
For example if the length of the airfoil is 1 unit then the baffle goes 20*airfoil length and similarly all the way around until it completes the square/rectangle for the farfield. And I want it to start from the trailing edge of the airfoil. I have attached a pic of the kind of farfield I am looking for. But I can't seem to generate one that starts from the trailing edge. |
Pointwise has a full scripting language called Glyph.
You can create the automation you want using Glyph. There are many example scripts on the Pointwise Github Repository. Also see: |
Quote:
|
1 Attachment(s)
After creating the farfield domain, you will need to:
I have attached an image that shows the topology of the domain's outer loop. This assembly procedure is the same you will be using in your automation script. To see the commands you will need, I suggest creating a journal file while assembling the domain (Script, Begin Journaling...). |
Quote:
But when I try to create a line, instead of starting from the trailing edge it starts from the 0,0,0 point. I want the script to be able to find the end of the curve automatically. |
Not much more I can do to help without seeing your starting airfoil data and the glyph script.
There are glyph calls to extract XYZ locations on curves and connectors. See docs for: pw::Curve pw::Connector You can also attend a Pointwise Glyph scripting class. |
1 Attachment(s)
Quote:
I also can't seem to apply a value to the script to define a basic distance I will try those other things out |
I have looked at the dat file and the script file.
You are very close. Unfortunately, I am not sure exactly what you are trying to accomplish. It would be helpful to post a PW file that contains an example of what you want the final grid to look like. Build this grid by hand while journaling.
Examine the journal to find the relevant commands you will need in your script. Please take a look at AirfoilMesh Script for an example. Good luck. |
Quote:
I am not having issues with the grid generation or dimensioning etc. I only seem to be having issues automatically generating that line from the trailing edge that works as a baffle as described by the T-Rex tutorial. I tried the journaling way. In the journal itself it has this command: Quote:
Like for example when i journal it I get a line that says: Quote:
|
If I understand correctly, the $farfield value is the distance from the trailing edge point to the rear farfield.
Code:
# Get one of the airfoil curves Code:
set farfieldX2 [expr {$farfield * 2}] You can find all the documentation for these glyph calls on the Pointwise website. |
Quote:
Code:
invalid command name "pw:DatabaseEntity" |
Sorry. There was a typo in my script!
pw:DatabaseEntity should be pw::DatabaseEntity |
Quote:
sorry to be such a bugger. Unfortunately I have very less time to finish this script so I don't have the luxury of learning it from beginning to end. Thank you very very much. |
All times are GMT -4. The time now is 23:44. |