CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Calling a stored variable within a command

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2023, 12:42
Default Calling a stored variable within a command
  #1
Member
 
Join Date: Aug 2021
Posts: 59
Rep Power: 4
cons013 is on a distinguished road
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?
cons013 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:32.