A writer for generating cathode parameter files for battery models.
More...
#include <CathodeWrite.H>
A writer for generating cathode parameter files for battery models.
This class takes cathode parameters (via CathodeParams struct or potentially ParmParse in the future) and writes them into formatted files compatible with specific battery simulation platforms like DandeLiion and PyBamm.
◆ CathodeWrite() [1/2]
| OpenImpala::CathodeWrite::CathodeWrite |
( |
const CathodeParams & | params | ) |
|
|
explicit |
Constructs the CathodeWrite object using provided parameters.
Stores the necessary parameters internally for later use by the write methods.
- Parameters
-
| params | A struct containing all required cathode parameters. Ensure all values and units are correctly specified. |
◆ ~CathodeWrite()
| virtual OpenImpala::CathodeWrite::~CathodeWrite |
( |
| ) |
|
|
virtualdefault |
Virtual default destructor. Important if inheriting.
◆ CathodeWrite() [2/2]
| OpenImpala::CathodeWrite::CathodeWrite |
( |
const CathodeWrite & | | ) |
|
|
delete |
◆ operator=()
◆ writeDandeLiionParameters()
| bool OpenImpala::CathodeWrite::writeDandeLiionParameters |
( |
const std::string & | filename | ) |
const |
Writes a parameter file compatible with the DandeLiion model.
- Parameters
-
| filename | The full path and name for the output .txt parameter file. |
- Returns
- true if the file was written successfully, false otherwise (e.g., file open error).
◆ writePyBammParameters()
| bool OpenImpala::CathodeWrite::writePyBammParameters |
( |
const std::string & | filename | ) |
const |
Writes a parameter file compatible with the PyBamm model.
- Parameters
-
| filename | The full path and name for the output .csv parameter file. |
- Returns
- true if the file was written successfully, false otherwise (e.g., file open error).
The documentation for this class was generated from the following files: