CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   why "p0_3-.5*internalField(rho)*sqr(U)" gives error? (http://www.cfd-online.com/Forums/openfoam-pre-processing/116098-why-p0_3-5-internalfield-rho-sqr-u-gives-error.html)

immortality April 12, 2013 15:48

why "p0_3-.5*internalField(rho)*sqr(U)" gives error?
 
the BC is:
Code:

left
    {
        type groovyBC;

        variables (
                 
                 
                  "p0_3=932190;"
                 
);

   
       
      fractionExpression "0<=pos().y&&pos().y<=.003?0:1";
      valueExpression "p0_3-.5*internalField(rho)*sqr(U)";
      value uniform 303975;//932190
      gradientExpression "0";
       
    }

and the error is:
Code:

[2] --> FOAM FATAL ERROR:
[2] [1]
[3]
[3]
Parser Error for driver PatchValueExpressionDriver at "1.34-33" :"syntax error, unexpected $end"
"p0_3-.5*internalField(rho)*sqr(U)"

-----------------------------------

Context of the error:


- From dictionary: /home/ehsan/Desktop/shock_tube_constant_incomp/processor2/0/p.boundaryField.left
Evaluating expression "p0_3-.5*internalField(rho)*sqr(U)"
[2]
[2]
[2]    From function parsingValue
[2]    in file lnInclude/CommonValueExpressionDriverI.H at line 1039.
[2]
FOAM parallel run exiting
[2]
[3] --> FOAM FATAL ERROR:
[1]
[1] --> FOAM FATAL ERROR:
[1]  Parser Error for driver PatchValueExpressionDriver at "1.34-33" :"syntax error, unexpected $end"
"p0_3-.5*internalField(rho)*sqr(U)"

-----------------------------------

Context of the error:


- From dictionary: /home/ehsan/Desktop/shock_tube_constant_incomp/processor1/0/p.boundaryField.left
Evaluating expression "p0_3-.5*internalField(rho)*sqr(U)"
[1]
[1]
[1]    From function parsingValue
[1]    in file lnInclude/CommonValueExpressionDriverI.H at line 1039.
[1]
FOAM parallel run exiting
[1]

[0] --------------------------------------------------------------------------
MPI_ABORT was invoked on rank 2 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------

[0] --> FOAM FATAL ERROR:
[0]  Parser Error for driver PatchValueExpressionDriver at "1.34-33" :"syntax error, unexpected $end"
"p0_3-.5*internalField(rho)*sqr(U)"

-----------------------------------

Context of the error:


- From dictionary: /home/ehsan/Desktop/shock_tube_constant_incomp/processor0/0/p.boundaryField.left
Evaluating expression "p0_3-.5*internalField(rho)*sqr(U)"
[0]
[0]
[0]    From function parsingValue
[0]    in file lnInclude/CommonValueExpressionDriverI.H at line 1039.
[0]
FOAM parallel run exiting
[0]
[3]  Parser Error for driver PatchValueExpressionDriver at "1.34-33" :"syntax error, unexpected $end"
"p0_3-.5*internalField(rho)*sqr(U)"

-----------------------------------

Context of the error:


- From dictionary: /home/ehsan/Desktop/shock_tube_constant_incomp/processor3/0/p.boundaryField.left
Evaluating expression "p0_3-.5*internalField(rho)*sqr(U)"
[3]
[3]
[3]    From function parsingValue
[3]    in file lnInclude/CommonValueExpressionDriverI.H at line 1039.
[3]
FOAM parallel run exiting
[3]
--------------------------------------------------------------------------
mpirun has exited due to process rank 3 with PID 9936 on
node Ehsan-com exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------
[Ehsan-com:09929] 3 more processes have sent help message help-mpi-api.txt / mpi-abort
[Ehsan-com:09929] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
Killing PID 9927
 PyFoam WARNING on line 232 of file /usr/local/lib/python2.7/dist-packages/PyFoam/Execution/FoamThread.py : Process 9927 was already dead
Getting LinuxMem: [Errno 2] No such file or directory: '/proc/9927/status'

why?!;)

immortality April 12, 2013 16:53

thanks.I figure it out.it should be magSqr(U)


All times are GMT -4. The time now is 06:54.