Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test_forma1d.m → 1d_trap/test_forma1d.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

load forma1d.mat

[k_forma1d, D_forma1d] = forma1d(s-s0, Dt, gamma);
[k_forma1d, D_forma1d] = forma1d(x-x0, Dt, gamma);

disp(['FORMA 1D results:'])
disp(['k* = ' num2str( k_forma1d ) ' N/m'])
Expand Down
Binary file added 2d_forcefield/.DS_Store
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
Binary file added 2d_trap/.DS_Store
Binary file not shown.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test_forma2d.m → 2d_trap/test_forma2d.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
clc

load forma2d.mat
x=p-p0;
y=q-q0;
x=x-x0;
y=y-y0;
[k_forma2d, Omega_forma2d, theta_forma2d, D_forma2d] = forma2d([x,y], Dt, gamma);

disp(['FORMA 2D results:'])
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ Laura Pérez García, Jaime Donlucas Pérez, Giorgio Volpe, Alejandro V. Arzola,
Nature Communications 9, 5166 (2018)
https://doi.org/10.1038/s41467-018-07437-x

# 1. Requirements to implement FORMA codes in Matlab

The data points of your trajectories should be in in a way that the origin is in the center of the trap, i. e. where the $F=0$


http://softmatterlab.org


![double_well](https://user-images.githubusercontent.com/47359519/60442443-5246d500-9c19-11e9-9fcc-77b35dfe46bc.jpg)

Binary file removed test_forma2d.mat
Binary file not shown.