concepts::ModelControl< hp2D::Maxwell2D_H_DD > Class Reference

#include <Maxwell2D_H.hh>

Inheritance diagram for concepts::ModelControl< hp2D::Maxwell2D_H_DD >:
concepts::ModelControl< hp2D::Maxwell2D_H_Base > concepts::ModelControlBase< Model< Cmplx > >

Public Member Functions

void basisFunctions (const std::string path="")
 Writes matlab graphics files for each basis function of the space of the model. More...
 
virtual void dataOut (concepts::InOutParameters &parameters, const bool store=false, const std::string path="")
 Append the parameters of the calculation to parameters and writes it in matlab format if path is given. More...
 
void graphicsOut (const uint numPoints, const std::string path="")
 Writes matlab graphics files. More...
 
void loadSolution (const std::string vectorFile)
 Loads solution vector from vectorFile. More...
 
virtual void matrices ()
 Builds the matrices and the load vector. More...
 
virtual hp2D::Maxwell2D_H_DDmodel ()
 Returns the model. More...
 
virtual const hp2D::Maxwell2D_H_DDmodel () const
 
 ModelControl (hp2D::Maxwell2D_H_DD &model)
 Constructor. More...
 
const concepts::InOutParametersparameters () const
 Return parameters of the calculation. More...
 
hp2D::hpFullprebuild ()
 Returns Space Prebuilder. More...
 
void setEpsilon (const Real epsilon)
 Reset the dielectricity constant. More...
 
void setOmega (const Real omega)
 Reset the angular frequency. More...
 
void setOmega (const Real omega, bool assembleMatrices)
 Sets the angular frequencies and reset the solution vector and the matrices. More...
 
virtual Real solve ()
 Solves the system and returns the residual. More...
 
void solverType (enum hp2D::Maxwell2D_H_Base::solverType type, bool diagPrecond)
 Change the solver type. More...
 
void storeMatricesToMatlab (const std::string matrixFile) const
 Stores the calculated matrices. More...
 
void writeSolution (const std::string vectorFile, bool verbose=true)
 Writes solution vector to vectorFile. More...
 
virtual ~ModelControl ()
 

Protected Member Functions

virtual std::string filename_ (const std::string varname, const std::string path, const bool flag=false)
 Gives a file name for different outputs. More...
 
void formulaOut_ (const concepts::PiecewiseFormulaBase< G > &frm, const std::string frmstr, const std::string name)
 graphical output of formulas More...
 
virtual std::ostream & info (std::ostream &os) const
 
void newfile_ (std::string &name, const std::string varname, const std::string ending)
 Tries, if given file can be opened for writing or if its a path. More...
 

Protected Attributes

Model< Cmplx > & model_
 The model. More...
 
concepts::InOutParameters parameters_
 Parameters of the calculation. More...
 

Detailed Description

Definition at line 390 of file Maxwell2D_H.hh.

Constructor & Destructor Documentation

◆ ModelControl()

◆ ~ModelControl()

Reimplemented from concepts::ModelControl< hp2D::Maxwell2D_H_Base >.

Definition at line 395 of file Maxwell2D_H.hh.

Member Function Documentation

◆ basisFunctions()

void concepts::ModelControlBase< Model< Cmplx > >::basisFunctions ( const std::string  path = "")
inherited

Writes matlab graphics files for each basis function of the space of the model.

◆ dataOut()

virtual void concepts::ModelControlBase< Model< Cmplx > >::dataOut ( concepts::InOutParameters parameters,
const bool  store = false,
const std::string  path = "" 
)
virtualinherited

Append the parameters of the calculation to parameters and writes it in matlab format if path is given.

◆ filename_()

virtual std::string concepts::ModelControlBase< Model< Cmplx > >::filename_ ( const std::string  varname,
const std::string  path,
const bool  flag = false 
)
protectedvirtualinherited

Gives a file name for different outputs.

Due to derivation the name can be adopted. At the moment its like "path/varname_mshAbbr".

Parameters
varnamename of an variable
pathpath
psome flag

◆ formulaOut_()

void concepts::ModelControlBase< Model< Cmplx > >::formulaOut_ ( const concepts::PiecewiseFormulaBase< G > &  frm,
const std::string  frmstr,
const std::string  name 
)
protectedinherited

graphical output of formulas

Definition at line 153 of file models.hh.

◆ graphicsOut()

void concepts::ModelControl< hp2D::Maxwell2D_H_Base >::graphicsOut ( const uint  numPoints,
const std::string  path = "" 
)
inherited

Writes matlab graphics files.

Parameters
numPointsnumber of points per cell in one direction

◆ info()

virtual std::ostream& concepts::ModelControl< hp2D::Maxwell2D_H_DD >::info ( std::ostream &  os) const
protectedvirtual

◆ loadSolution()

void concepts::ModelControlBase< Model< Cmplx > >::loadSolution ( const std::string  vectorFile)
inherited

Loads solution vector from vectorFile.

◆ matrices()

virtual void concepts::ModelControl< hp2D::Maxwell2D_H_DD >::matrices ( )
virtual

Builds the matrices and the load vector.

Implements concepts::ModelControl< hp2D::Maxwell2D_H_Base >.

◆ model() [1/2]

Returns the model.

Reimplemented from concepts::ModelControl< hp2D::Maxwell2D_H_Base >.

Definition at line 396 of file Maxwell2D_H.hh.

◆ model() [2/2]

virtual const hp2D::Maxwell2D_H_DD& concepts::ModelControl< hp2D::Maxwell2D_H_DD >::model ( ) const
inlinevirtual

Reimplemented from concepts::ModelControl< hp2D::Maxwell2D_H_Base >.

Definition at line 399 of file Maxwell2D_H.hh.

◆ newfile_()

void concepts::ModelControlBase< Model< Cmplx > >::newfile_ ( std::string &  name,
const std::string  varname,
const std::string  ending 
)
protectedinherited

Tries, if given file can be opened for writing or if its a path.

In latter case opens gives back a standard filename with ending and use of varname.

If the given string is neither possible to open or a path a empty string is given to name.

◆ parameters()

const concepts::InOutParameters& concepts::ModelControlBase< Model< Cmplx > >::parameters ( ) const
inlineinherited

Return parameters of the calculation.

Definition at line 121 of file models.hh.

◆ prebuild()

hp2D::hpFull& concepts::ModelControl< hp2D::Maxwell2D_H_Base >::prebuild ( )
inlineinherited

Returns Space Prebuilder.

Definition at line 338 of file Maxwell2D_H.hh.

◆ setEpsilon()

void concepts::ModelControl< hp2D::Maxwell2D_H_Base >::setEpsilon ( const Real  epsilon)
inherited

Reset the dielectricity constant.

◆ setOmega() [1/2]

void concepts::ModelControl< hp2D::Maxwell2D_H_Base >::setOmega ( const Real  omega)
inherited

Reset the angular frequency.

◆ setOmega() [2/2]

void concepts::ModelControl< hp2D::Maxwell2D_H_DD >::setOmega ( const Real  omega,
bool  assembleMatrices 
)

Sets the angular frequencies and reset the solution vector and the matrices.

If assemblesMatrices is true adapt the mass matrices and recalculate the stiffness matrices. To get the changed energies, the system has to be solved again.

◆ solve()

virtual Real concepts::ModelControl< hp2D::Maxwell2D_H_DD >::solve ( )
virtual

Solves the system and returns the residual.

Implements concepts::ModelControl< hp2D::Maxwell2D_H_Base >.

◆ solverType()

void concepts::ModelControl< hp2D::Maxwell2D_H_Base >::solverType ( enum hp2D::Maxwell2D_H_Base::solverType  type,
bool  diagPrecond 
)
inherited

Change the solver type.

◆ storeMatricesToMatlab()

void concepts::ModelControl< hp2D::Maxwell2D_H_DD >::storeMatricesToMatlab ( const std::string  matrixFile) const

Stores the calculated matrices.

◆ writeSolution()

void concepts::ModelControlBase< Model< Cmplx > >::writeSolution ( const std::string  vectorFile,
bool  verbose = true 
)
inherited

Writes solution vector to vectorFile.

Writes a message to cout, if not verbose.

Member Data Documentation

◆ model_

Model< Cmplx > & concepts::ModelControlBase< Model< Cmplx > >::model_
protectedinherited

The model.

Definition at line 127 of file models.hh.

◆ parameters_

concepts::InOutParameters concepts::ModelControlBase< Model< Cmplx > >::parameters_
protectedinherited

Parameters of the calculation.

Definition at line 129 of file models.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich