Public Types | Public Member Functions | List of all members
nastranSetWriter< Type > Class Template Reference

Line format in Nastran (currently hardcoded to 'free' format) More...

Inheritance diagram for nastranSetWriter< Type >:
Inheritance graph
[legend]
Collaboration diagram for nastranSetWriter< Type >:
Collaboration graph
[legend]

Public Types

using fieldFormat = Foam::fileFormats::NASCore::fieldFormat
 

Public Member Functions

 TypeName ("nastran")
 
 nastranSetWriter ()
 
 nastranSetWriter (const dictionary &dict)
 
virtual ~nastranSetWriter ()=default
 
virtual fileName getFileName (const coordSet &, const wordList &) const
 
virtual void write (const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const
 
virtual void write (const bool writeTracks, const List< scalarField > &times, const PtrList< coordSet > &tracks, const wordList &valueSetNames, const List< List< Field< Type >>> &valueSets, Ostream &) const
 
- Public Member Functions inherited from writer< Type >
 TypeName ("writer")
 
 declareRunTimeSelectionTable (autoPtr, writer, word,(),())
 
 declareRunTimeSelectionTable (autoPtr, writer, dict,(const dictionary &formatOptions),(formatOptions))
 
 writer ()
 
 writer (const dictionary &dict)
 
virtual ~writer ()=default
 
virtual void write (const coordSet &, const wordList &, const List< Field< Type >> &, Ostream &) const
 
virtual Ostreamwrite (const scalar, Ostream &) const
 
template<class VSType >
OstreamwriteVS (const VSType &, Ostream &) const
 
virtual Ostreamwrite (const vector &, Ostream &) const
 
virtual Ostreamwrite (const sphericalTensor &, Ostream &) const
 
virtual Ostreamwrite (const symmTensor &, Ostream &) const
 
virtual Ostreamwrite (const tensor &, Ostream &) const
 
template<class VSType >
Foam::OstreamwriteVS (const VSType &value, Ostream &os) const
 

Additional Inherited Members

- Static Public Member Functions inherited from writer< Type >
static autoPtr< writerNew (const word &writeFormat)
 
static autoPtr< writerNew (const word &writeFormat, const dictionary &formatOptions)
 
- Protected Member Functions inherited from writer< Type >
fileName getBaseName (const coordSet &, const wordList &) const
 
void writeCoord (const coordSet &, const label sampleI, Ostream &) const
 
void writeTable (const coordSet &, const List< Type > &, Ostream &) const
 
void writeTable (const coordSet &, const List< const List< Type > * > &, Ostream &os) const
 
virtual void writeSeparator (Ostream &os) const
 

Detailed Description

template<class Type>
class Foam::nastranSetWriter< Type >

Line format in Nastran (currently hardcoded to 'free' format)

Does not do field data.

Source files

Definition at line 50 of file nastranSetWriter.H.

Member Typedef Documentation

◆ fieldFormat

Definition at line 67 of file nastranSetWriter.H.

Constructor & Destructor Documentation

◆ nastranSetWriter() [1/2]

Definition at line 29 of file nastranSetWriter.C.

◆ nastranSetWriter() [2/2]

nastranSetWriter ( const dictionary dict)
explicit

Definition at line 36 of file nastranSetWriter.C.

◆ ~nastranSetWriter()

virtual ~nastranSetWriter ( )
virtualdefault

Member Function Documentation

◆ TypeName()

TypeName ( "nastran"  )

◆ getFileName()

Foam::fileName getFileName ( const coordSet points,
const wordList valueSetNames 
) const
virtual

Implements writer< Type >.

Definition at line 46 of file nastranSetWriter.C.

References points.

◆ write() [1/2]

void write ( const coordSet points,
const wordList valueSetNames,
const List< const Field< Type > * > &  valueSets,
Ostream os 
) const
virtual

Implements writer< Type >.

Definition at line 57 of file nastranSetWriter.C.

References forAll, Foam::nl, os(), points, NASCore::writeKeyword(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ write() [2/2]

void write ( const bool  writeTracks,
const List< scalarField > &  times,
const PtrList< coordSet > &  tracks,
const wordList valueSetNames,
const List< List< Field< Type >>> &  valueSets,
Ostream os 
) const
virtual

Implements writer< Type >.

Definition at line 124 of file nastranSetWriter.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, os(), points, and NASCore::writeKeyword().

Here is the call graph for this function:

The documentation for this class was generated from the following files: