|
[Sponsors] |
why "p0_3-.5*internalField(rho)*sqr(U)" gives error? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 12, 2013, 15:48 |
why "p0_3-.5*internalField(rho)*sqr(U)" gives error?
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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"; } 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' |
|
April 12, 2013, 16:53 |
|
#2 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
thanks.I figure it out.it should be magSqr(U)
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 18:00 |
c++ libraries and solver compiling | vaina74 | OpenFOAM Installation | 13 | February 3, 2012 17:43 |
[OpenFOAM] Saving ParaFoam views and case | sail | ParaView | 9 | November 25, 2011 15:46 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |
user defined function | cfduser | CFX | 0 | April 29, 2006 10:58 |