CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

argument vector

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 27, 2010, 10:14
Default argument vector
  #1
New Member
 
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 16
peterwy is on a distinguished road
Hello,

I've a problem with predefining two points over commandline arguments

If I use (like in transformPoints) this option:
argList::validOptions.insert("scale", "vector");
=> it is an option, the user can use it but mustn't

What I want to have is something like
argList::validArgs.append("P1z");

With this version the user has to support the point but at the end I'm not able to convert it to a vector in openfoam or at least 3 digits.

Has anybody an idea?

Thanks & best Regards,
Peter
peterwy is offline   Reply With Quote

Old   May 27, 2010, 11:15
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by peterwy View Post
Hello,

I've a problem with predefining two points over commandline arguments

If I use (like in transformPoints) this option:
argList::validOptions.insert("scale", "vector");
=> it is an option, the user can use it but mustn't

What I want to have is something like
argList::validArgs.append("P1z");

With this version the user has to support the point but at the end I'm not able to convert it to a vector in openfoam or at least 3 digits.

Has anybody an idea?

Thanks & best Regards,
Peter
Your on the right track. Just have a look at the source of a utility that needs additional arguments and everything should be clear (for instance rotateMesh, that even reads vector)
gschaider is offline   Reply With Quote

Old   May 27, 2010, 11:18
Default
  #3
New Member
 
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 16
peterwy is on a distinguished road
yeah, that IStreamString was that what I was looking for.

Thx and have a good evening
Peter
peterwy 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
How to get normal vector to the face? Viatcheslav Kulikov FLUENT 1 August 31, 2017 03:03
how does Fluent calculate the pressure and viscous force vector? Ralf Schmidt FLUENT 2 May 17, 2010 15:49
Question about Converting Vector Arrays to Regular Arrays xiao OpenFOAM Running, Solving & CFD 0 September 3, 2008 22:30
what is gradient vector? majestywzh FLUENT 0 April 13, 2003 23:57
vector plot in muliphase? Tasuio CFX 2 September 29, 2002 07:17


All times are GMT -4. The time now is 14:33.