314#ifdef USE_STD_INTTYPES_H
321typedef __int32 int32_t;
322typedef unsigned __int32 uint32_t;
323typedef __int64 int64_t;
324typedef unsigned __int64 uint64_t;
333#if !defined __cplusplus || defined __STDC_FORMAT_MACROS
336# define __PRI64_PREFIX "l"
337# define __PRIPTR_PREFIX "l"
339# define __PRI64_PREFIX "ll"
340# define __PRIPTR_PREFIX
347# define PRId64 __PRI64_PREFIX "d"
351# define PRIu64 __PRI64_PREFIX "u"
355# define PRIuPTR __PRIPTR_PREFIX "u"
363#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
368#ifndef DECLSPECDLLEXPORT
370#define DECLSPECDLLEXPORT __declspec(dllexport)
372#define DECLSPECDLLEXPORT
377#define TNG_FRAME_DEPENDENT 1
379#define TNG_PARTICLE_DEPENDENT 2
382#define TNG_MAX_DATE_STR_LEN 24
384#define TNG_MD5_HASH_LEN 16
386#define TNG_MAX_STR_LEN 1024
389#define TNG_ASSERT(cnd, msg) if(!(cnd)) {printf("%s\n", msg); assert(cnd);}
391#define TNG_ASSERT(cnd, msg) (void)0;
428#define TNG_GENERAL_INFO 0x0000000000000000LL
429#define TNG_MOLECULES 0x0000000000000001LL
430#define TNG_TRAJECTORY_FRAME_SET 0x0000000000000002LL
431#define TNG_PARTICLE_MAPPING 0x0000000000000003LL
439#define TNG_TRAJ_BOX_SHAPE 0x0000000010000000LL
440#define TNG_TRAJ_POSITIONS 0x0000000010000001LL
441#define TNG_TRAJ_VELOCITIES 0x0000000010000002LL
442#define TNG_TRAJ_FORCES 0x0000000010000003LL
443#define TNG_TRAJ_PARTIAL_CHARGES 0x0000000010000004LL
444#define TNG_TRAJ_FORMAL_CHARGES 0x0000000010000005LL
445#define TNG_TRAJ_B_FACTORS 0x0000000010000006LL
446#define TNG_TRAJ_ANISOTROPIC_B_FACTORS 0x0000000010000007LL
447#define TNG_TRAJ_OCCUPANCY 0x0000000010000008LL
448#define TNG_TRAJ_GENERAL_COMMENTS 0x0000000010000009LL
449#define TNG_TRAJ_MASSES 0x0000000010000010LL
457#define TNG_GMX_LAMBDA 0x1000000010000000LL
458#define TNG_GMX_ENERGY_ANGLE 0x1000000010000001LL
459#define TNG_GMX_ENERGY_RYCKAERT_BELL 0x1000000010000002LL
460#define TNG_GMX_ENERGY_LJ_14 0x1000000010000003LL
461#define TNG_GMX_ENERGY_COULOMB_14 0x1000000010000004LL
462#define TNG_GMX_ENERGY_LJ_(SR) 0x1000000010000005LL
463#define TNG_GMX_ENERGY_COULOMB_(SR) 0x1000000010000006LL
464#define TNG_GMX_ENERGY_COUL_RECIP 0x1000000010000007LL
465#define TNG_GMX_ENERGY_POTENTIAL 0x1000000010000008LL
466#define TNG_GMX_ENERGY_KINETIC_EN 0x1000000010000009LL
467#define TNG_GMX_ENERGY_TOTAL_ENERGY 0x1000000010000010LL
468#define TNG_GMX_ENERGY_TEMPERATURE 0x1000000010000011LL
469#define TNG_GMX_ENERGY_PRESSURE 0x1000000010000012LL
470#define TNG_GMX_ENERGY_CONSTR_RMSD 0x1000000010000013LL
471#define TNG_GMX_ENERGY_CONSTR2_RMSD 0x1000000010000014LL
472#define TNG_GMX_ENERGY_BOX_X 0x1000000010000015LL
473#define TNG_GMX_ENERGY_BOX_Y 0x1000000010000016LL
474#define TNG_GMX_ENERGY_BOX_Z 0x1000000010000017LL
475#define TNG_GMX_ENERGY_BOXXX 0x1000000010000018LL
476#define TNG_GMX_ENERGY_BOXYY 0x1000000010000019LL
477#define TNG_GMX_ENERGY_BOXZZ 0x1000000010000020LL
478#define TNG_GMX_ENERGY_BOXYX 0x1000000010000021LL
479#define TNG_GMX_ENERGY_BOXZX 0x1000000010000022LL
480#define TNG_GMX_ENERGY_BOXZY 0x1000000010000023LL
481#define TNG_GMX_ENERGY_BOXVELXX 0x1000000010000024LL
482#define TNG_GMX_ENERGY_BOXVELYY 0x1000000010000025LL
483#define TNG_GMX_ENERGY_BOXVELZZ 0x1000000010000026LL
484#define TNG_GMX_ENERGY_BOXVELYX 0x1000000010000027LL
485#define TNG_GMX_ENERGY_BOXVELZX 0x1000000010000028LL
486#define TNG_GMX_ENERGY_BOXVELZY 0x1000000010000029LL
487#define TNG_GMX_ENERGY_VOLUME 0x1000000010000030LL
488#define TNG_GMX_ENERGY_DENSITY 0x1000000010000031LL
489#define TNG_GMX_ENERGY_PV 0x1000000010000032LL
490#define TNG_GMX_ENERGY_ENTHALPY 0x1000000010000033LL
491#define TNG_GMX_ENERGY_VIR_XX 0x1000000010000034LL
492#define TNG_GMX_ENERGY_VIR_XY 0x1000000010000035LL
493#define TNG_GMX_ENERGY_VIR_XZ 0x1000000010000036LL
494#define TNG_GMX_ENERGY_VIR_YX 0x1000000010000037LL
495#define TNG_GMX_ENERGY_VIR_YY 0x1000000010000038LL
496#define TNG_GMX_ENERGY_VIR_YZ 0x1000000010000039LL
497#define TNG_GMX_ENERGY_VIR_ZX 0x1000000010000040LL
498#define TNG_GMX_ENERGY_VIR_ZY 0x1000000010000041LL
499#define TNG_GMX_ENERGY_VIR_ZZ 0x1000000010000042LL
500#define TNG_GMX_ENERGY_SHAKEVIR_XX 0x1000000010000043LL
501#define TNG_GMX_ENERGY_SHAKEVIR_XY 0x1000000010000044LL
502#define TNG_GMX_ENERGY_SHAKEVIR_XZ 0x1000000010000045LL
503#define TNG_GMX_ENERGY_SHAKEVIR_YX 0x1000000010000046LL
504#define TNG_GMX_ENERGY_SHAKEVIR_YY 0x1000000010000047LL
505#define TNG_GMX_ENERGY_SHAKEVIR_YZ 0x1000000010000048LL
506#define TNG_GMX_ENERGY_SHAKEVIR_ZX 0x1000000010000049LL
507#define TNG_GMX_ENERGY_SHAKEVIR_ZY 0x1000000010000050LL
508#define TNG_GMX_ENERGY_SHAKEVIR_ZZ 0x1000000010000051LL
509#define TNG_GMX_ENERGY_FORCEVIR_XX 0x1000000010000052LL
510#define TNG_GMX_ENERGY_FORCEVIR_XY 0x1000000010000053LL
511#define TNG_GMX_ENERGY_FORCEVIR_XZ 0x1000000010000054LL
512#define TNG_GMX_ENERGY_FORCEVIR_YX 0x1000000010000055LL
513#define TNG_GMX_ENERGY_FORCEVIR_YY 0x1000000010000056LL
514#define TNG_GMX_ENERGY_FORCEVIR_YZ 0x1000000010000057LL
515#define TNG_GMX_ENERGY_FORCEVIR_ZX 0x1000000010000058LL
516#define TNG_GMX_ENERGY_FORCEVIR_ZY 0x1000000010000059LL
517#define TNG_GMX_ENERGY_FORCEVIR_ZZ 0x1000000010000060LL
518#define TNG_GMX_ENERGY_PRES_XX 0x1000000010000061LL
519#define TNG_GMX_ENERGY_PRES_XY 0x1000000010000062LL
520#define TNG_GMX_ENERGY_PRES_XZ 0x1000000010000063LL
521#define TNG_GMX_ENERGY_PRES_YX 0x1000000010000064LL
522#define TNG_GMX_ENERGY_PRES_YY 0x1000000010000065LL
523#define TNG_GMX_ENERGY_PRES_YZ 0x1000000010000066LL
524#define TNG_GMX_ENERGY_PRES_ZX 0x1000000010000067LL
525#define TNG_GMX_ENERGY_PRES_ZY 0x1000000010000068LL
526#define TNG_GMX_ENERGY_PRES_ZZ 0x1000000010000069LL
527#define TNG_GMX_ENERGY_SURFXSURFTEN 0x1000000010000070LL
528#define TNG_GMX_ENERGY_MUX 0x1000000010000071LL
529#define TNG_GMX_ENERGY_MUY 0x1000000010000072LL
530#define TNG_GMX_ENERGY_MUZ 0x1000000010000073LL
531#define TNG_GMX_ENERGY_VCOS 0x1000000010000074LL
532#define TNG_GMX_ENERGY_VISC 0x1000000010000075LL
533#define TNG_GMX_ENERGY_BAROSTAT 0x1000000010000076LL
534#define TNG_GMX_ENERGY_T_SYSTEM 0x1000000010000077LL
535#define TNG_GMX_ENERGY_LAMB_SYSTEM 0x1000000010000078LL
536#define TNG_GMX_SELECTION_GROUP_NAMES 0x1000000010000079LL
537#define TNG_GMX_ATOM_SELECTION_GROUP 0x1000000010000080LL
570struct tng_trajectory;
577struct tng_particle_mapping;
578struct tng_trajectory_frame_set;
579struct tng_particle_data;
580struct tng_non_particle_data;
711 char *file_name,
const int max_len);
726 const char *file_name);
744 char *file_name,
const int max_len);
759 const char *file_name);
775 const char *file_name);
824 char *name,
const int max_len);
839 const char *new_name);
857 char *name,
const int max_len);
872 const char *new_name);
890 char *name,
const int max_len);
905 const char *new_name);
923 char *name,
const int max_len);
938 const char *new_name);
956 char *name,
const int max_len);
971 const char *new_name);
989 char *name,
const int max_len);
1004 const char *new_name);
1022 char *signature,
const int max_len);
1037 const char *signature);
1055 char *signature,
const int max_len);
1070 const char *signature);
1088 char *name,
const int max_len);
1103 const char *new_name);
1241 const double precision);
1329 int64_t **mol_cnt_list);
1448 const int64_t frame);
1499 int64_t *first_frame,
1500 int64_t *last_frame);
1633 const char *new_name);
1703 const int64_t index,
1752 const int64_t index,
1784 const int64_t index,
1816 const int64_t index,
1899 const int64_t from_atom_id,
1900 const int64_t to_atom_id,
1959 const char *new_name);
1990 const int64_t index,
2091 const char *new_name);
2122 const int64_t index,
2144 const char *atom_name,
2145 const char *atom_type,
2168 const char *atom_name,
2169 const char *atom_type,
2221 const char *new_name);
2258 const char *new_type);
2323 int64_t **from_atoms,
2324 int64_t **to_atoms);
2463 const int64_t num_first_particle,
2464 const int64_t n_particles,
2465 const int64_t *mapping_table);
2498 const char hash_mode);
2517 const char hash_mode);
2542 const char hash_mode);
2558 const char hash_mode);
2578 const char hash_mode,
2579 const int64_t block_id);
2598 const char hash_mode);
2618 const char hash_mode,
2619 const int64_t block_id);
2637 const char hash_mode);
2658 const char hash_mode);
2677 const int64_t first_frame,
2678 const int64_t n_frames);
2699 const int64_t first_frame,
2700 const int64_t n_frames,
2701 const double first_frame_time);
2716 const double first_frame_time);
2766 const char *block_name,
2767 const char datatype,
2768 const char block_type_flag,
2770 const int64_t n_values_per_frame,
2771 int64_t stride_length,
2772 const int64_t codec_id,
2811 const char *block_name,
2812 const char datatype,
2813 const char block_type_flag,
2815 const int64_t n_values_per_frame,
2816 int64_t stride_length,
2817 const int64_t num_first_particle,
2818 const int64_t n_particles,
2819 const int64_t codec_id,
2838 const int64_t block_id,
2859 const int64_t block_id,
2860 int *block_dependency);
2876 const int64_t block_id,
2877 int64_t *n_values_per_frame);
2901 const int64_t frame_nr,
2902 const int64_t block_id,
2904 const char hash_mode);
2935 const int64_t frame_nr,
2936 const int64_t block_id,
2937 const int64_t val_first_particle,
2938 const int64_t val_n_particles,
2940 const char hash_mode);
2957 const int64_t n_frames,
2958 const int64_t n_values_per_frame,
2977 const int64_t n_frames,
2978 const int64_t n_particles,
2979 const int64_t n_values_per_frame,
3012 const int64_t block_id,
3015 int64_t *n_values_per_frame,
3051 const int64_t block_id,
3054 int64_t *stride_length,
3055 int64_t *n_values_per_frame,
3092 const int64_t block_id,
3093 const int64_t start_frame_nr,
3094 const int64_t end_frame_nr,
3095 const char hash_mode,
3097 int64_t *n_values_per_frame,
3138 const int64_t block_id,
3139 const int64_t start_frame_nr,
3140 const int64_t end_frame_nr,
3141 const char hash_mode,
3143 int64_t *stride_length,
3144 int64_t *n_values_per_frame,
3185 const int64_t block_id,
3188 int64_t *n_particles,
3189 int64_t *n_values_per_frame,
3230 const int64_t block_id,
3233 int64_t *stride_length,
3234 int64_t *n_particles,
3235 int64_t *n_values_per_frame,
3281 const int64_t block_id,
3282 const int64_t start_frame_nr,
3283 const int64_t end_frame_nr,
3284 const char hash_mode,
3286 int64_t *n_particles,
3287 int64_t *n_values_per_frame,
3335 const int64_t block_id,
3336 const int64_t start_frame_nr,
3337 const int64_t end_frame_nr,
3338 const char hash_mode,
3340 int64_t *n_particles,
3341 int64_t *stride_length,
3342 int64_t *n_values_per_frame,
3360 const int64_t block_id,
3362 int64_t *stride_length);
3404 (
const char *filename,
3431 const int64_t frame_nr,
3517 int64_t *stride_length);
3542 int64_t *stride_length);
3567 int64_t *stride_length);
3595 int64_t *stride_length);
3630 const int64_t block_id,
3633 int64_t *retrieved_frame_number,
3634 double *retrieved_time);
3666 const int64_t block_id,
3669 int64_t *retrieved_frame_number,
3670 double *retrieved_time);
3698 const int64_t first_frame,
3699 const int64_t last_frame,
3701 int64_t *stride_length);
3729 const int64_t first_frame,
3730 const int64_t last_frame,
3732 int64_t *stride_length);
3760 const int64_t first_frame,
3761 const int64_t last_frame,
3763 int64_t *stride_length);
3797 const int64_t first_frame,
3798 const int64_t last_frame,
3800 int64_t *stride_length);
3833 const int64_t n_values_per_frame,
3834 const int64_t block_id,
3835 const char *block_name,
3836 const char particle_dependency,
3837 const char compression);
3871 const int64_t n_values_per_frame,
3872 const int64_t block_id,
3873 const char *block_name,
3874 const char particle_dependency,
3875 const char compression);
3908 const int64_t n_values_per_frame,
3909 const int64_t block_id,
3910 const char *block_name,
3911 const char particle_dependency,
3912 const char compression);
4178 const int64_t frame_nr,
4179 const float *values,
4180 const int64_t n_values_per_frame,
4181 const int64_t block_id,
4182 const char *block_name,
4183 const char particle_dependency,
4184 const char compression);
4224 const int64_t frame_nr,
4225 const double *values,
4226 const int64_t n_values_per_frame,
4227 const int64_t block_id,
4228 const char *block_name,
4229 const char particle_dependency,
4230 const char compression);
4255 const int64_t frame_nr,
4256 const float *positions);
4282 const int64_t frame_nr,
4283 const double *positions);
4308 const int64_t frame_nr,
4309 const float *velocities);
4335 const int64_t frame_nr,
4336 const double *velocities);
4361 const int64_t frame_nr,
4362 const float *forces);
4388 const int64_t frame_nr,
4389 const double *forces);
4413 const int64_t frame_nr,
4414 const float *box_shape);
4439 const int64_t frame_nr,
4440 const double *box_shape);
4483 const int64_t frame_nr,
4485 const float *values,
4486 const int64_t n_values_per_frame,
4487 const int64_t block_id,
4488 const char *block_name,
4489 const char particle_dependency,
4490 const char compression);
4533 const int64_t frame_nr,
4535 const double *values,
4536 const int64_t n_values_per_frame,
4537 const int64_t block_id,
4538 const char *block_name,
4539 const char particle_dependency,
4540 const char compression);
4569 const int64_t frame_nr,
4571 const float *positions);
4600 const int64_t frame_nr,
4602 const double *positions);
4631 const int64_t frame_nr,
4633 const float *velocities);
4662 const int64_t frame_nr,
4664 const double *velocities);
4693 const int64_t frame_nr,
4695 const float *forces);
4724 const int64_t frame_nr,
4726 const double *forces);
4754 const int64_t frame_nr,
4756 const float *box_shape);
4784 const int64_t frame_nr,
4786 const double *box_shape);
4811 const int64_t block_id,
4850 int64_t current_frame,
4851 const int64_t n_requested_data_block_ids,
4852 const int64_t *requested_data_block_ids,
4853 int64_t *next_frame,
4854 int64_t *n_data_blocks_in_next_frame,
4855 int64_t **data_block_ids_in_next_frame);
4939 const int64_t prev_frame);
4952 const int64_t block_id,
tng_function_status DECLSPECDLLEXPORT tng_input_file_set(const tng_trajectory_t tng_data, const char *file_name)
Set the name of the input file.
tng_function_status DECLSPECDLLEXPORT tng_chain_name_of_particle_nr_get(const tng_trajectory_t tng_data, const int64_t nr, char *name, const int max_len)
Get the chain name of real particle number (number in mol system).
tng_function_status DECLSPECDLLEXPORT tng_num_molecules_get(const tng_trajectory_t tng_data, int64_t *n)
Get the current total number of molecules.
tng_function_status DECLSPECDLLEXPORT tng_residue_atom_add(const tng_trajectory_t tng_data, const tng_residue_t residue, const char *atom_name, const char *atom_type, tng_atom_t *atom)
Add an atom to a residue.
tng_function_status DECLSPECDLLEXPORT tng_chain_residue_add(const tng_trajectory_t tng_data, const tng_chain_t chain, const char *name, tng_residue_t *residue)
Add a residue to a chain.
tng_function_status DECLSPECDLLEXPORT tng_residue_id_of_particle_nr_get(const tng_trajectory_t tng_data, const int64_t nr, int64_t *id)
Get the residue id (local to molecule) of real particle number (number in mol system).
tng_function_status DECLSPECDLLEXPORT tng_frame_set_first_frame_time_set(const tng_trajectory_t tng_data, const double first_frame_time)
Set the time stamp of the first frame of the current frame set.
tng_function_status DECLSPECDLLEXPORT tng_atom_type_of_particle_nr_get(const tng_trajectory_t tng_data, const int64_t nr, char *type, const int max_len)
Get the atom type of real particle number (number in mol system).
tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_find(const tng_trajectory_t tng_data, const tng_molecule_t molecule, const char *name, const int64_t id, tng_chain_t *chain)
Find a chain in a molecule.
tng_function_status DECLSPECDLLEXPORT tng_current_frame_set_get(const tng_trajectory_t tng_data, tng_trajectory_frame_set_t *frame_set_p)
Get the current trajectory frame set.
tng_function_status DECLSPECDLLEXPORT tng_global_residue_id_of_particle_nr_get(const tng_trajectory_t tng_data, const int64_t nr, int64_t *id)
Get the residue id (based on other molecules and molecule counts) of real particle number (number in ...
tng_function_status DECLSPECDLLEXPORT tng_molecule_num_atoms_get(const tng_trajectory_t tng_data, const tng_molecule_t molecule, int64_t *n)
Get the number of atoms in a molecule.
tng_function_status DECLSPECDLLEXPORT tng_molecule_destroy(const tng_trajectory_t tng_data, const tng_molecule_t molecule)
Clean up a molecule container.
tng_function_status DECLSPECDLLEXPORT tng_molecule_cnt_get(const tng_trajectory_t tng_data, const tng_molecule_t molecule, int64_t *cnt)
Get the count of a molecule.
tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_of_index_get(const tng_trajectory_t tng_data, const tng_molecule_t molecule, const int64_t index, tng_chain_t *chain)
Retrieve the chain of a molecule with specified index in the list of chains.
tng_function_status DECLSPECDLLEXPORT tng_last_signature_get(const tng_trajectory_t tng_data, char *signature, const int max_len)
Get the pgp_signature of the user last modifying the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_version_major(const tng_trajectory_t tng_data, int *version)
Get the major version of the TNG library.
tng_function_status DECLSPECDLLEXPORT tng_frame_data_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const int64_t block_id, const void *values, const char hash_mode)
Write data of one trajectory frame to the output_file of tng_data.
tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_w_id_add(const tng_trajectory_t tng_data, const tng_molecule_t molecule, const char *name, const int64_t id, tng_chain_t *chain)
Add a chain with a specific id to a molecule.
tng_function_status DECLSPECDLLEXPORT tng_first_computer_name_set(const tng_trajectory_t tng_data, const char *new_name)
Set the name of the computer used when creating the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_output_file_endianness_get(const tng_trajectory_t tng_data, tng_file_endianness *endianness)
Get the endianness of the output file.
tng_function_status DECLSPECDLLEXPORT tng_long_stride_length_get(const tng_trajectory_t tng_data, int64_t *len)
Get the long stride length of the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_time_per_frame_set(const tng_trajectory_t tng_data, const double time)
Set the time per frame of the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_particle_data_block_add(const tng_trajectory_t tng_data, const int64_t id, const char *block_name, const char datatype, const char block_type_flag, int64_t n_frames, const int64_t n_values_per_frame, int64_t stride_length, const int64_t num_first_particle, const int64_t n_particles, const int64_t codec_id, void *new_data)
Add a particle dependent data block.
tng_function_status DECLSPECDLLEXPORT tng_molecule_id_of_particle_nr_get(const tng_trajectory_t tng_data, const int64_t nr, int64_t *id)
Get the molecule id of real particle number (number in mol system).
tng_function_status DECLSPECDLLEXPORT tng_residue_num_atoms_get(const tng_trajectory_t tng_data, const tng_residue_t residue, int64_t *n)
Get the number of atoms in a residue.
tng_function_status DECLSPECDLLEXPORT tng_atom_name_get(const tng_trajectory_t tng_data, const tng_atom_t atom, char *name, const int max_len)
Get the name of an atom.
tng_function_status DECLSPECDLLEXPORT tng_molecule_atom_of_index_get(const tng_trajectory_t tng_data, const tng_molecule_t molecule, const int64_t index, tng_atom_t *atom)
Retrieve the atom of a molecule with specified index in the list of atoms.
tng_function_status DECLSPECDLLEXPORT tng_atom_residue_get(const tng_trajectory_t tng_data, const tng_atom_t atom, tng_residue_t *residue)
Get the residue of an atom.
tng_function_status DECLSPECDLLEXPORT tng_data_get(const tng_trajectory_t tng_data, const int64_t block_id, union data_values ***values, int64_t *n_frames, int64_t *n_values_per_frame, char *type)
Retrieve non-particle data, from the last read frame set. Obsolete!
tng_function_status DECLSPECDLLEXPORT tng_data_interval_get(const tng_trajectory_t tng_data, const int64_t block_id, const int64_t start_frame_nr, const int64_t end_frame_nr, const char hash_mode, union data_values ***values, int64_t *n_values_per_frame, char *type)
Read and retrieve non-particle data, in a specific interval. Obsolete!
tng_function_status DECLSPECDLLEXPORT tng_frame_set_nr_find(const tng_trajectory_t tng_data, const int64_t nr)
Find the requested frame set number.
tng_function_status DECLSPECDLLEXPORT tng_data_block_num_values_per_frame_get(const tng_trajectory_t tng_data, const int64_t block_id, int64_t *n_values_per_frame)
Get the number of values per frame of a data block of a specific ID.
tng_function_status DECLSPECDLLEXPORT tng_residue_name_set(const tng_trajectory_t tng_data, const tng_residue_t residue, const char *new_name)
Set the name of a residue.
tng_function_status DECLSPECDLLEXPORT tng_molecule_w_id_add(const tng_trajectory_t tng_data, const char *name, const int64_t id, tng_molecule_t *molecule)
Add a molecule with a specific ID to the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_molecule_cnt_set(const tng_trajectory_t tng_data, const tng_molecule_t molecule, const int64_t cnt)
Set the count of a molecule.
tng_function_status DECLSPECDLLEXPORT tng_last_user_name_get(const tng_trajectory_t tng_data, char *name, const int max_len)
Get the name of the user who last modified the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_forcefield_name_set(const tng_trajectory_t tng_data, const char *new_name)
Set the name of the forcefield used in the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_molecule_num_residues_get(const tng_trajectory_t tng_data, const tng_molecule_t molecule, int64_t *n)
Get the number of residues in a molecule.
tng_function_status DECLSPECDLLEXPORT tng_atom_type_get(const tng_trajectory_t tng_data, const tng_atom_t atom, char *type, const int max_len)
Get the type of an atom.
tng_function_status DECLSPECDLLEXPORT tng_molecule_num_chains_get(const tng_trajectory_t tng_data, const tng_molecule_t molecule, int64_t *n)
Get the number of chains in a molecule.
tng_function_status DECLSPECDLLEXPORT tng_chain_name_get(const tng_trajectory_t tng_data, const tng_chain_t chain, char *name, const int max_len)
Get the name of a chain.
tng_function_status DECLSPECDLLEXPORT tng_molsystem_bonds_get(const tng_trajectory_t tng_data, int64_t *n_bonds, int64_t **from_atoms, int64_t **to_atoms)
Get the bonds of the current molecular system.
tng_function_status DECLSPECDLLEXPORT tng_chain_name_set(const tng_trajectory_t tng_data, const tng_chain_t chain, const char *new_name)
Set the name of a chain.
tng_function_status DECLSPECDLLEXPORT tng_atom_type_set(const tng_trajectory_t tng_data, const tng_atom_t atom, const char *new_type)
Set the atom type of an atom.
tng_function_status DECLSPECDLLEXPORT tng_num_frame_sets_get(const tng_trajectory_t tng_data, int64_t *n)
Get the number of frame sets.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_prev_frame_set_file_pos_get(const tng_trajectory_t tng_data, const tng_trajectory_frame_set_t frame_set, int64_t *pos)
Get the file position of the previous frame set in the input file.
tng_function_status DECLSPECDLLEXPORT tng_data_vector_interval_get(const tng_trajectory_t tng_data, const int64_t block_id, const int64_t start_frame_nr, const int64_t end_frame_nr, const char hash_mode, void **values, int64_t *stride_length, int64_t *n_values_per_frame, char *type)
Read and retrieve a vector (1D array) of non-particle data, in a specific interval.
tng_function_status DECLSPECDLLEXPORT tng_medium_stride_length_set(const tng_trajectory_t tng_data, const int64_t len)
Set the medium stride length of the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_first_frame_nr_of_next_frame_set_get(const tng_trajectory_t tng_data, int64_t *frame)
Read the number of the first frame of the next frame set.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_next_frame_set_file_pos_get(const tng_trajectory_t tng_data, const tng_trajectory_frame_set_t frame_set, int64_t *pos)
Get the file position of the next frame set in the input file.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_new(const tng_trajectory_t tng_data, const int64_t first_frame, const int64_t n_frames)
Create and initialise a frame set.
tng_function_status DECLSPECDLLEXPORT tng_input_file_get(const tng_trajectory_t tng_data, char *file_name, const int max_len)
Get the name of the input file.
tng_function_status DECLSPECDLLEXPORT tng_residue_atom_of_index_get(const tng_trajectory_t tng_data, const tng_residue_t residue, const int64_t index, tng_atom_t *atom)
Retrieve the atom of a residue with specified index in the list of atoms.
tng_function_status DECLSPECDLLEXPORT tng_compression_precision_set(const tng_trajectory_t tng_data, const double precision)
Set the precision of lossy compression.
tng_function_status DECLSPECDLLEXPORT tng_data_values_free(const tng_trajectory_t tng_data, union data_values **values, const int64_t n_frames, const int64_t n_values_per_frame, const char type)
Free data of an array of values (2D).
tng_function_status DECLSPECDLLEXPORT tng_trajectory_destroy(tng_trajectory_t *tng_data_p)
Clean up a trajectory data container.
tng_function_status DECLSPECDLLEXPORT tng_particle_data_vector_interval_get(const tng_trajectory_t tng_data, const int64_t block_id, const int64_t start_frame_nr, const int64_t end_frame_nr, const char hash_mode, void **values, int64_t *n_particles, int64_t *stride_length, int64_t *n_values_per_frame, char *type)
Read and retrieve a vector (1D array) particle data, in a specific interval.
tng_function_status DECLSPECDLLEXPORT tng_data_vector_get(const tng_trajectory_t tng_data, const int64_t block_id, void **values, int64_t *n_frames, int64_t *stride_length, int64_t *n_values_per_frame, char *type)
Retrieve a vector (1D array) of non-particle data, from the last read frame set.
tng_function_status DECLSPECDLLEXPORT tng_chain_residue_of_index_get(const tng_trajectory_t tng_data, const tng_chain_t chain, const int64_t index, tng_residue_t *residue)
Retrieve the residue of a chain with specified index in the list of residues.
tng_function_status DECLSPECDLLEXPORT tng_num_particles_variable_get(const tng_trajectory_t tng_data, char *variable)
Get if the number of particle can be varied during the simulation.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_read(const tng_trajectory_t tng_data, const char hash_mode)
Read one frame set, including all particle mapping blocks and data blocks, starting from the current ...
tng_function_status DECLSPECDLLEXPORT tng_file_headers_read(const tng_trajectory_t tng_data, const char hash_mode)
Read the header blocks from the input_file of tng_data.
tng_function_status DECLSPECDLLEXPORT tng_output_file_endianness_set(const tng_trajectory_t tng_data, const tng_file_endianness endianness)
Set the endianness of the output file.
tng_function_status DECLSPECDLLEXPORT tng_molecule_name_set(const tng_trajectory_t tng_data, const tng_molecule_t molecule, const char *new_name)
Set the name of a molecule.
tng_function_status DECLSPECDLLEXPORT tng_molecule_name_get(const tng_trajectory_t tng_data, const tng_molecule_t molecule, char *name, const int max_len)
Get the name of a molecule.
tng_function_status DECLSPECDLLEXPORT tng_medium_stride_length_get(const tng_trajectory_t tng_data, int64_t *len)
Get the medium stride length of the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_implicit_num_particles_set(const tng_trajectory_t tng_data, const int64_t n)
Set the number of particles, in the case no molecular system is used.
tng_function_status DECLSPECDLLEXPORT tng_atom_name_of_particle_nr_get(const tng_trajectory_t tng_data, const int64_t nr, char *name, const int max_len)
Get the atom name of real particle number (number in mol system).
tng_function_status DECLSPECDLLEXPORT tng_particle_mapping_add(const tng_trajectory_t tng_data, const int64_t num_first_particle, const int64_t n_particles, const int64_t *mapping_table)
Add a particle mapping table.
tng_function_status DECLSPECDLLEXPORT tng_particle_data_interval_get(const tng_trajectory_t tng_data, const int64_t block_id, const int64_t start_frame_nr, const int64_t end_frame_nr, const char hash_mode, union data_values ****values, int64_t *n_particles, int64_t *n_values_per_frame, char *type)
Read and retrieve particle data, in a specific interval. Obsolete!
tng_function_status DECLSPECDLLEXPORT tng_particle_data_vector_get(const tng_trajectory_t tng_data, const int64_t block_id, void **values, int64_t *n_frames, int64_t *stride_length, int64_t *n_particles, int64_t *n_values_per_frame, char *type)
Retrieve a vector (1D array) of particle data, from the last read frame set.
tng_function_status DECLSPECDLLEXPORT tng_version_minor(const tng_trajectory_t tng_data, int *version)
Get the minor version of the TNG library.
tng_function_status DECLSPECDLLEXPORT tng_data_block_dependency_get(const tng_trajectory_t tng_data, const int64_t block_id, int *block_dependency)
Get the dependency of a data block of a specific ID.
tng_function_status DECLSPECDLLEXPORT tng_last_signature_set(const tng_trajectory_t tng_data, const char *signature)
Set the pgp_signature of the user last modifying the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_first_signature_set(const tng_trajectory_t tng_data, const char *signature)
Set the pgp_signature of the user creating the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_particle_data_values_free(const tng_trajectory_t tng_data, union data_values ***values, const int64_t n_frames, const int64_t n_particles, const int64_t n_values_per_frame, const char type)
Free data of an array of values (3D).
tng_function_status DECLSPECDLLEXPORT tng_input_file_len_get(const tng_trajectory_t tng_data, int64_t *len)
Get the length of the input file.
tng_function_status DECLSPECDLLEXPORT tng_distance_unit_exponential_get(const tng_trajectory_t tng_data, int64_t *exp)
Get the exponent used for distances in the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_long_stride_length_set(const tng_trajectory_t tng_data, const int64_t len)
Set the long stride length of the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_first_signature_get(const tng_trajectory_t tng_data, char *signature, const int max_len)
Get the pgp_signature of the user creating the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_residue_name_of_particle_nr_get(const tng_trajectory_t tng_data, const int64_t nr, char *name, const int max_len)
Get the residue name of real particle number (number in mol system).
tng_function_status DECLSPECDLLEXPORT tng_trajectory_init_from_src(const tng_trajectory_t src, tng_trajectory_t *dest_p)
Copy a trajectory data container (dest is setup as well).
tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_add(const tng_trajectory_t tng_data, const tng_molecule_t molecule, const char *name, tng_chain_t *chain)
Add a chain to a molecule.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find(const tng_trajectory_t tng_data, const int64_t frame)
Find the frame set containing a specific frame.
tng_function_status DECLSPECDLLEXPORT tng_last_computer_name_set(const tng_trajectory_t tng_data, const char *new_name)
Set the name of the computer used when last modifying the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_num_particles_get(const tng_trajectory_t tng_data, int64_t *n)
Get the current number of particles.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_particle_mapping_free(const tng_trajectory_t tng_data)
Remove all particle mappings (in memory) from the current frame set.
tng_function_status DECLSPECDLLEXPORT tng_last_user_name_set(const tng_trajectory_t tng_data, const char *new_name)
Set the name of the user who last modified the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_molecule_of_index_get(const tng_trajectory_t tng_data, const int64_t index, tng_molecule_t *molecule)
Retrieve the molecule with specified index in the list of molecules.
tng_function_status DECLSPECDLLEXPORT tng_first_program_name_get(const tng_trajectory_t tng_data, char *name, const int max_len)
Get the name of the program used when creating the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_molecule_init(const tng_trajectory_t tng_data, const tng_molecule_t molecule)
Setup a molecule container.
tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const int64_t block_id, const int64_t val_first_particle, const int64_t val_n_particles, const void *values, const char hash_mode)
Write particle data of one trajectory frame to the output_file of tng_data.
tng_function_status DECLSPECDLLEXPORT tng_time_get_str(const tng_trajectory_t tng_data, char *time)
Get the date and time of initial file creation in ISO format (string).
tng_function_status DECLSPECDLLEXPORT tng_time_per_frame_get(const tng_trajectory_t tng_data, double *time)
Get the current time per frame of the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_num_frames_per_frame_set_get(const tng_trajectory_t tng_data, int64_t *n)
Get the number of frames per frame set.
tng_function_status DECLSPECDLLEXPORT tng_version(const tng_trajectory_t tng_data, char *version, const int max_len)
Get the full version string of the TNG library.
tng_function_status DECLSPECDLLEXPORT tng_data_get_stride_length(const tng_trajectory_t tng_data, const int64_t block_id, int64_t frame, int64_t *stride_length)
Get the stride length of a specific data (particle dependency does not matter) block,...
tng_function_status DECLSPECDLLEXPORT tng_compression_precision_get(const tng_trajectory_t tng_data, double *precision)
Get the precision of lossy compression.
tng_function_status DECLSPECDLLEXPORT tng_block_read_next(const tng_trajectory_t tng_data, const tng_gen_block_t block_data, const char hash_mode)
Read one (the next) block (of any kind) from the input_file of tng_data.
tng_function_status DECLSPECDLLEXPORT tng_last_program_name_set(const tng_trajectory_t tng_data, const char *new_name)
Set the name of the program used when last modifying the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_molecule_system_copy(const tng_trajectory_t tng_data_src, const tng_trajectory_t tng_data_dest)
Copy all molecules and the molecule counts from one TNG trajectory to another.
tng_function_status DECLSPECDLLEXPORT tng_data_block_add(const tng_trajectory_t tng_data, const int64_t id, const char *block_name, const char datatype, const char block_type_flag, int64_t n_frames, const int64_t n_values_per_frame, int64_t stride_length, const int64_t codec_id, void *new_data)
Add a non-particle dependent data block.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_read_next(const tng_trajectory_t tng_data, const char hash_mode)
Read one (the next) frame set, including particle mapping and related data blocks from the input_file...
tng_function_status DECLSPECDLLEXPORT tng_molecule_add(const tng_trajectory_t tng_data, const char *name, tng_molecule_t *molecule)
Add a molecule to the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_molecule_free(const tng_trajectory_t tng_data, tng_molecule_t *molecule_p)
Clean up a molecule container and free its allocated memory.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_frame_range_get(const tng_trajectory_t tng_data, const tng_trajectory_frame_set_t frame_set, int64_t *first_frame, int64_t *last_frame)
Get the first and last frames of the frame set.
tng_function_status DECLSPECDLLEXPORT tng_molecule_alloc(const tng_trajectory_t tng_data, tng_molecule_t *molecule_p)
Allocate memory for and setup a molecule container.
tng_function_status DECLSPECDLLEXPORT tng_molecule_cnt_list_get(const tng_trajectory_t tng_data, int64_t **mol_cnt_list)
Get the list of the count of each molecule.
tng_function_status DECLSPECDLLEXPORT tng_residue_name_get(const tng_trajectory_t tng_data, const tng_residue_t residue, char *name, const int max_len)
Get the name of a residue.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_with_time_new(const tng_trajectory_t tng_data, const int64_t first_frame, const int64_t n_frames, const double first_frame_time)
Create and initialise a frame set with the time of the first frame specified.
tng_function_status DECLSPECDLLEXPORT tng_atom_name_set(const tng_trajectory_t tng_data, const tng_atom_t atom, const char *new_name)
Set the name of an atom.
tng_function_status DECLSPECDLLEXPORT tng_chain_num_residues_get(const tng_trajectory_t tng_data, const tng_chain_t chain, int64_t *n)
Get the number of residues in a molecule chain.
tng_function_status DECLSPECDLLEXPORT tng_molecule_name_of_particle_nr_get(const tng_trajectory_t tng_data, const int64_t nr, char *name, const int max_len)
Get the molecule name of real particle number (number in mol system).
tng_function_status DECLSPECDLLEXPORT tng_first_computer_name_get(const tng_trajectory_t tng_data, char *name, const int max_len)
Get the name of the computer used when creating the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_molecule_find(const tng_trajectory_t tng_data, const char *name, const int64_t id, tng_molecule_t *molecule)
Find a molecule.
tng_function_status DECLSPECDLLEXPORT tng_first_user_name_get(const tng_trajectory_t tng_data, char *name, const int max_len)
Get the name of the user who created the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_output_file_get(const tng_trajectory_t tng_data, char *file_name, const int max_len)
Get the name of the output file.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_premature_write(const tng_trajectory_t tng_data, const char hash_mode)
Write one frame set even if it does not have as many frames as expected. The function also writes map...
tng_function_status DECLSPECDLLEXPORT tng_last_computer_name_get(const tng_trajectory_t tng_data, char *name, const int max_len)
Get the name of the computer used when last modifying the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_forcefield_name_get(const tng_trajectory_t tng_data, char *name, const int max_len)
Get the name of the forcefield used in the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_chain_residue_w_id_add(const tng_trajectory_t tng_data, const tng_chain_t chain, const char *name, const int64_t id, tng_residue_t *residue)
Add a residue with a specific ID to a chain.
tng_function_status DECLSPECDLLEXPORT tng_trajectory_init(tng_trajectory_t *tng_data_p)
Setup a trajectory data container.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_read_next_only_data_from_block_id(const tng_trajectory_t tng_data, const char hash_mode, const int64_t block_id)
Read one (the next) frame set, including particle mapping and data blocks with a specific block id fr...
tng_function_status DECLSPECDLLEXPORT tng_output_file_set(const tng_trajectory_t tng_data, const char *file_name)
Set the name of the output file.
tng_function_status DECLSPECDLLEXPORT tng_last_program_name_get(const tng_trajectory_t tng_data, char *name, const int max_len)
Get the name of the program used when last modifying the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_write(const tng_trajectory_t tng_data, const char hash_mode)
Write one frame set, including mapping and related data blocks to the output_file of tng_data.
tng_function_status DECLSPECDLLEXPORT tng_num_frames_per_frame_set_set(const tng_trajectory_t tng_data, const int64_t n)
Set the number of frames per frame set.
tng_function_status DECLSPECDLLEXPORT tng_molecule_residue_of_index_get(const tng_trajectory_t tng_data, const tng_molecule_t molecule, const int64_t index, tng_residue_t *residue)
Retrieve the residue of a molecule with specified index in the list of chains.
tng_function_status DECLSPECDLLEXPORT tng_molecule_bond_add(const tng_trajectory_t tng_data, const tng_molecule_t molecule, const int64_t from_atom_id, const int64_t to_atom_id, tng_bond_t *bond)
Add a bond between two atoms to a molecule.
tng_function_status DECLSPECDLLEXPORT tng_molecule_existing_add(const tng_trajectory_t tng_data, tng_molecule_t *molecule)
Add an existing molecule (from a molecule container) to the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_molecule_atom_find(const tng_trajectory_t tng_data, const tng_molecule_t molecule, const char *name, const int64_t id, tng_atom_t *atom)
Find an atom in a molecule.
tng_function_status DECLSPECDLLEXPORT tng_output_append_file_set(const tng_trajectory_t tng_data, const char *file_name)
Set the name of the output file for appending. The output file will not be overwritten.
tng_function_status DECLSPECDLLEXPORT tng_version_patchlevel(const tng_trajectory_t tng_data, int *patch_level)
Get the patch level of the TNG library.
tng_function_status DECLSPECDLLEXPORT tng_first_user_name_set(const tng_trajectory_t tng_data, const char *new_name)
Set the name of the user who created the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_chain_residue_find(const tng_trajectory_t tng_data, const tng_chain_t chain, const char *name, const int64_t id, tng_residue_t *residue)
Find a residue in a chain.
tng_function_status DECLSPECDLLEXPORT tng_frame_set_read_current_only_data_from_block_id(const tng_trajectory_t tng_data, const char hash_mode, const int64_t block_id)
Read data from the current frame set from the input_file. Only read particle mapping and data blocks ...
tng_function_status DECLSPECDLLEXPORT tng_first_program_name_set(const tng_trajectory_t tng_data, const char *new_name)
Set the name of the program used when creating the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_particle_data_get(const tng_trajectory_t tng_data, const int64_t block_id, union data_values ****values, int64_t *n_frames, int64_t *n_particles, int64_t *n_values_per_frame, char *type)
Retrieve particle data, from the last read frame set. Obsolete!
tng_function_status DECLSPECDLLEXPORT tng_num_molecule_types_get(const tng_trajectory_t tng_data, int64_t *n)
Get the number of molecule types (length of tng_data->molecules).
tng_function_status DECLSPECDLLEXPORT tng_num_frames_get(const tng_trajectory_t tng_data, int64_t *n)
Get the number of frames in the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_data_block_name_get(const tng_trajectory_t tng_data, const int64_t block_id, char *name, const int max_len)
Get the name of a data block of a specific ID.
tng_function_status DECLSPECDLLEXPORT tng_distance_unit_exponential_set(const tng_trajectory_t tng_data, const int64_t exp)
Set the exponent used for distances in the trajectory.
tng_function_status DECLSPECDLLEXPORT tng_residue_atom_w_id_add(const tng_trajectory_t tng_data, const tng_residue_t residue, const char *atom_name, const char *atom_type, const int64_t id, tng_atom_t *atom)
Add an atom with a specific ID to a residue.
tng_function_status DECLSPECDLLEXPORT tng_file_headers_write(const tng_trajectory_t tng_data, const char hash_mode)
Write the header blocks to the output_file of tng_data.
tng_function_status DECLSPECDLLEXPORT tng_util_vel_read(const tng_trajectory_t tng_data, float **velocities, int64_t *stride_length)
High-level function for reading the velocities of all particles from all frames.
tng_function_status DECLSPECDLLEXPORT tng_util_vel_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const float *velocities)
High-level function for adding data to velocities data blocks.
tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_close(tng_trajectory_t *tng_data_p)
High-level function for closing a TNG trajectory.
tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_with_time_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double time, const float *box_shape)
High-level function for adding data to box shape data blocks. If the frame is at the beginning of a f...
tng_function_status DECLSPECDLLEXPORT tng_util_pos_write_frequency_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of position data blocks. Obsolete!...
tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_double_set(const tng_trajectory_t tng_data, const int64_t i, const int64_t n_values_per_frame, const int64_t block_id, const char *block_name, const char particle_dependency, const char compression)
High-level function for setting the writing interval of data blocks containing double precision data.
tng_function_status DECLSPECDLLEXPORT tng_util_force_double_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double *forces)
High-level function for adding data to forces data blocks at double precision.
tng_function_status DECLSPECDLLEXPORT tng_util_vel_with_time_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double time, const float *velocities)
High-level function for adding data to velocities data blocks. If the frame is at the beginning of a ...
tng_function_status DECLSPECDLLEXPORT tng_util_vel_write_interval_double_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of velocity data blocks containing double precis...
tng_function_status DECLSPECDLLEXPORT tng_util_particle_data_next_frame_read(const tng_trajectory_t tng_data, const int64_t block_id, void **values, char *data_type, int64_t *retrieved_frame_number, double *retrieved_time)
High-level function for reading the next frame of particle-dependent data of a specific type.
tng_function_status DECLSPECDLLEXPORT tng_util_pos_with_time_double_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double time, const double *positions)
High-level function for adding data to positions data blocks at double precision. If the frame is at ...
tng_function_status DECLSPECDLLEXPORT tng_util_frame_current_compression_get(const tng_trajectory_t tng_data, const int64_t block_id, int64_t *codec_id, double *factor)
High-level function for getting the compression method and multiplication factor of the last read fra...
tng_function_status DECLSPECDLLEXPORT tng_util_generic_double_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double *values, const int64_t n_values_per_frame, const int64_t block_id, const char *block_name, const char particle_dependency, const char compression)
High-level function for writing data of one frame to a double precision data block.
tng_function_status DECLSPECDLLEXPORT tng_util_generic_with_time_double_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double time, const double *values, const int64_t n_values_per_frame, const int64_t block_id, const char *block_name, const char particle_dependency, const char compression)
High-level function for writing data of one frame to a double precision data block....
tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_write_interval_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of box shape data blocks.
tng_function_status DECLSPECDLLEXPORT tng_util_force_read(const tng_trajectory_t tng_data, float **forces, int64_t *stride_length)
High-level function for reading the forces of all particles from all frames.
tng_function_status DECLSPECDLLEXPORT tng_util_force_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const float *forces)
High-level function for adding data to forces data blocks.
tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_double_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double *box_shape)
High-level function for adding data to box shape data blocks at double precision.
tng_function_status DECLSPECDLLEXPORT tng_util_generic_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const float *values, const int64_t n_values_per_frame, const int64_t block_id, const char *block_name, const char particle_dependency, const char compression)
High-level function for writing data of one frame to a data block.
tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_read(const tng_trajectory_t tng_data, float **box_shape, int64_t *stride_length)
High-level function for reading the box shape from all frames.
tng_function_status DECLSPECDLLEXPORT tng_util_pos_write_interval_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of position data blocks.
tng_function_status DECLSPECDLLEXPORT tng_util_pos_read(const tng_trajectory_t tng_data, float **positions, int64_t *stride_length)
High-level function for reading the positions of all particles from all frames.
tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_with_time_double_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double time, const double *box_shape)
High-level function for adding data to box shape data blocks at double precision. If the frame is at ...
tng_function_status DECLSPECDLLEXPORT tng_util_force_read_range(const tng_trajectory_t tng_data, const int64_t first_frame, const int64_t last_frame, float **forces, int64_t *stride_length)
High-level function for reading the forces of all particles from a specific range of frames.
tng_function_status DECLSPECDLLEXPORT tng_util_time_of_frame_get(const tng_trajectory_t tng_data, const int64_t frame_nr, double *time)
High-level function for getting the time (in seconds) of a frame.
tng_function_status DECLSPECDLLEXPORT tng_util_pos_read_range(const tng_trajectory_t tng_data, const int64_t first_frame, const int64_t last_frame, float **positions, int64_t *stride_length)
High-level function for reading the positions of all particles from a specific range of frames.
tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_read_range(const tng_trajectory_t tng_data, const int64_t first_frame, const int64_t last_frame, float **box_shape, int64_t *stride_length)
High-level function for reading the box shape from a specific range of frames.
tng_function_status DECLSPECDLLEXPORT tng_util_prepare_append_after_frame(const tng_trajectory_t tng_data, const int64_t prev_frame)
Finds the frame set of the specified frame in order to prepare for writing after it.
tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_write_frequency_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of velocity data blocks. Obsolete!...
tng_function_status DECLSPECDLLEXPORT tng_util_vel_with_time_double_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double time, const double *velocities)
High-level function for adding data to velocities data blocks at double precision....
tng_function_status DECLSPECDLLEXPORT tng_util_num_frames_with_data_of_block_id_get(const tng_trajectory_t tng_data, const int64_t block_id, int64_t *n_frames)
Get the number of frames containing data of a specific type.
tng_function_status DECLSPECDLLEXPORT tng_util_pos_with_time_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double time, const float *positions)
High-level function for adding data to positions data blocks. If the frame is at the beginning of a f...
tng_function_status DECLSPECDLLEXPORT tng_util_force_write_interval_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of force data blocks.
tng_function_status DECLSPECDLLEXPORT tng_util_non_particle_data_next_frame_read(const tng_trajectory_t tng_data, const int64_t block_id, void **values, char *data_type, int64_t *retrieved_frame_number, double *retrieved_time)
High-level function for reading the next frame of non-particle-dependent data of a specific type.
tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_open(const char *filename, const char mode, tng_trajectory_t *tng_data_p)
High-level function for opening and initializing a TNG trajectory.
tng_function_status DECLSPECDLLEXPORT tng_util_vel_read_range(const tng_trajectory_t tng_data, const int64_t first_frame, const int64_t last_frame, float **velocities, int64_t *stride_length)
High-level function for reading the velocities of all particles from a specific range of frames.
tng_function_status DECLSPECDLLEXPORT tng_util_vel_write_interval_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of velocity data blocks.
tng_function_status DECLSPECDLLEXPORT tng_util_vel_double_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double *velocities)
High-level function for adding data to velocities data blocks at double precision.
tng_function_status DECLSPECDLLEXPORT tng_util_force_with_time_double_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double time, const double *forces)
High-level function for adding data to forces data blocks at double precision. If the frame is at the...
tng_function_status DECLSPECDLLEXPORT tng_util_pos_write_interval_double_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of position data blocks containing double precis...
tng_function_status DECLSPECDLLEXPORT tng_util_generic_with_time_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double time, const float *values, const int64_t n_values_per_frame, const int64_t block_id, const char *block_name, const char particle_dependency, const char compression)
High-level function for writing data of one frame to a data block. If the frame is at the beginning o...
tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_write_interval_double_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of box shape data blocks containing double preci...
tng_function_status DECLSPECDLLEXPORT tng_util_pos_double_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double *positions)
High-level function for adding data to positions data blocks at double precision.
tng_function_status DECLSPECDLLEXPORT tng_util_pos_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const float *positions)
High-level function for adding data to positions data blocks.
tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const float *box_shape)
High-level function for adding data to box shape data blocks.
tng_function_status DECLSPECDLLEXPORT tng_util_force_write_frequency_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of force data blocks. Obsolete!...
tng_function_status DECLSPECDLLEXPORT tng_util_vel_write_frequency_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of velocity data blocks. Obsolete!...
tng_function_status DECLSPECDLLEXPORT tng_util_force_write_interval_double_set(const tng_trajectory_t tng_data, const int64_t i)
High-level function for setting the writing interval of force data blocks containing double precision...
tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_next_frame_present_data_blocks_find(const tng_trajectory_t tng_data, int64_t current_frame, const int64_t n_requested_data_block_ids, const int64_t *requested_data_block_ids, int64_t *next_frame, int64_t *n_data_blocks_in_next_frame, int64_t **data_block_ids_in_next_frame)
High-level function for determining the next frame with data and what data blocks have data for that ...
tng_function_status DECLSPECDLLEXPORT tng_util_force_with_time_write(const tng_trajectory_t tng_data, const int64_t frame_nr, const double time, const float *forces)
High-level function for adding data to forces data blocks. If the frame is at the beginning of a fram...
tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_frequency_set(const tng_trajectory_t tng_data, const int64_t i, const int64_t n_values_per_frame, const int64_t block_id, const char *block_name, const char particle_dependency, const char compression)
High-level function for setting the writing interval of data blocks. Obsolete! Use tng_util_generic_w...
tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_set(const tng_trajectory_t tng_data, const int64_t i, const int64_t n_values_per_frame, const int64_t block_id, const char *block_name, const char particle_dependency, const char compression)
High-level function for setting the writing interval of data blocks.
tng_endianness_32
Definition: tng_io.h:399
@ TNG_LITTLE_ENDIAN_32
Definition: tng_io.h:400
@ TNG_BIG_ENDIAN_32
Definition: tng_io.h:399
@ TNG_BYTE_PAIR_SWAP_32
Definition: tng_io.h:401
tng_data_type
Definition: tng_io.h:564
@ TNG_CHAR_DATA
Definition: tng_io.h:564
@ TNG_FLOAT_DATA
Definition: tng_io.h:566
@ TNG_INT_DATA
Definition: tng_io.h:565
@ TNG_DOUBLE_DATA
Definition: tng_io.h:567
tng_compression
Definition: tng_io.h:411
@ TNG_GZIP_COMPRESSION
Definition: tng_io.h:414
@ TNG_TNG_COMPRESSION
Definition: tng_io.h:413
@ TNG_UNCOMPRESSED
Definition: tng_io.h:411
@ TNG_XTC_COMPRESSION
Definition: tng_io.h:412
tng_particle_dependency
Definition: tng_io.h:541
@ TNG_PARTICLE_BLOCK_DATA
Definition: tng_io.h:542
@ TNG_NON_PARTICLE_BLOCK_DATA
Definition: tng_io.h:541
tng_function_status
Definition: tng_io.h:556
@ TNG_CRITICAL
Definition: tng_io.h:556
@ TNG_SUCCESS
Definition: tng_io.h:556
@ TNG_FAILURE
Definition: tng_io.h:556
tng_hash_type
Definition: tng_io.h:417
@ TNG_NO_HASH
Definition: tng_io.h:417
@ TNG_SHA256
Definition: tng_io.h:419
@ TNG_MD5
Definition: tng_io.h:418
tng_endianness_64
Definition: tng_io.h:404
@ TNG_QUAD_SWAP_64
Definition: tng_io.h:406
@ TNG_BIG_ENDIAN_64
Definition: tng_io.h:404
@ TNG_BYTE_SWAP_64
Definition: tng_io.h:408
@ TNG_BYTE_PAIR_SWAP_64
Definition: tng_io.h:407
@ TNG_LITTLE_ENDIAN_64
Definition: tng_io.h:405
#define DECLSPECDLLEXPORT
Definition: tng_io.h:372
tng_block_type
Definition: tng_io.h:422
@ TNG_TRAJECTORY_BLOCK
Definition: tng_io.h:422
@ TNG_NON_TRAJECTORY_BLOCK
Definition: tng_io.h:422
tng_file_endianness
Definition: tng_io.h:395
@ TNG_LITTLE_ENDIAN
Definition: tng_io.h:396
@ TNG_BIG_ENDIAN
Definition: tng_io.h:395
tng_bool
Definition: tng_io.h:545
@ TNG_TRUE
Definition: tng_io.h:545
@ TNG_FALSE
Definition: tng_io.h:545
tng_hash_mode
Definition: tng_io.h:561
@ TNG_USE_HASH
Definition: tng_io.h:561
@ TNG_SKIP_HASH
Definition: tng_io.h:561
tng_variable_n_atoms_flag
Definition: tng_io.h:549
@ TNG_CONSTANT_N_ATOMS
Definition: tng_io.h:549
@ TNG_VARIABLE_N_ATOMS
Definition: tng_io.h:549
struct tng_gen_block * tng_gen_block_t
Definition: tng_io_fwd.h:29
struct tng_chain * tng_chain_t
Definition: tng_io_fwd.h:20
struct tng_molecule * tng_molecule_t
Definition: tng_io_fwd.h:18
struct tng_trajectory_frame_set * tng_trajectory_frame_set_t
Definition: tng_io_fwd.h:33
struct tng_residue * tng_residue_t
Definition: tng_io_fwd.h:22
struct tng_trajectory * tng_trajectory_t
Definition: tng_io_fwd.h:16
struct tng_bond * tng_bond_t
Definition: tng_io_fwd.h:26
struct tng_atom * tng_atom_t
Definition: tng_io_fwd.h:24
double d
Definition: tng_io.h:584
int64_t i
Definition: tng_io.h:586
float f
Definition: tng_io.h:585
char * c
Definition: tng_io.h:587