|
[Sponsors] |
[blockMesh] spline not working, straight line assumed correct |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 5, 2016, 16:36 |
spline not working, straight line assumed correct
|
#1 |
Member
Fynn
Join Date: Feb 2016
Posts: 48
Rep Power: 10 |
Hello together,
I am having trouble using the spline command: If you look at my blockMeshDict file, you find 4 splines. Now, running blockMesh I have the same result as without these 4 splines defined, i.e. no curved edges but straight lines. No error messages appear in either case... I reduced my geometry to this one block but can't spot the error. The blockMeshDict file is generated through an algorithm, but that shouldn't make a difference. Finally, I have a simple example, in which splines work fine. Help is greatly appreciated!! |
|
March 5, 2016, 18:39 |
|
#2 |
Senior Member
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 12 |
well, actually i'd say your blockMeshDict looks perfectly fine. There is only one thing that could lead to your problem.
You have only defined one cell in each direction for the block. As this is a hexahedral mesher you won't get any curved edges with just one cell. Try: Code:
blocks ( hex (0 1 5 4 2 3 7 6) (20 20 20) simpleGrading (1 1 1) ); Cheers Alex |
|
March 6, 2016, 03:55 |
|
#3 |
Member
Fynn
Join Date: Feb 2016
Posts: 48
Rep Power: 10 |
Hi Alex,
Thanks for your answer! That works well but i find it a bit unsatisfactory: The higher resolution grid approximates the spline well, but still, respective vertices are connected by straight lines. So is it in general possible to generate curved edges or are curves approximated with a number of straight lines, depending on the resolution given? If so, what then is the difference between a spline edge and a ployLine edge? This edge should be spiral shaped. For that it'd be good to define a spline edge over several blocks, because i could use block vertices on the edge for the support of the spline. The inner blocks are already pretty small, so I don't really want to increase their resolution much. Any idea how to achieve that? cheers, Fynn |
|
March 6, 2016, 05:09 |
|
#4 | |
Senior Member
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 12 |
Quote:
The difference between a spline edge and a polyLine - as I see it - is the interpretation of the given interpolation points. A polyLine will mathematically connect the given interpolation points with straight edges and mesh along those edges. A spline will try to create a smooth curve following all given interpolation points. That means, given an infinite number of interpolation points, your polyLine will become a spline. That being said, you still won't get a curved edge with just one cell. However, your curve of the spline is just as good as the given cell resolution as well as the number of interpolation points put in the blockMeshDict. For example, I sometimes create airfoil meshes with blockMesh. For this purpose, I define the upper and lower edge of the foil as splines with 1000+ interpolation points for 1m of chord length. It really makes a difference in the end. What you could try is using matlab for this. You put in your initial spline coordinates, let matlab put a spline through it and then sample this created spline as often as you want. Then, you take the resulting output spline coordinate matrix and put it into blockMesh. Cheers Alex |
||
Tags |
arc, blockmesh, spline |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' | muth | OpenFOAM Running, Solving & CFD | 3 | August 27, 2018 05:18 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
Problem of compilation OF 14Allwmake command not found | erik_d | OpenFOAM Bugs | 13 | September 13, 2008 22:45 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 08:36 |
[blockMesh] BlockMeshmergePatchPairs polyTopoChanger | benru | OpenFOAM Meshing & Mesh Conversion | 3 | June 29, 2008 22:24 |