Pin the RNA to the ground
Posted: Wed Feb 24, 2010 4:46 pm
Dear,
For the RNA defined as follows, I want to pin the first "A" to the ground. I would appreciate to know how I can relate MobilizedBody::pin .... to my code, or there may exist easier way to do that.
CompoundSystem system;
SimbodyMatterSubsystem matter(system);
DecorationSubsystem decoration(system);
DuMMForceFieldSubsystem forces(system);
forces.loadAmber99Parameters();
// Initialize molmodel objects
RNA rna("AAA");
rna.setCompoundBondMobility(BondMobility::Torsion);
rna.setRNABondMobility(BondMobility::Rigid,0,0);
rna.setRNABondMobility(BondMobility::Rigid,1,1);
rna.setRNABondMobility(BondMobility::Rigid,2,2);
system.adoptCompound(rna);
system.modelCompounds();
For the RNA defined as follows, I want to pin the first "A" to the ground. I would appreciate to know how I can relate MobilizedBody::pin .... to my code, or there may exist easier way to do that.
CompoundSystem system;
SimbodyMatterSubsystem matter(system);
DecorationSubsystem decoration(system);
DuMMForceFieldSubsystem forces(system);
forces.loadAmber99Parameters();
// Initialize molmodel objects
RNA rna("AAA");
rna.setCompoundBondMobility(BondMobility::Torsion);
rna.setRNABondMobility(BondMobility::Rigid,0,0);
rna.setRNABondMobility(BondMobility::Rigid,1,1);
rna.setRNABondMobility(BondMobility::Rigid,2,2);
system.adoptCompound(rna);
system.modelCompounds();