51 #if defined(HAVE_NETCDFCPP_H)
53 #elif defined(HAVE_NETCDF_H)
144 const NcDim *m_DimTime;
145 const NcDim *m_DimV1;
146 const NcDim *m_DimV3;
189 bool IsOpen(
int out)
const;
204 void Init(
const char* sFName,
int iExtNum = -1);
212 bool Open(
const int out,
const std::string& postfix);
238 inline std::ostream&
Output(
void)
const;
239 inline std::ostream&
StrNodes(
void)
const;
240 inline std::ostream&
Electric(
void)
const;
241 inline std::ostream&
Abstract(
void)
const;
242 inline std::ostream&
Inertia(
void)
const;
243 inline std::ostream&
Joints(
void)
const;
244 inline std::ostream&
Forces(
void)
const;
245 inline std::ostream&
Beams(
void)
const;
246 inline std::ostream&
Rotors(
void)
const;
247 inline std::ostream&
Restart(
void)
const;
250 inline std::ostream&
Hydraulic(
void)
const;
251 inline std::ostream&
PresNodes(
void)
const;
252 inline std::ostream&
Loadable(
void)
const;
253 inline std::ostream&
Genels(
void)
const;
254 inline std::ostream&
Partition(
void)
const;
257 inline std::ostream&
Log(
void)
const;
258 inline std::ostream&
AirProps(
void)
const;
260 inline std::ostream&
Externals(
void)
const;
261 inline std::ostream&
Modal(
void)
const;
264 inline std::ostream&
Plates(
void)
const;
265 inline std::ostream&
Gravity(
void)
const;
266 inline std::ostream&
DofStats(
void)
const;
268 inline std::ostream&
Traces(
void)
const;
271 inline int iW(
void)
const;
272 inline int iP(
void)
const;
279 inline NcFile* pGetBinFile(
void)
const;
284 AttrVal(
void) {
NO_OP; };
285 AttrVal(
const std::string& attr,
const std::string& val) : attr(attr), val(val) {
NO_OP; };
288 typedef std::vector<OutputHandler::AttrVal> AttrValVec;
289 typedef std::vector<const NcDim *> NcDimVec;
292 CreateDim(
const std::string& name,
integer size = -1);
295 GetDim(
const std::string& name)
const;
297 inline const NcDim* DimTime(
void)
const;
298 inline const NcDim* DimV1(
void)
const;
299 inline const NcDim* DimV3(
void)
const;
302 CreateVar(
const std::string& name, NcType type,
303 const AttrValVec& attrs,
const NcDimVec& dims);
306 CreateVar(
const std::string& name,
const std::string& type);
310 CreateVar(
const std::string& name,
311 const std::string& units,
const std::string& description);
314 CreateRotationVar(
const std::string& name_prefix,
315 const std::string& name_postfix,
317 const std::string& description);
324 OutputHandler::CreateVar(
const std::string& name,
325 const std::string& units,
const std::string& description)
330 attrs[0] = AttrVal(
"units", units);
331 attrs[2] = AttrVal(
"description", description);
335 if (
typeid(T) ==
typeid(
integer)) {
336 attrs[1] = AttrVal(
"type",
"integer");
340 attrs[1] = AttrVal(
"type",
"doublereal");
343 }
else if (
typeid(T) ==
typeid(
Vec3)) {
344 attrs[1] = AttrVal(
"type",
"Vec3");
353 return CreateVar(name, type, attrs, dims);
357 OutputHandler::pGetBinFile(
void)
const
363 OutputHandler::DimTime(
void)
const
369 OutputHandler::DimV1(
void)
const
375 OutputHandler::DimV3(
void)
const
393 return const_cast<std::ostream &
>(cout);
396 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofOutput));
404 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofStrNodes));
411 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofElectric));
418 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofThermalNodes));
425 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofThermalElements));
432 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofAbstract));
439 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofInertia));
446 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofJoints));
453 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofForces));
460 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofBeams));
467 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofRotors));
474 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofRestart));
481 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofRestartXSol));
488 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofAerodynamic));
495 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofHydraulic));
502 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofPresNodes));
509 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofLoadable));
516 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofGenels));
523 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofPartition));
530 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofAeroModals));
537 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofReferenceFrames));
544 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(cout));
547 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofLog));
555 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofAirProps));
562 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofParameters));
569 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofExternals));
576 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofModal));
583 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofPlates));
590 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofGravity));
597 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofDofStats));
604 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofDriveCallers));
611 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofTraces));
618 return const_cast<std::ostream &
>(
dynamic_cast<const std::ostream &
>(
ofEigenanalysis));
void OutputHandler_int(void)
std::ostream & ReferenceFrames(void) const
std::ofstream ofRestartXSol
void SetWidth(int iNewWidth)
std::ostream & Genels(void) const
ToBeOutput(flag fOut=fDefaultOut)
void SetNetCDF(const OutputHandler::OutFiles out)
virtual bool bToBeOutput(void) const
#define MBDYN_EXCEPT_ARGS
std::ostream & DofStats(void) const
bool UseNetCDF(int out) const
std::ostream & AeroModals(void) const
virtual ~OutputHandler(void)
std::ostream & Modal(void) const
std::ofstream ofAeroModals
std::ostream & ThermalElements(void) const
bool Close(const OutputHandler::OutFiles out)
void SetText(const OutputHandler::OutFiles out)
std::ostream & StrNodes(void) const
std::ostream & Inertia(void) const
std::ofstream ofAerodynamic
std::ostream & ThermalNodes(void) const
std::ofstream ofExternals
std::ofstream ofEigenanalysis
std::ofstream ofPresNodes
std::ofstream ofThermalElements
std::ostream & Gravity(void) const
std::ofstream ofThermalNodes
std::ofstream ofReferenceFrames
bool Open(const OutputHandler::OutFiles out)
std::ostream & Abstract(void) const
void Init(const char *sFName, int iExtNum=-1)
std::ostream & Partition(void) const
bool UseScientific(int out) const
std::ostream & Traces(void) const
void SetPrecision(int iNewPrecision)
virtual void Trace(OutputHandler &OH) const =0
void IncCurrentStep(void)
std::ostream & Loadable(void) const
struct OutputHandler::@34 OutData[LASTFILE]
std::ostream & Parameters(void) const
long GetCurrentStep(void) const
void SetExceptions(std::ios::iostate flags)
void SetCurrentStep(long Step)
std::ofstream ofParameters
std::ostream & Joints(void) const
bool IsOpen(int out) const
virtual void OutputPrepare(OutputHandler &OH)
#define ASSERT(expression)
std::ostream & RestartXSol(void) const
std::ofstream ofDriveCallers
std::ostream & AirProps(void) const
virtual flag fToBeTraced(void) const
std::ostream & Externals(void) const
std::ostream & Restart(void) const
std::ostream & DriveCallers(void) const
std::ostream & Beams(void) const
virtual void SetTraceFlag(flag f=TRACE)
std::ostream & Output(void) const
virtual void Output(OutputHandler &OH) const
std::ostream & Rotors(void) const
virtual flag fToBeOutput(void) const
std::ofstream ofHydraulic
bool UseDefaultPrecision(int out) const
std::ostream & Log(void) const
std::ostream & Get(const OutputHandler::OutFiles f)
std::ostream & Hydraulic(void) const
virtual void SetOutputFlag(flag f=flag(1))
std::ostream & Plates(void) const
std::ostream & Eigenanalysis(void) const
std::ofstream ofPartition
std::ostream & PresNodes(void) const
std::ostream & Electric(void) const
bool RestartOpen(bool openResXSol=false)
std::ostream & Forces(void) const
bool UseText(int out) const
virtual ~ToBeOutput(void)
std::ostream & Aerodynamic(void) const