Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 413
    • Issues 413
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #792
Closed
Open
Issue created Apr 10, 2018 by Mark OLESEN@markMaintainer

provide additional text expansion shortcuts

In many places we use the string expansion to provide filenames. Eg,

"${FOAM_CASE}/comms"
"$FOAM_CASE/constant/reactions"
...

And then using the fileName::expand() method or stringOps::expand() to resolve them. Propose to provide some tag short cuts for less clutter. Eg,

"<case>/comms"
"<constant>/reactions"
...

The total number of tags is fairly limited in scope:

<etc>/        => user/group/other OpenFOAM directory
<case>/       => FOAM_CASE directory
<constant>/   => FOAM_CASE/constant directory
<system>/     => FOAM_CASE/system directory

We may consider alternative tag delimiters such as [case]/, but it should be easy to read/type and we should avoid {} delimiters since a simple typo has different meaning and would be a hard to trace input error (eg, ${case} vs {case}).

Assignee
Assign to
Time tracking