Skip to content

Commit

Permalink
Resolution function and PARAMETERS for SANS (#972)
Browse files Browse the repository at this point in the history
* Add resolution function and PARAMETERSFILE keyword

* Fix warning and improve reading from PARAMETERFILE

* Allows reading PARAMETERS for SANS

* Fix resolution function units

* Remove dot from bibliography

* Add test to SANS with resolution function reading PARAMETERS from file

* astyle changes
  • Loading branch information
hmcezar authored Sep 25, 2023
1 parent 3be5aa0 commit 948e8df
Show file tree
Hide file tree
Showing 10 changed files with 1,736 additions and 24 deletions.
1 change: 1 addition & 0 deletions regtest/isdb/rt-sans/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../../scripts/test.make
2 changes: 2 additions & 0 deletions regtest/isdb/rt-sans/colvar.reference
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#! FIELDS time sans.q-0 sans.q-1 sans.q-2 sans.q-3 sans.q-4 sans.q-5 sans.q-6 sans.q-7 sans.q-8 sans.q-9 sans.q-10 sans.q-11 sans.q-12 sans.q-13 sans.q-14 sans.exp-0 sans.exp-1 sans.exp-2 sans.exp-3 sans.exp-4 sans.exp-5 sans.exp-6 sans.exp-7 sans.exp-8 sans.exp-9 sans.exp-10 sans.exp-11 sans.exp-12 sans.exp-13 sans.exp-14
0.000000 0.987712 0.972288 0.957710 0.911071 0.850477 0.778757 0.698772 0.528043 0.442987 0.366106 0.293353 0.232892 0.178651 0.133932 0.058760 0.567780 0.538400 0.637740 0.570090 0.544870 0.473150 0.398940 0.296550 0.263370 0.212490 0.161590 0.133300 0.095560 0.054072 0.029263
3 changes: 3 additions & 0 deletions regtest/isdb/rt-sans/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mpiprocs=4
type=driver
arg="--plumed plumed.dat --timestep 0.005 --mf_pdb template.pdb"
820 changes: 820 additions & 0 deletions regtest/isdb/rt-sans/forces.reference

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions regtest/isdb/rt-sans/plumed.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
MOLINFO STRUCTURE=template.pdb

# SANS
SANS ...

LABEL=sans
ATOMS=1-270
N=11

# Read parameters from file
PARAMETERSFILE=scatlens.plumed

QVALUE1=0.0110113 EXPINT1=0.56778 SIGMARES1=0.001
QVALUE2=0.0169278 EXPINT2=0.5384 SIGMARES2=0.001
QVALUE3=0.0209899 EXPINT3=0.63774 SIGMARES3=0.002
QVALUE4=0.031085 EXPINT4=0.57009 SIGMARES4=0.002
QVALUE5=0.040975 EXPINT5=0.54487 SIGMARES5=0.003
QVALUE6=0.050954 EXPINT6=0.47315 SIGMARES6=0.003
QVALUE7=0.060951 EXPINT7=0.39894 SIGMARES7=0.003
QVALUE8=0.080938 EXPINT8=0.29655 SIGMARES8=0.004
QVALUE9=0.091069 EXPINT9=0.26337 SIGMARES9=0.005
QVALUE10=0.100795 EXPINT10=0.21249 SIGMARES10=0.006
QVALUE11=0.110893 EXPINT11=0.16159 SIGMARES11=0.007
QVALUE12=0.120377 EXPINT12=0.1333 SIGMARES12=0.008
QVALUE13=0.130277 EXPINT13=0.09556 SIGMARES13=0.009
QVALUE14=0.140141 EXPINT14=0.054072 SIGMARES14=0.01
QVALUE15=0.161951 EXPINT15=0.029263 SIGMARES15=0.01

# METAINFERENCE
# Uncomment the following keywords and adjust parameters to activate METAINFERENCE
# DOSCORE NOENSEMBLE SIGMA_MEAN0=0
# REGRES_ZERO=500
# SIGMA0=5 SIGMA_MIN=0.001 SIGMA_MAX=5.00
# NOISETYPE=MGAUSS

... SANS

PRINT ARG=(sans\.q-.*),(sans\.exp-.*) FILE=colvar STRIDE=1

DUMPDERIVATIVES ARG=(sans\.q-.*) FILE=forces FMT=%.4f

ENDPLUMED
270 changes: 270 additions & 0 deletions regtest/isdb/rt-sans/scatlens.plumed
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
PARAMETERS1=109.3554
PARAMETERS2=48.3351
PARAMETERS3=79.9724
PARAMETERS4=79.9724
PARAMETERS5=86.6434
PARAMETERS6=109.3554
PARAMETERS7=48.3351
PARAMETERS8=79.9724
PARAMETERS9=79.9724
PARAMETERS10=86.6434
PARAMETERS11=109.3554
PARAMETERS12=48.3351
PARAMETERS13=79.9724
PARAMETERS14=79.9724
PARAMETERS15=86.6434
PARAMETERS16=109.3554
PARAMETERS17=48.3351
PARAMETERS18=79.9724
PARAMETERS19=79.9724
PARAMETERS20=86.6434
PARAMETERS21=109.3554
PARAMETERS22=48.3351
PARAMETERS23=79.9724
PARAMETERS24=79.9724
PARAMETERS25=86.6434
PARAMETERS26=109.3554
PARAMETERS27=48.3351
PARAMETERS28=79.9724
PARAMETERS29=79.9724
PARAMETERS30=86.6434
PARAMETERS31=109.3554
PARAMETERS32=48.3351
PARAMETERS33=79.9724
PARAMETERS34=79.9724
PARAMETERS35=86.6434
PARAMETERS36=109.3554
PARAMETERS37=48.3351
PARAMETERS38=79.9724
PARAMETERS39=79.9724
PARAMETERS40=86.6434
PARAMETERS41=109.3554
PARAMETERS42=48.3351
PARAMETERS43=79.9724
PARAMETERS44=79.9724
PARAMETERS45=86.6434
PARAMETERS46=109.3554
PARAMETERS47=48.3351
PARAMETERS48=79.9724
PARAMETERS49=79.9724
PARAMETERS50=86.6434
PARAMETERS51=109.3554
PARAMETERS52=48.3351
PARAMETERS53=79.9724
PARAMETERS54=79.9724
PARAMETERS55=86.6434
PARAMETERS56=109.3554
PARAMETERS57=48.3351
PARAMETERS58=79.9724
PARAMETERS59=79.9724
PARAMETERS60=86.6434
PARAMETERS61=109.3554
PARAMETERS62=48.3351
PARAMETERS63=79.9724
PARAMETERS64=79.9724
PARAMETERS65=86.6434
PARAMETERS66=109.3554
PARAMETERS67=48.3351
PARAMETERS68=79.9724
PARAMETERS69=79.9724
PARAMETERS70=86.6434
PARAMETERS71=109.3554
PARAMETERS72=48.3351
PARAMETERS73=79.9724
PARAMETERS74=79.9724
PARAMETERS75=86.6434
PARAMETERS76=109.3554
PARAMETERS77=48.3351
PARAMETERS78=79.9724
PARAMETERS79=79.9724
PARAMETERS80=86.6434
PARAMETERS81=109.3554
PARAMETERS82=48.3351
PARAMETERS83=79.9724
PARAMETERS84=79.9724
PARAMETERS85=86.6434
PARAMETERS86=109.3554
PARAMETERS87=48.3351
PARAMETERS88=79.9724
PARAMETERS89=79.9724
PARAMETERS90=86.6434
PARAMETERS91=109.3554
PARAMETERS92=48.3351
PARAMETERS93=79.9724
PARAMETERS94=79.9724
PARAMETERS95=86.6434
PARAMETERS96=109.3554
PARAMETERS97=48.3351
PARAMETERS98=79.9724
PARAMETERS99=79.9724
PARAMETERS100=86.6434
PARAMETERS101=109.3554
PARAMETERS102=48.3351
PARAMETERS103=79.9724
PARAMETERS104=79.9724
PARAMETERS105=86.6434
PARAMETERS106=109.3554
PARAMETERS107=48.3351
PARAMETERS108=79.9724
PARAMETERS109=79.9724
PARAMETERS110=86.6434
PARAMETERS111=109.3554
PARAMETERS112=48.3351
PARAMETERS113=79.9724
PARAMETERS114=79.9724
PARAMETERS115=86.6434
PARAMETERS116=109.3554
PARAMETERS117=48.3351
PARAMETERS118=79.9724
PARAMETERS119=79.9724
PARAMETERS120=86.6434
PARAMETERS121=109.3554
PARAMETERS122=48.3351
PARAMETERS123=79.9724
PARAMETERS124=79.9724
PARAMETERS125=86.6434
PARAMETERS126=109.3554
PARAMETERS127=48.3351
PARAMETERS128=79.9724
PARAMETERS129=79.9724
PARAMETERS130=86.6434
PARAMETERS131=109.3554
PARAMETERS132=48.3351
PARAMETERS133=79.9724
PARAMETERS134=79.9724
PARAMETERS135=86.6434
PARAMETERS136=109.3554
PARAMETERS137=48.3351
PARAMETERS138=79.9724
PARAMETERS139=79.9724
PARAMETERS140=86.6434
PARAMETERS141=109.3554
PARAMETERS142=48.3351
PARAMETERS143=79.9724
PARAMETERS144=79.9724
PARAMETERS145=86.6434
PARAMETERS146=109.3554
PARAMETERS147=48.3351
PARAMETERS148=79.9724
PARAMETERS149=79.9724
PARAMETERS150=86.6434
PARAMETERS151=109.3554
PARAMETERS152=48.3351
PARAMETERS153=79.9724
PARAMETERS154=79.9724
PARAMETERS155=86.6434
PARAMETERS156=109.3554
PARAMETERS157=48.3351
PARAMETERS158=79.9724
PARAMETERS159=79.9724
PARAMETERS160=86.6434
PARAMETERS161=109.3554
PARAMETERS162=48.3351
PARAMETERS163=79.9724
PARAMETERS164=79.9724
PARAMETERS165=86.6434
PARAMETERS166=109.3554
PARAMETERS167=48.3351
PARAMETERS168=79.9724
PARAMETERS169=79.9724
PARAMETERS170=86.6434
PARAMETERS171=109.3554
PARAMETERS172=48.3351
PARAMETERS173=79.9724
PARAMETERS174=79.9724
PARAMETERS175=86.6434
PARAMETERS176=109.3554
PARAMETERS177=48.3351
PARAMETERS178=79.9724
PARAMETERS179=79.9724
PARAMETERS180=86.6434
PARAMETERS181=109.3554
PARAMETERS182=48.3351
PARAMETERS183=79.9724
PARAMETERS184=79.9724
PARAMETERS185=86.6434
PARAMETERS186=109.3554
PARAMETERS187=48.3351
PARAMETERS188=79.9724
PARAMETERS189=79.9724
PARAMETERS190=86.6434
PARAMETERS191=109.3554
PARAMETERS192=48.3351
PARAMETERS193=79.9724
PARAMETERS194=79.9724
PARAMETERS195=86.6434
PARAMETERS196=109.3554
PARAMETERS197=48.3351
PARAMETERS198=79.9724
PARAMETERS199=79.9724
PARAMETERS200=86.6434
PARAMETERS201=109.3554
PARAMETERS202=48.3351
PARAMETERS203=79.9724
PARAMETERS204=79.9724
PARAMETERS205=86.6434
PARAMETERS206=109.3554
PARAMETERS207=48.3351
PARAMETERS208=79.9724
PARAMETERS209=79.9724
PARAMETERS210=86.6434
PARAMETERS211=109.3554
PARAMETERS212=48.3351
PARAMETERS213=79.9724
PARAMETERS214=79.9724
PARAMETERS215=86.6434
PARAMETERS216=109.3554
PARAMETERS217=48.3351
PARAMETERS218=79.9724
PARAMETERS219=79.9724
PARAMETERS220=86.6434
PARAMETERS221=109.3554
PARAMETERS222=48.3351
PARAMETERS223=79.9724
PARAMETERS224=79.9724
PARAMETERS225=86.6434
PARAMETERS226=109.3554
PARAMETERS227=48.3351
PARAMETERS228=79.9724
PARAMETERS229=79.9724
PARAMETERS230=86.6434
PARAMETERS231=109.3554
PARAMETERS232=48.3351
PARAMETERS233=79.9724
PARAMETERS234=79.9724
PARAMETERS235=86.6434
PARAMETERS236=109.3554
PARAMETERS237=48.3351
PARAMETERS238=79.9724
PARAMETERS239=79.9724
PARAMETERS240=86.6434
PARAMETERS241=109.3554
PARAMETERS242=48.3351
PARAMETERS243=79.9724
PARAMETERS244=79.9724
PARAMETERS245=86.6434
PARAMETERS246=109.3554
PARAMETERS247=48.3351
PARAMETERS248=79.9724
PARAMETERS249=79.9724
PARAMETERS250=86.6434
PARAMETERS251=109.3554
PARAMETERS252=48.3351
PARAMETERS253=79.9724
PARAMETERS254=79.9724
PARAMETERS255=86.6434
PARAMETERS256=109.3554
PARAMETERS257=48.3351
PARAMETERS258=79.9724
PARAMETERS259=79.9724
PARAMETERS260=86.6434
PARAMETERS261=109.3554
PARAMETERS262=48.3351
PARAMETERS263=79.9724
PARAMETERS264=79.9724
PARAMETERS265=86.6434
PARAMETERS266=109.3554
PARAMETERS267=48.3351
PARAMETERS268=79.9724
PARAMETERS269=79.9724
PARAMETERS270=86.6434
Loading

1 comment on commit 948e8df

@PlumedBot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found broken examples in automatic/a-masterclass-22-09.txt
Found broken examples in automatic/a-masterclass-22-11.txt
Found broken examples in automatic/a-masterclass-22-12.txt
Found broken examples in automatic/performance-optimization.txt
Found broken examples in automatic/a-trieste-6.txt
Found broken examples in automatic/munster.txt
Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/ENVIRONMENTSIMILARITY.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/GHBFIX.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/MAZE_MEMETIC_SAMPLING.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_RANDOM_WALK.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in MiscelaneousPP.md

Please sign in to comment.