Bsoft 2.1.4
Bernard's software package
rwmd.h File Reference

Header to read and write molecular dynamics parameters in STAR format. More...

#include "rwatomprop.h"
#include "Vector3.h"

Classes

struct  Bbondtype
 
struct  Bmd
 

Functions

Bmdmd_init ()
 Initializes a molecular dynamics structure. More...
 
Bmdmd_init_with_types ()
 Initializes a molecular dynamics structure. More...
 
Bmdread_md_parameters (Bstring &filename)
 Reading molecular dynamics parameters from STAR files. More...
 
int write_md_parameters (Bstring &filename, Bmd *md)
 Writing molecular dynamics parameters to a STAR file. More...
 
int md_kill (Bmd *md)
 Deallocates a molecular dynamics structure. More...
 

Detailed Description

Header to read and write molecular dynamics parameters in STAR format.

Author
Bernard Heymann
Date
Created: 20030919
Modified: 20060424

Function Documentation

◆ md_init()

Bmd * md_init ( )

Initializes a molecular dynamics structure.

Returns
Bmd* molecular dynamics structure.
The coefficients for the Lennard-Jones Van der Waals interaction are
defined as:
    VdWcoeff1 = 1/12
    VdWcoeff2 = 1/6

◆ md_init_with_types()

Bmd * md_init_with_types ( )

Initializes a molecular dynamics structure.

Returns
Bmd* molecular dynamics structure.
The coefficients for the Lennard-Jones Van der Waals interaction are
defined as:
    VdWcoeff1 = 1/12
    VdWcoeff2 = 1/6

◆ md_kill()

int md_kill ( Bmd md)

Deallocates a molecular dynamics structure.

Parameters
*mdmolecular dynamics structure.
Returns
int 0.
All linked lists within the structure is also deallocated.

◆ read_md_parameters()

Bmd * read_md_parameters ( Bstring filename)

Reading molecular dynamics parameters from STAR files.

Parameters
&filenamefile name (or comma-delimited list).
Returns
Bmd* molecular dynamics structure.

◆ write_md_parameters()

int write_md_parameters ( Bstring filename,
Bmd md 
)

Writing molecular dynamics parameters to a STAR file.

Parameters
&filenamefile name (or comma-delimited list).
*mdmolecular dynamics parameters structure.
Returns
int error code (<0 means failure).