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 423
    • Issues 423
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1778
Closed
Open
Issue created Jul 20, 2020 by Matej Forman@matejReporter

Function1Expression vector

Example in file Function1Expression.H for vector is not working (tested on cavity case in U file as is).

Entry in U:

    movingWall
    {
        type            uniformFixedValue;
        uniformValue
            {
            type    expression;
                 variables
            (
                "start = 0.5"
                "stop  = 1"
            );
            expression  #{mag(arg() > start && arg() < stop) * vector(1, 0, 0)  #};
           }
    }

Error message:

Reading field U

--> FOAM Warning :
    From virtual Foam::Istream& Foam::ISstream::read(Foam::word&)
    in file db/IOstreams/Sstreams/ISstream.C at line 482
    Reading "/home/matej/PROJECTS/release2006/cavity/0/U" at line 35
    Missing 1 closing ')' while parsing

mag(arg()

--> FOAM Warning :
    Reading "/home/matej/PROJECTS/release2006/cavity/0/U" at line 35
    Imbalanced '{' with ')'
--> FOAM Warning :
    From virtual Foam::Istream& Foam::ISstream::read(Foam::word&)
    in file db/IOstreams/Sstreams/ISstream.C at line 482
    Reading "/home/matej/PROJECTS/release2006/cavity/0/U" at line 35
    Missing 1 closing ')' while parsing

vector(1,
Assignee
Assign to
Time tracking