Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

colvarscript_commands_colvar.h File Reference

Go to the source code of this file.


Functions

CVSCRIPT (colvar_addforce,"Apply the given force onto this colvar and return the same\n""force:float or array-Applied force;matches colvar dimensionality", 1, 1,"force:float or array-Applied force;must match colvar dimensionality", std::string const f_str(script->obj_to_str(script->get_colvar_cmd_arg(0, objc, objv)));std::istringstream is(f_str);is.width(cvm::cv_width);is.precision(cvm::cv_prec);colvarvalue force(this_colvar->value());force.is_derivative();if(force.from_simple_string(is.str())!=COLVARS_OK){script->add_error_msg("addforce:error parsing force value");return COLVARSCRIPT_ERROR;}this_colvar->add_bias_force(force);script->set_result_colvarvalue(force);return COLVARS_OK;) CVSCRIPT(colvar_communicateforces
Communicate bias forces from
this colvar to this_colvar communicate_forces ()
CVSCRIPT (colvar_cvcflags,"Enable or disable individual components by setting their active flags", 1, 1,"flags:integer array-Zero/nonzero value disables/enables the CVC", std::string const flags_str(script->obj_to_str(script->get_colvar_cmd_arg(0, objc, objv)));std::istringstream is(flags_str);std::vector< bool > flags;int flag;while(is >> flag){flags.push_back(flag!=0);}int res=this_colvar->set_cvc_flags(flags);if(res!=COLVARS_OK){script->add_error_msg("Error setting CVC flags");return COLVARSCRIPT_ERROR;}script->set_result_str("0");return COLVARS_OK;) CVSCRIPT(colvar_delete
CVSCRIPT (colvar_get,"Get the value of the given feature for this colvar\n""state:1/0-State of the given feature", 1, 1,"feature:string-Name of the feature", return script->proc_features(this_colvar, objc, objv);) CVSCRIPT(colvar_getappliedforce
matches the colvar script set_result_colvarvalue (this_colvar->applied_force())
CVSCRIPT (colvar_resetbiasforce,"Return the total of the forces applied to this colvar", 0, 0,"", this_colvar->reset_bias_force();return COLVARS_OK;) CVSCRIPT(colvar_getatomgroups

Variables

Communicate bias forces from
this colvar to atoms
return COLVARS_OK
Delete this colvar
Delete this along with all
biases that depend on it
Delete this along with all
biases that depend on delete this_colvar
Return the total of the forces
applied to this colvar n force
matches the colvar dimensionality
Return the atom indices used
by this colvar as a list of
lists n groups
Return the atom indices used
by this colvar as a list of
lists n std::string result

Function Documentation

Communicate bias forces from this colvar to this_colvar communicate_forces ( )

CVSCRIPT ( colvar_resetbiasforce ,
"Return the total of the forces applied to this colvar" ,
0 ,
0 ,
"" ,
reset_bias_force();return COLVARS_OK;
)

CVSCRIPT ( colvar_get ,
"Get the value of the given feature for this colvar\n""state:1/0-State of the given feature" ,
1 ,
1 ,
"feature:string-Name of the feature" ,
return script- ,
proc_features(this_colvar, objc, objv);
)

CVSCRIPT ( colvar_cvcflags ,
"Enable or disable individual components by setting their active flags" ,
1 ,
1 ,
"flags:integer array-Zero/nonzero value disables/enables the CVC"
)

CVSCRIPT ( colvar_addforce ,
"Apply the given force onto this colvar and return the same\n""force:float or array-Applied force;matches colvar dimensionality" ,
1 ,
1 ,
"force:float or array-Applied force;must match colvar dimensionality"
)

matches the colvar script set_result_colvarvalue ( this_colvar- ,
applied_force()
)


Variable Documentation

Communicate bias forces from this colvar to atoms

matches the colvar

Definition at line 77 of file colvarscript_commands_colvar.h.

Referenced by colvarmodule::parse_colvars.

return COLVARS_OK

Definition at line 81 of file colvarscript_commands_colvar.h.

matches the colvar dimensionality

Definition at line 77 of file colvarscript_commands_colvar.h.

Return the total of the forces applied to this colvar n force

Return the atom indices used by this colvar as a list of lists n groups

Definition at line 94 of file colvarscript_commands_colvar.h.

Delete this along with all biases that depend on it

Return the atom indices used by this colvar as a list of lists n std::string result

Definition at line 94 of file colvarscript_commands_colvar.h.

Referenced by access_tcl_atomsel, as_constcharptr, as_int, as_pyint, as_pystring, colvarmodule::quaternion::as_vector, colvarmodule::rvector::as_vector, atomsel_repr, atomselection_subscript, call_callbacks, compute_norm2_stats, contacts, cylinder_array_bounds, cylinder_array_color_bounds, FrameSelector::do_dialog, colvarbias_restraint_linear::energy_difference, colvarbias_restraint_harmonic::energy_difference, colvarproxy_atom_groups::get_num_active_atom_groups, colvarproxy_atoms::get_num_active_atoms, colvarparams::get_param_grad_names, colvarparams::get_param_names, colvarvalue::inner_opt, legacy_atomsel_get, measure_fit, molecule_tcl, colvarvalue::norm2, colvarmodule::vector1d::norm2, OptiXPrintRayStats, OptiXWriteImage, colvarvalue::p2leg_opt, poisson_sample_on_sphere, py_add, py_allmacros, py_atomselect, py_evaltcl, py_fit, py_get, py_get_accessions, py_get_autoupdate, py_get_databases, py_get_filenames, py_get_filetypes, py_get_remarks, py_hbonds, py_imdconnected, py_is_fixed, py_is_shown, py_label_getvalues, py_list_attrs, py_menushow, py_mol_get_volumetric, py_sendforces, py_set_colormap, py_timestep, py_velocities, ring_array_color_bounds, colvarmodule::run_tcl_script, shade_light, shader_template, colvarmodule::vector1d::slice, sphere_array_bounds, sphere_array_color_bounds, colvarmodule::vector1d::sum, colvarproxy_tcl::tcl_run_colvar_callback, TclTextInterp::TclTextInterp, text_cmd_color, text_cmd_label, text_cmd_material, text_cmd_mol, text_cmd_plugin, topo_del_angle, topo_del_bond, topo_del_dihed, topo_del_improper, tricolor_bounds, trimesh_c4u_n3b_v3f_bounds, trimesh_n3b_v3f_bounds, trimesh_n3f_v3f_bounds, trimesh_v3f_bounds, VMDApp::vmd_choose_file, vmd_measure_contacts, vmd_measure_hbonds, VMDTkMenu::where, VMDTkinterMenu::where, and wkf_cond_wait.

Delete this along with all biases that depend on delete this_colvar

Definition at line 60 of file colvarscript_commands_colvar.h.


Generated on Mon Nov 17 02:47:34 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

AltStyle によって変換されたページ (->オリジナル) /