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

argument vector

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 27, 2010, 11:14
Default argument vector
  #1
New Member
 
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 7
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, 12:15
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,888
Rep Power: 38
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 online now   Reply With Quote

Old   May 27, 2010, 12:18
Default
  #3
New Member
 
Peter Wiemeyer
Join Date: Sep 2009
Location: Germany, Munich
Posts: 22
Rep Power: 7
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how does Fluent calculate the pressure and viscous force vector? Ralf Schmidt FLUENT 2 May 17, 2010 16:49
Question about Converting Vector Arrays to Regular Arrays xiao OpenFOAM Running, Solving & CFD 0 September 3, 2008 23:30
How to get normal vector to the face? Viatcheslav Kulikov FLUENT 0 January 19, 2006 15:04
what is gradient vector? majestywzh FLUENT 0 April 14, 2003 00:57
vector plot in muliphase? Tasuio CFX 2 September 29, 2002 08:17


All times are GMT -4. The time now is 05:36.