OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
OpenImpala::CathodeWrite Class Reference

A writer for generating cathode parameter files for battery models. More...

#include <CathodeWrite.H>

Public Member Functions

 CathodeWrite (const CathodeParams &params)
 Constructs the CathodeWrite object using provided parameters.
 CathodeWrite (const CathodeWrite &)=delete
CathodeWrite & operator= (const CathodeWrite &)=delete
bool writeDandeLiionParameters (const std::string &filename) const
 Writes a parameter file compatible with the DandeLiion model.
bool writePyBammParameters (const std::string &filename) const
 Writes a parameter file compatible with the PyBamm model.
virtual ~CathodeWrite ()=default
 Virtual default destructor. Important if inheriting.

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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
paramsA 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

Member Function Documentation

◆ operator=()

CathodeWrite & OpenImpala::CathodeWrite::operator= ( const CathodeWrite & )
delete

◆ writeDandeLiionParameters()

bool OpenImpala::CathodeWrite::writeDandeLiionParameters ( const std::string & filename) const

Writes a parameter file compatible with the DandeLiion model.

Parameters
filenameThe 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
filenameThe 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: