Glyph2 Version 2.18.0 Mode Types - - - CaeExporter |
pw:: CaeExporterThe CaeExporter IO mode type. If you do not require fine-grained control over the CAE export process, use the <pw::Application export> action. Derives Frompw::Object pw::Mode pw::IOMode NotesTo create a mode of this type, use the pw::Application.begin command with the mode CaeExport specified, like this: set exporter [pw::Application begin CaeExport $entities] Summary
addEntities
This action adds entities to the uninitialized mode. Parameters
ReturnsThis action returns nothing. ExampleCode # Where, addAllEntities
This action adds all mode appropriate entities from all frameworks to the uninitialized mode. ParametersThis action has no parameters. ReturnsThe number of entities added to the mode. If the mode already contains entities, the duplicate entities will be silently skipped. NoteThis action can only be called after create, but before initialize. verify
This action verifies the IO mode attributes and the entities of the mode that should be exported. ParametersThis action has no parameters. ReturnsThis action returns a boolean of true if verified, false if not. NoteThis action must be called after initialize, but before write. Possible ErrorsAttributeIsInvalid, UnsupportedEntityDetected, Unknown write
This action writes the file by converting pw::GridEntity objects into the format required for the exported data. ParametersThis action has no parameters. ReturnsThis action returns a boolean of true if written, false if not. A Tcl error is thrown on failure if -strict was specified for <initialize>. NoteThis action must be called after initialize and verify. Possible ErrorsAttributeIsInvalid, UnsupportedEntityDetected, Unknown Minimal CaeExport IOMode code exampleExample: Code example showing a minimal usage of a CaeExport IOMode. Code # This sample assumes: Output Full-featured CaeExport IOMode code exampleExampleCode # This sample assumes: Output Current solver: CGNS |
This action gets a list of the file types that can export all of the entities of this mode.
$io getFileTypes
This action adds entities to the uninitialized mode.
$io addEntities ?-path path? entities
This action adds all mode appropriate entities from all frameworks to the uninitialized mode.
$io addAllEntities
This action verifies the IO mode attributes and the entities of the mode that should be exported.
$io verify
This action checks if there is data that will be written out when the write action is used.
$io canWrite
This action writes the file by converting pw::GridEntity objects into the format required for the exported data.
$io write
This action begins a mode in the application.
pw::Application begin ?-mode_specific_flags? mode ?entities?