> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ExportScriptForComputingAmplitudesFromField Struct Reference

Part of [Export](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__export)

A struct collecting import information for generating a script that converts field data into random field amplitudes.

## Public Member Functions

| Type | Name |
| - | - |
| | [check](#a47c34ec1e578c2ce27cf1c5fcd0d1704) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b)) checks validity of these data If any of the specified directories or files does not exist, an exception is thrown It also checks the validity of the reference design |
| | [ExportScriptForComputingAmplitudesFromField](#a186791859f9548629fa15085135e77f0) ([ReferenceDesign](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_reference_design.md) [reference\_design](#ab0f4ff8e7cbf191376f5487872de03f7)) constructor. |
| bool | [outputFilesExisting](#a5000ee7f35b6c3e27e53abb74606bcd9) () const |
| | [save](#a6a338dc4344270fcbccadf5667ef12f9) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b)) creates the script file |

## Public Attributes

| Type | Name |
| - | - |
|  string | [database\_file](#a90c11fb8a955197d99f5dfc621bd2856) The file name of the database that stores the simulation data (relative to [path](#a46c20eb2a26abeb1e934cd66e1dd6484)) |
|  string | [path](#a46c20eb2a26abeb1e934cd66e1dd6484) Absolute path. |
| [ReferenceDesign](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_reference_design.md) | [reference\_design](#ab0f4ff8e7cbf191376f5487872de03f7) Stores the information on the reference design/design template (defines which data to be imported) |
|  bool | [replace\_files](#a2f8b3cba47ad64fb6bda4b6428a032d3) If this is true, an existings output file will be overwritten. Otherwise an exception will arise. |
|  string | [script\_file](#a586bce376efc55f8678878ee594446f4) the file name of the script to be executed for each design directory (relative to [path](#a46c20eb2a26abeb1e934cd66e1dd6484)) |
| string | [test\_run\_path](#af033bf10e916683e009f2cdd9e2c5810) defines the design directory name which is used for test runs (do nothing if empty). Ss relative to |

## Detailed Description

A struct collecting import information for generating a script that converts field data into random field amplitudes.

## Constructor & Destructor Documentation

### ExportScriptForComputingAmplitudesFromField()

```cpp theme={null}
ExportScriptForComputingAmplitudesFromField(ReferenceDesign reference_design)
```

constructor.

**Parameters**

| Name | Description |
| - | - |
| reference\_design | the reference design being used |

## Member Function Documentation

### check()

```cpp theme={null}
check(Structure database)
```

checks validity of these data If any of the specified directories or files does not exist, an exception is thrown It also checks the validity of the reference design

**Parameters**

| Name | Description |
| - | - |
| database | the data base where the data is going to be imported to |

### outputFilesExisting()

```cpp theme={null}
bool outputFilesExisting() const
```

**Returns**

true if at least one of the output files are existing.

### save()

```cpp theme={null}
save(Structure database)
```

creates the script file

**Parameters**

| Name | Description |
| - | - |
| database | the data base where all data is to be added |

## Member Data Documentation

### test\_run\_path

```cpp theme={null}
string test_run_path
```

defines the design directory name which is used for test runs (do nothing if empty). Ss relative to

**See also**

[path](#a46c20eb2a26abeb1e934cd66e1dd6484). Default: "Design0001".
