---
name: "sc_TwoBodyGrid"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_TwoBodyGrid"
---

# sc\_TwoBodyGrid(3)

Class TwoBodyGrid describes a set of coordinates of 2 particles.

## NAME

sc::TwoBodyGrid - Class **TwoBodyGrid** describes a set of coordinates of 2 particles.

## SYNOPSIS

`#include <twobodygrid.h>`

Inherits **sc::SavableState**.

### Public Member Functions

**TwoBodyGrid** (**StateIn** &)\
 **TwoBodyGrid** (const **Ref**\< **KeyVal** \> &)\
 The **KeyVal** constructor.  void **save\_data\_state** (**StateOut** &)\
 Save the base classes (with save\_data\_state) and the members in the same order that the **StateIn** CTOR initializes them.  const std::string & **name** () const\
 int **nelem** () const\
 const **SCVector3** & **origin** () const\
 **SCVector3** **xyz1** (int i, const **SCVector3** &O=**SCVector3**(0.0)) const\
 Cartesian coordinates of particle 1 at grid point i with respect to origin O.  **SCVector3** **xyz2** (int i, const **SCVector3** &O=**SCVector3**(0.0)) const\
 Cartesian coordinates of particle 2 at grid point i with respect to origin O.  **SCVector3** **rtp1** (int i, const **SCVector3** &O=**SCVector3**(0.0)) const\
 Spherical polar coordinates of particle 1 at grid point i with respect to origin O.  **SCVector3** **rtp2** (int i, const **SCVector3** &O=**SCVector3**(0.0)) const\
 Spherical polar coordinates of particle 2 at grid point i with respect to origin O.  void **print** (std::ostream &o=**ExEnv::out0**()) const\
 Prints out this.

### Additional Inherited Members

## Detailed Description

Class **TwoBodyGrid** describes a set of coordinates of 2 particles.

## Member Function Documentation

### void sc::TwoBodyGrid::print (std::ostream & o = ExEnv::out0`()`) const` [virtual]`

Prints out this.

Reimplemented from **sc::DescribedClass**.

### void sc::TwoBodyGrid::save\_data\_state (StateOut &)` [virtual]`

Save the base classes (with save\_data\_state) and the members in the same order that the **StateIn** CTOR initializes them. This must be implemented by the derived class if the class has data.

Reimplemented from **sc::SavableState**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
