Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Non-orthoginal grid generation

Status
Not open for further replies.

TLamb

Structural
Nov 21, 2002
9
Ok...I have to generate a non-orthogonal grid in a square domain..similar to what I have shown below....I would like to have the option of possibly changing the angle of rotation for the divide line.......Any suggestions...SO far I tried building up the grid using "for loop" statements but it takes a long time for fine meshes....I want to be able to use the meshgrid functions in Matlab..Any suggestions will be greatly appreciated..

Tony


********************
* **************
* *************
* ***********
* *********
* ******
* *****
********************
 
Replies continue below

Recommended for you

It is not clear from your diagram what you mean. Use the TGML "code" tags to display it in a proportional font

eg

["code]
this is my code
["/"code]

(remove the " to get it to work properly)

M

--
Dr Michael F Platten
 
Mickey I tried to format it and I think it should make a bit more sense what type of mesh I am trying to achieve.
The entire domain is meshed but along the sloped line the entire mesh is flipped...The slope is say 45 degrees.
It's as if I have two meshed trapezoids along side each other

Tony

Code:
********************
*     ************** 
*      *************
*        ***********
*          *********
*             ******
*              *****
********************
 
Ok guys here it is...I have loaded a proper GIF of the mesh I want to generate...Once you click the Link I believe you would understand what I am tryin to achieve using matlab

Mesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor