Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 381
    • Issues 381
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #2276

Closed
Open
Created Nov 23, 2021 by Mark Olesen@markMaintainer

extend dictionary directives

On an issue raised on cfd-online, the user was attempting to use #calc to report dictionary values. For example,

myVariable      42;
#calc "Info << $myVariable << endl";

which supposed works somehow, but I cannot figure out how.

In a somewhat similar vein (in EP1742), they were misusing #calc to perform string concatenation. For example,

_foName #calc #{ "some_prefix_solverInfo_${application}" #};
$_foName
{
   type            solverInfo;
   libs            (utilityFunctionObjects);
   fields          (".*");
}
#remove _foName;

As both cases illustrate, there must be a better way to solve this.

Assignee
Assign to
Time tracking