Giter Club home page Giter Club logo

femdl's Introduction

FEMDL

A MATLAB package for a finite element based discretization of dynamic Laplacians

Usage

A typical script which computes coherent sets for a rotating double gyre is

addpath('FEMDL/src/2d'); init

t0 = 0; tf = 1;                                     % initial and final time
v = @double_gyre;                                   % vector field
T = @(x) at_tf(flowmap(v, x, [t0 tf]));             % flow map
DL = @(DT) 0.5*(eye(2) + inv(DT)*inv(DT)');         % dynamic Laplacian
DLx = @(x) fapply1(DL, D(T,x));                     % evaluate DL at each row of x
p = grid2(50,50);                                   % nodes on a grid
m = trimesh(p);                                     % triangulation
A = triquad(m,DLx,2);                               % integrate DL on triangles
[K,M] = assemble2(m,A);                             % assemble stiffness and mass matrix
[V,L] = eigs(K,M,6,'SM');                           % solve eigenproblem
[lam,ord] = sort(diag(L),'descend'); V = V(:,ord);  % sort eigenvalues
figure; plotf2(m,normed(V(:,3))); colorbar;         % plot eigenvector
W = kmeans(V(:,1:3),3,'Replicates',20);             % kmeans clustering
figure; scatter(p(:,1),p(:,2),30,W,'filled');       % plot clustering
Tp = T(p);                                          % advect grid
figure; scatter(Tp(:,1),Tp(:,2),30,W,'filled');     % plot advected clustering
colormap(jet(nc));

eigenvector clustering advected clustering

There are more demo computations provided in experiments/ which should be executed after changing into the corresponding folder.

Compatibility with Octave is currently untested.

Reference

Froyland, G.; Junge, O.: Robust FEM-based extraction of finite-time coherent sets using scattered, sparse, and incomplete trajectories, SIAM J. Appl. Dyn. Syst. 17 (2), p. 1891-1924, 2018. https://arxiv.org/abs/1705.03640

femdl's People

Contributors

gaioguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

femdl's Issues

Octave compatible?

Compatible to free matlab clone octave?
No license is needed for octave.

If yes, please extend your info.
if unknown, untested with octave, info about this also nice.
if no, it is also ok. Some commands are not compatible in octave.
Please make an info in Readme.md

So you are the expert. Perhaps you can make a fast test run.
Here some last infos about octave.
https://wiki.octave.org/Differences_between_Octave_and_Matlab
https://wiki.octave.org/Release_History
https://octave.org/NEWS-7.html

Question re functions

Hello.

Sorry to bother you but are the functions flow_map and triquad missing from the current commit? I managed to find flow_map in an earlier commit but I can not seem to find a function named triquad and as far as I can tell this isn't a Matlab builtin.

Thank you for your time.

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.