tutorial 2.2 Stress(...) trouble with blockMesh
Hi
I'm currently making my way through the tutorials to get a little bit more acquainted with OF, but in the 2nd tutorial (the one with the stress analyzes) I get stuck in the meshgeneration. I'm using OF 1.7.1 So I'm going into the case directory and I'm using the provided blockMeshDict file and just type blockMesh. Then the following error message shows up: Code:
Thanks for your trouble kind regards Colin Edit: I made a new discovery: using the blockMesh command in the polyMesh folder for some reason does not work, but copying the blockMeshDict to the case folder and executing blockMesh does work. So my question is: Is that normal that it works like this and I have to accept it or is this some irregularity in OF? |
Hi Colin,
it is the usual way to call the blockMesh command from the case folder, although the blockMeshDict file resides in the constant/polyMesh folder. That is the default location where blockMesh looks for the dictionary. You can select a blockMeshDict at another location with the option Code:
blockMesh -dict full/path/to/blockMeshDict Martin |
Hi Martin
thanks for the hint. That makes me OF understand little more! Kind regards Colin |
Hi its me again
new day new problem. I know that the problem is not matching with the title anymore, but I didn't want to open a new thread for every problem I have. However what is wrong: I'm trying to model a simple problem with block mesh a box with 4 walls one inlet, one outlet, top and down and in this box is an obstacle slightly irregular shaped. Aim is it to let some water flow around with icoFoam So the following blockMeshDict file was set up: Code:
convertToMeters 1; Code:
Build : 1.7.1-fffd2c682d50 He refers to a patch 1 having trouble with face 4 and the neighbors. 4(17 53 57 21). However I figured out that this might have something to do with the orientation of the patch so I permuted the point numbers both of the patch and the linked box. and it helped nothing. Also the search in the Forum and with google didn't give me sufficient results to solve the problem. Thanks for your efforts again regards Colin |
1 Attachment(s)
Hi Colin,
you mixed up with some of the node numbers. See the attached image, which is a screen shot from pyFoamDisplayBlockMesh.py, a tool you can download from here: http://openfoamwiki.net/index.php/Co...Foam#Downloads Install it and start Code:
pyFoamDisplayBlockMesh.py constant/polyMesh/blockMeshDict Code:
pyFoamDisplayBlockMesh.py path/to/your/blockMeshDict Martin |
Thanks again Martin
you saved my day. sometimes you can't see the blocks for the patches. regards |
Hi
I have some trouble with the hint from Martin (pyFoam) After installing everything that is necessary to run pyFoam or at least the command pyFoamDisplayBlockMesh.py I still get an error message telling me : Trying VTK implementation from Paraview PyFoam FATAL ERROR on line 28 of file /usr/local/lib/python2.6/dist-packages/PyFoam/Applications/DisplayBlockMeshQt.py : Error while importing modules: No module named paraview So this is what I did the hole morning: - installing pyFoam - installing some numpy files since they were missing then I got the above mentioned error message so I downloaded some VTK.tar folder and untared it I figured out that cmake was missing so I downloaded this as well untared it and made the binaries and installed it, then did the same with VTK, configuring the installation like this that python is immediately wrapped in it (I did this intuitive, because I thought it might help) Well I thought now it actually should work, but it didn't and so I come to you again hoping for some help. If you have some ideas let me know, if you are missing some information, let me know as well. Can surely be that I forgot something to mention since I messed around the hole morning. regards Colin |
Hi all
I'm still struggling with this issue I mentioned above. After setting up the whole system new (for some other reason) I installed pyFoam new more or less straight forward: - download the latest tar file - follow the instruction of the pyFoam Wiki - encounter a error message that numpy and numerical extensions for python are missing and that plotting is not possible - installing numpy-Python extension - installing pyFoam again - everything works out fine - test works out fine - trying to display the Mesh of the cavity tutorials with the command (executing it in the case directory): pyFoamDisplayBlockMesh.py constant/polyMesh/blockMeshDict results in a error message: Code:
PyFoam FATAL ERROR on line 28 of file /usr/local/lib/python2.6/dist-packages/PyFoam/Applications/DisplayBlockMeshQt.py : Error while importing modules: No module named paraview again I thank you for your trouble kind regards Colin |
Hi Colin,
I recently struggled with this problem myself. I seem to have resolved the issue so I will post the solution here for future reference. Digging into the error a little bit you will find the following lines in DisplayBlockMeshQt.py which on my system (Ubuntu 32-bit) is located at: Code:
/usr/local/lib/python2.7/dist-packages/PyFoam/Applications/DisplayBlockMeshQt.py Code:
def doImports(): Cheers, Caleb |
All times are GMT -4. The time now is 02:06. |