mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: additional text expansion shortcuts (issue #792)
Support the following expansions when they occur at the start of a
string:
Short-form Equivalent
========= ===========
<etc>/ ~OpenFOAM/ (as per foamEtcFile)
<case>/ $FOAM_CASE/
<constant>/ $FOAM_CASE/constant/
<system>/ $FOAM_CASE/system/
These can be used in fileName expansions to improve clarity and reduce
some typing
"<constant>/reactions" vs "$FOAM_CASE/constant/reactions"
This commit is contained in:
@ -217,10 +217,15 @@ namespace stringOps
|
||||
// - "$VAR", "${VAR}"
|
||||
// -# current directory
|
||||
// - leading "./" : the current directory
|
||||
// -# leading tag expansion for commonly used directories
|
||||
// - <etc>/ : user/group/other OpenFOAM directory
|
||||
// - <case>/ : FOAM_CASE directory
|
||||
// - <constant>/ : FOAM_CASE/constant directory
|
||||
// - <system>/ : FOAM_CASE/system directory
|
||||
// -# tilde expansion
|
||||
// - leading "~/" : home directory
|
||||
// - leading "~user" : home directory for specified user
|
||||
// - leading "~OpenFOAM" : site/user OpenFOAM configuration directory
|
||||
// - leading "~OpenFOAM" : user/group/other OpenFOAM directory
|
||||
//
|
||||
// Supports default and alternative values as per the POSIX shell.
|
||||
// \code
|
||||
@ -252,10 +257,15 @@ namespace stringOps
|
||||
// - "$VAR", "${VAR}"
|
||||
// -# current directory
|
||||
// - leading "./" : the current directory
|
||||
// -# leading tag expansion for commonly used directories
|
||||
// - <etc>/ : user/group/other OpenFOAM directory
|
||||
// - <case>/ : FOAM_CASE directory
|
||||
// - <constant>/ : FOAM_CASE/constant directory
|
||||
// - <system>/ : FOAM_CASE/system directory
|
||||
// -# tilde expansion
|
||||
// - leading "~/" : home directory
|
||||
// - leading "~user" : home directory for specified user
|
||||
// - leading "~OpenFOAM" : site/user OpenFOAM configuration directory
|
||||
// - leading "~OpenFOAM" : user/group/other OpenFOAM directory
|
||||
//
|
||||
// Supports default and alternative values as per the POSIX shell.
|
||||
// \code
|
||||
|
||||
Reference in New Issue
Block a user