|
[Sponsors] |
April 22, 2023, 12:42 |
Calling a stored variable within a command
|
#1 |
Member
Join Date: Aug 2021
Posts: 59
Rep Power: 4 |
Hello,
I am trying to rotate a wing by a certain angle of attack. I have the geometry object name stored in a variable like "geo-file-name". I want to rotate by a specific angle on import, by setting the filename as what the user defined at the start of the script something like this: file/rotate (*geo-file-name*) 10 0 0 1 0 0 0 I keep getting errors that are either 'invalid function', 'unbound variable' or invalid object. I have tried the following combinations to no avail: (*(geo-file-name)*) (*"(geo-file-name)"*) I also tried this: (ti-menu-load-string(format #f "objects/rotate (*~a*)" geo-file-name)) but all this returns is this: objects/rotate *wing10* #t I'm trying to use the wildcard as the mesher sometimes adds 'zone' to the geometry object. Does anyone have any ideas? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blastFoam] BlastFoam Question | alimea | OpenFOAM Community Contributions | 17 | January 28, 2023 10:50 |
AMR InterFoam | Miguel Hernandez | OpenFOAM Running, Solving & CFD | 1 | October 4, 2022 16:25 |
How to save /adjoint/observable/evaluate result to scheme variable? | ProBioticum | Fluent UDF and Scheme Programming | 5 | October 8, 2019 08:55 |
emag beta feature: charge density | charlotte | CFX | 4 | March 22, 2011 09:14 |
How to output one variable which is not stored | sun | Phoenics | 3 | June 18, 2002 02:37 |