Creating circular shape through programming
Hello Everyone,
I want to create a circle with help of programming for computation. I tried by equation of circle but i am not able to compute with the entire circle. Can i get guidance on how to create circle and then compute around it Thank you |
I can not catch what is the problem?
could you please detail it. create a circle for what? grid generation? |
Yes, for grid generation and then computing in that points
|
try gmesh
http://geuz.org/gmsh/ |
Thank you sir,
But gmesh is the software, i wanted to write my own C code to generate circle and then compute |
I guess you need to state your problem more clearly before we can try to help!
|
Quote:
if you try to generate the unstructured grid, try find some free procedure on this page http://people.sc.fsu.edu/~jburkardt/...c/cpp_src.html hope this help you |
Quote:
|
So is your problem related to the meshing of the geometry, or to the solution of the associated PDEs?
|
?
Is the answer as simple as this: x = r*cos(theta) y = r*sin(theta) It seems that way. |
Quote:
|
Quote:
Quote:
So please restate your problem and show us the steps you have taken to solve it, then we might help. just restating "I have a problem" won't enable us to help you! |
Quote:
If staircase shapes are not allowed then you could use grid transformation or unstructured grid. |
Quote:
I want to create a 2D rectangular unstructured grid with a circle of diameter 0.2 times the smallest side of the rectangle. The circle is on the center of the rectangular grid The grid is finer near the circle and coarse away from it. So, i want to create this grid in x, y coordinate using "for" and other iterative loops in c programming (also using arrays) After generating grid i will use these grid points to solve NS equations. |
Well, how do you want to create the grid? There are many ways to do it. You can use an elliptic solver, triangulate by Delauny.... what type of grid? structured hexas? triads?
I would recommend you do some reading up on grid generation and identify what requirements you have before starting with this... |
All times are GMT -4. The time now is 01:19. |