DPsim
Loading...
Searching...
No Matches
example.c File Reference
#include <dpsim/MNASolverDynInterface.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for example.c:

Go to the source code of this file.

Functions

int example_init (struct dpsim_csr_matrix *matrix)
 
int example_decomp (struct dpsim_csr_matrix *matrix)
 
int example_solve (double *rhs_values, double *lhs_values)
 
void example_log (const char *str)
 
void example_cleanup (void)
 
struct dpsim_mna_pluginget_mna_plugin (const char *name)
 

Variables

static const char * PLUGIN_NAME = "plugin"
 
static struct dpsim_mna_plugin example_plugin
 

Function Documentation

◆ example_cleanup()

void example_cleanup ( void )

Definition at line 45 of file example.c.

◆ example_decomp()

int example_decomp ( struct dpsim_csr_matrix * matrix)

Definition at line 35 of file example.c.

◆ example_init()

int example_init ( struct dpsim_csr_matrix * matrix)

Definition at line 30 of file example.c.

◆ example_log()

void example_log ( const char * str)

Definition at line 47 of file example.c.

◆ example_solve()

int example_solve ( double * rhs_values,
double * lhs_values )

Definition at line 40 of file example.c.

◆ get_mna_plugin()

struct dpsim_mna_plugin * get_mna_plugin ( const char * name)

Definition at line 22 of file example.c.

Variable Documentation

◆ example_plugin

struct dpsim_mna_plugin example_plugin
static
Initial value:
= {
.log =
.init = example_init,
.lu_decomp = example_decomp,
.solve = example_solve,
.cleanup = example_cleanup,
}
int example_solve(double *rhs_values, double *lhs_values)
Definition example.c:40
void example_cleanup(void)
Definition example.c:45
int example_decomp(struct dpsim_csr_matrix *matrix)
Definition example.c:35
int example_init(struct dpsim_csr_matrix *matrix)
Definition example.c:30
void example_log(const char *str)
Definition example.c:47

Definition at line 13 of file example.c.

◆ PLUGIN_NAME

const char* PLUGIN_NAME = "plugin"
static

Definition at line 12 of file example.c.