simpleFoam crash fast!
Hi..
after meshing my case successfully, I run simpleFoam, to obtain the following error. can anyone tell me what should i do? Quote:
|
Looks like you forgot the word "uniform" for your velocity inlet boundary condition
|
hi
this is my file for U.. I have not forgotten the word uniform..:( Quote:
|
all your "$"-parameters are not set.
I assume you should run a script which replaces all the $-parameters with right value |
dear Max,
can you please elaborate...:( where to define those parameters? i mean which folders? |
I am not experienced with atmBoundaryLayerInletVelocity, but for sure the third line of your U file should look like "internalField uniform (0 0 0);"
where (0 0 0) is the velocity vector for domain initialization. But you have "internalField uniform $flowVelocity;" $flowVelocity is a parameter for a script, which should automatically set the velocity vector (understand replace $flowVelocity with the right vector). So either you get this script, and you run it, or you replace all the "$-parameters" with their right values. The script is not a part of OF. |
hi thanks for the reply dear max
can you tell me what does the followingh error means? I get this when i run ./Allrun Quote:
|
edit "Allrun" file and check what it is supposed to do.
|
Quote:
|
i got that case from the net and each i am geting the same error..
|
check this script runAskervein.py
|
Have you installed pyFoam?
|
On installing the pyFOam and again running ./Allrun.. i obtain the foll error..
Quote:
|
Quote:
Max when i do the command its says: Quote:
|
with check I meant edit the file and check what it is executing...
For running it, you have to know which arguments etc... you have to enter. But I don't know exactly what does this script and I suggest you to ignore it and go back to basics: set your BC properly and run simpleFoam. |
simpleFoam error due to atmBoundaryLayerInletVelocity
Each time same error.. I need help badly
Quote:
|
Quote:
Code:
#include "include/initialConditions" Code:
flowVelocity (10 0 0); |
Quote:
I never used "include/initialConditions |
The correct values will be used. Pretty handy if you need variables at multiple places. You can include any file that you wish. For example, sometimes I include the blockMeshDict in the setFieldsDict, works perfectly fine.
Especially in OF 2.2, there are some advanced possibilities, see: http://www.openfoam.org/version2.2.0/pre-processing.php |
Hi Bernard Below is my ABL file.. I have configured everyhting step by step and all my $ have been already initialised.. still i get error..:(
Quote:
|
Quote:
Thanks for the refresh-session, I need vacation... |
What is in "include/initialConditions"? Any zero-values accidentally? Please check with implementation.
|
no zero value..:(
Quote:
|
Where did you define these variable? I assumed they were in this include file?
Uref $Uref; Href $Href; n $windDirection; z $zDirection; z0 $z0; zGround $zGround; |
Quote:
|
Hi izna,
Have you solved the problem? I‘m trying to do the same case with you and I also find the error: PyFoam.ThirdParty.pyratemp.TemplateSyntaxError: line 2, col 1: invalid syntax (, line 1) If you have made any progress, please tell me. Best regards sunxing |
pyfoam, templates, error
Hello. Newbie on this pyfoam automation thing.
Anybody knows why pyfoam crashes when trying to invoke template.writeToFile? template.writeToFile(bmName,{'z0':z0,'us':us}) gets the following error: Traceback (most recent call last): File "./run_z0.py", line 113, in <module> main(template0, template, orig, target0, withBlock, z0) File "./run_z0.py", line 73, in main template = TemplateFile(bmName+".template") File "/usr/local/lib/python2.7/site-packages/PyFoam/Basics/TemplateFile.py", line 381, in __init__ escape=None File "/usr/local/lib/python2.7/site-packages/PyFoam/ThirdParty/pyratemp.py", line 1190, in __init__ parsetree = p.parse(tmpl) File "/usr/local/lib/python2.7/site-packages/PyFoam/ThirdParty/pyratemp.py", line 547, in parse return self._parse(template) File "/usr/local/lib/python2.7/site-packages/PyFoam/ThirdParty/pyratemp.py", line 755, in _parse self._parse_sub(parsetree, template[curr:], fpos) File "/usr/local/lib/python2.7/site-packages/PyFoam/ThirdParty/pyratemp.py", line 578, in _parse_sub self._testexpr(match.group("sub"), fpos+start) File "/usr/local/lib/python2.7/site-packages/PyFoam/ThirdParty/pyratemp.py", line 560, in _testexpr raise TemplateSyntaxError(err, self._errpos(fpos)) :( Quote:
|
Quote:
Code:
expressionDelimiter="$" Code:
template = TemplateFile( bmName + ".template",expressionDelimiter="$") I know its too late to post this but I do it to help others having this problem since it was hard to find a solution for me. |
Thanks ZenCFD for the solution. But how did you locate the error?
|
All times are GMT -4. The time now is 02:05. |