GithubHelp home page GithubHelp logo

mesh.hex1's Introduction

Mesh.Hex1

Hex1 P1 Hexahedral structured mesh rectangle (MATLAB)

H = Hex1(x0,x1,nxe,y0,y1,nye,z0,z1,nze)

Methods

Hex1 includes the following methods:

  • Hex1() - The constructor, creates the Hex1Mesh object.
  • Neighbors() - Returns a m-by-4 matrix containing element indices to the neighbors.
  • vizMesh()
  • RefineLocal()
  • RefineLocal()
  • boundaryInds()
  • baseHexP1()

Installation

Put the contents of this repo in the +Mesh@Hex1 folder somewhere in your MATLAB path.

Demo

%Create mesh
ne = 2;
x0 = -1;x1 = 1;y0 = -1;y1 = 1;z0 = -1;z1 = 1;
nxe = ne;nye = ne;nze = ne;
H = Hex1Mesh(x0,x1,nxe,y0,y1,nye,z0,z1,nze);
H.vizMesh('ElementNumbers','NodeNumbers');

Mesh numbering

The mesh is numbered according to the figure below. The red and cyan colors are used to explain the refinement algorithm.

mesh.hex1's People

Contributors

cenmir avatar

Watchers

 avatar

Forkers

yaoyaobae

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.