Increasing mesh density in a specific... Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Increasing mesh density in a specific direction in 3D « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Mehdi Naderi (mnader4)
Member
Username: mnader4

Post Number: 49
Registered: 12-2006
Posted on Wednesday, July 30, 2008 - 06:10 pm:   

Dear Mr. Nelson,
How can I increase mesh density through thickness (Y direction) in my model (attached file)and course mesh through width?
I tried with mesh_spacing, but It didnt work.
I will appreciate if you help me
application/octet-stream3D Model
1.pde (6.0 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

Marek Nelson (mgnelson)
Moderator
Username: mgnelson

Post Number: 56
Registered: 07-2007
Posted on Wednesday, July 30, 2008 - 08:34 pm:   

MESH_SPACING is similar to boundary conditions, in that the specification continues until changed. So if you want to have small spacing in the X dimension and large spacing in the Y dimension (or vice versa), you need to change the value of MESH_SPACING on the x and y line segments of your region.

For example:
START(0,0) mesh_spacing = 0.03
LINE TO (1,0) mesh_spacing = 10
LINE TO (1,1) TO (0,1) TO CLOSE

This will make the mesh spacing small only on the one side of the square region. See the attached graphic.

Large MESH_SPACING values can be ignored by FlexPDE if the geometry of the problem requires smaller spacing. Sometimes it will be difficult to see the effect of your MESH_SPACING if this is happening. I suspect it is difficult to see the effect in your problem because the region is long and narrow.

If what you wanted was to create mesh triangles that are long and narrow, the above is not sufficient because FlexPDE tries to create equilateral triangles. If you want long and narrow cells in your region, you will have to use coordinate scaling in the Y dimension.

2d region grid

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration