Mesh defining with parameters
Hi everyone,
I want to simulate a kind of tubular heat exchanger and prepared the mesh via blockmesh. Because of its symmetry I made the model as a wedge. Maybe this is irrelevant depending my question but I get the same warning for a change in the geometry setup. For some bigger angles I get the known (?) error below. Quote:
All constructive data are set as parameters in the first part of the blockMeshDict file. There comes the strange thing, I recognised that it is not a problem to do some calculation with the parametric setup but for the grading it is not possible. I did the grading as shown below according to this file: http://www.wolfdynamics.com/wiki/mes..._blockmesh.pdf Code:
hex (5 7 8 9 23 25 26 27) ($ZR3 $ZL2 1) simpleGrading // Block 3 Fluid At this time my blockMeshDict file looks like this and it works fine. But I would prefer to calculate the FF dependent on EE as shown in the commented lines: Code:
// Grading der Zellen, Ringspalt So far I realised in the last few attemts that the meshing works with values for EE<2. I have no problem setting one more parameter for FF but I would like to know why this calculation is not working in that intented use. Does anyone have a clue? Best regards Michael |
I have no idea regarding the main question (my apologies), but please use `eval` instead of `calc` to gain considerable level of speed by avoiding compilations.
|
I came across something similar, when creating wedge geometries along with inline calculation using blockMesh.
I could solve my problems by increasing the setting for writePrecision to 10 or higher. Note, that some mesh-generation or -processing tools will always write in ASCII, hence changing to writing in binary format will not always solve such issues. |
Quote:
I tried a few variations but later I found out that this is not working with my Foundation version OF8. Nevertheless, this and some other features I'll try in a further upcoming case... Quote:
I tried but without success in my case. I'll keep it in mind but go on with setting the FF parameter. Enough other jobs at my first case so far... Best regards Michael |
Hi,
Would you consider to attach the blockMeshDict of yours, so that we can try to test it locally? |
Quote:
Here it is: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Thanks in advance, I have to leave for today but will be back latest at the weekend. Best regards Michael |
Hi everyone,
I tried to use the OF2012 version just to see if there is a difference to OF8. Strange things happened... I used the blockMeshDict file as listed above and OF2012 gave me this error: Quote:
Also checkMesh gave that reportings: Quote:
Gave me the very first warning as seen in the beginning of this thread: "Either correct the patch or split it into planar parts" checkMesh told me: Quote:
Meshing seems ok and only two mesh check failed with two reports as above: Quote:
I see that there are differences between OF8 and OF2012. This might be too many different steps listed but maybe this helps somebody... I tried this meshing with my laptop and will try the calculation on my other machine by next week. Am I right that the zero face and max skewness shouldn be a problem with the wedge type? Best regards Michael |
1 Attachment(s)
Is it possible to introduce stretching through a formula in blockMesh. For example, introduce stretching through the attached expression.
Any hint how to do so? |
Quote:
At the moment I still have a similar problem with angles and the "asin" function. Maybe someone else has a hint? Best regards |
I managed to introduce stretching, but not with blockMesh. But still facing a minor issue!
|
1 Attachment(s)
Meanwhile I changed my workstyle to get the mesh for the calculation.
At the beginning I thought it is a good idea to do all the parametric calculation in the blockMesDict. Meanwhile I changed the calculation to Excel. I got my parametric values and depending on them I calculate the vertices. In the attached pic is an example. Beginning in line 13 I copy to paste in blockMesDict. For me this is easier to handle. Also debugging is easier. Maybe this helps some other users. Best reagrds, Michael Attachment 83227 |
All times are GMT -4. The time now is 06:09. |