The clean way would require extending the code.
2011/3/15 Sikandar Mashayak <symas...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "votca" group.
> To post to this group, send email to vo...@googlegroups.com.
> To unsubscribe from this group, send email to
> votca+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/votca?hl=en.
>
unless you change your basis set for cg force field (cut-off, add
interactions, etc) or add some bias to fit procedure (extension to
code needed), you will probably end up with identical potentials as
doing only force matching.
However, technically it can be done the following:
- csg_map --in traj.trr --out traj_cg.trr --cg mapping.xml (same for conf.gro)
- prepare coarse-grained topolology with already known potentials
- mdrun -rerun traj_cg.trr (trajectory will contain knowledge based forces)
- csg_fmatch --trj traj.trr --force-trj traj_rerun_cg.trr (fill give
error force)
You could test whether you did it correct be using force-matching
potentials as input for rerun -> error force should vanish
Victor
2011/3/31 Sikandar Mashayak <symas...@gmail.com>:
on csg_fmatch --trj-force (mixed it up --force-trj was wrong):
indeed, it seems like i forgot to merge that into the stable/default
branch. Will fix it by tomorrow and let you know when done.
on testing:
With --trj-force you can specify a coarse-grained trajectory whose
forces are subtracted before force fitting procedure. If you now put
in the potentials obtained in a previous forcematching step, these are
subtracted -> the forces which are fitted should be zero (the fit
depends on specified interactions, if you don't change these it should
give identical results, since these are already subtracted -> zero).
This is good to check whether your setup of coarse-grained topology is
correct (interactions specified correctly) and all steps I mentioned
went fine.
Hope that helped.
Cheers,
I made changes and options should be available now. Please reinstall
csg (either stable or developer version from repositories). Tarballs
are not yet updated.
I'm not aware of any gromacs tool which does it. However that would be
a perfect exercise to get startet with votca development :) It's 3
additional lines in the template.cc. I can help you to get started.
Victor
2011/4/1 Sikandar Mashayak <symas...@gmail.com>:
string out = "foo.trr";
_writer = TrjWriterFactory().Create(out);
if(_writer == NULL)
throw runtime_error("output format not supported: " + out);
_writer->Open(out);
_writer->Write(top);
_writer->Close();
delete _writer;
You can access topology class to make changes
(http://doxygen.votca.googlecode.com/hg/classvotca_1_1csg_1_1Topology.html)
2011/4/2 Sikandar Mashayak <symas...@gmail.com>: