View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Freefem to matlab

5.0 | 1 rating Rate this file 11 Downloads (last 30 days) File Size: 23.8 KB File ID: #26833 Version: 1.0
image thumbnail

Freefem to matlab



A tool to import Freefem meshes into matlab.

| Watch this File

File Information

The function [p e t]=importfilemesh(<name>) reads <name> and creates the corresponding matlab-pde formatted mesh (p, e, t) that can be handeled with the matlab pde toolbox.
The function u=importfiledata(<name>) reads <name> and creates the corresponding matlab node data (u) that can be handeled with the matlab pde toolbox.

The file "freefem_example.edp" generates two files :
- A freefem-formatted mesh : "Gilgamesh.mesh"
- A node data file : ""
The example file shows how to read the mesh and node data generated by "freefem_example.edp", and how to plot them.

Enjoy !

Required Products Partial Differential Equation Toolbox
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
01 May 2016 Erraji Elmahdi

I just need to understand how it work in tree dimension envirenment.

09 Nov 2012 Márleson

After to save the freefem mesh I saved the vectorial solution:

ofstream file("");
file << "2 1 1 "<< u1[].n << " 2 \n";
for (int j=0;j<u1[].n ; j++)
file << u1[][j] <<" "<< u2[][j] << endl;

Now I need to plot velocity vectors as arrows with components (u,v) at the points (x,y).

could you give a example how to do that? Do you have any m-file? Thanks!

Comment only

Contact us