SOFA plugin: SofaMatrix  master
Open source framework for multi-physics simuation
sofa::component::linearsystem::GlobalSystemMatrixExporter Class Reference

#include <GlobalSystemMatrixExporter.h>

Exports the global system matrix of the current context into a file. The exporter allows to write the file under several formats. More...

Inheritance diagram for sofa::component::linearsystem::GlobalSystemMatrixExporter:

Detailed Description

Exports the global system matrix of the current context into a file. The exporter allows to write the file under several formats.

The class is designed so more file format can be supported.

Protected Attributes

Data< sofa::helper::OptionsGroupd_fileFormat
 File format. More...
 
Data< int > d_precision
 Number of digits used to write an entry of the matrix, default is 6. More...
 
SingleLink< GlobalSystemMatrixExporter, sofa::core::behavior::BaseMatrixLinearSystem, BaseLink::FLAG_STOREPATH|BaseLink::FLAG_STRONGLINK > l_linearSystem
 

Public Member Functions

 SOFA_CLASS (GlobalSystemMatrixExporter, sofa::simulation::BaseSimulationExporter)
 
bool write () override
 
void doInit () override
 

Protected Member Functions

 GlobalSystemMatrixExporter ()
 

Attribute details

◆ d_fileFormat

Data<sofa::helper::OptionsGroup> sofa::component::linearsystem::GlobalSystemMatrixExporter::d_fileFormat
protected

File format.

◆ d_precision

Data<int> sofa::component::linearsystem::GlobalSystemMatrixExporter::d_precision
protected

Number of digits used to write an entry of the matrix, default is 6.

◆ l_linearSystem

SingleLink<GlobalSystemMatrixExporter, sofa::core::behavior::BaseMatrixLinearSystem, BaseLink::FLAG_STOREPATH|BaseLink::FLAG_STRONGLINK> sofa::component::linearsystem::GlobalSystemMatrixExporter::l_linearSystem
protected

Constructor details

◆ GlobalSystemMatrixExporter()

sofa::component::linearsystem::GlobalSystemMatrixExporter::GlobalSystemMatrixExporter ( )
protected

Function details

◆ doInit()

void sofa::component::linearsystem::GlobalSystemMatrixExporter::doInit ( )
override

◆ SOFA_CLASS()

sofa::component::linearsystem::GlobalSystemMatrixExporter::SOFA_CLASS ( GlobalSystemMatrixExporter  ,
sofa::simulation::BaseSimulationExporter   
)

◆ write()

bool sofa::component::linearsystem::GlobalSystemMatrixExporter::write ( )
override