IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Num.ConvectionRev1RobertFileManager Class Reference
+ Inheritance diagram for IG.Num.ConvectionRev1RobertFileManager:
+ Collaboration diagram for IG.Num.ConvectionRev1RobertFileManager:

Public Member Functions

 ConvectionRev1RobertFileManager (string rootDirectory)
 Constructs a file manager for interfacing simulation casting simulator of Robert Vertnik. More...
 
override void WriteInputParameters (IVector inputParameters)
 Writes optimization input parameters to the standard location. More...
 
virtual void WriteInputParameters (IVector inputParameters, string inputPath)
 Writes optimization input parameters to the standard location. More...
 
- Public Member Functions inherited from IG.Num.ConvectionRobertFileManager
 ConvectionRobertFileManager (string rootDirectory)
 Constructs a file manager for interfacing simulation casting simulator of Robert Vertnik. More...
 
override void WriteInputParameters (IVector inputParameters)
 Writes optimization input parameters to the standard location. More...
 
override void ReadOutputValues (ref IVector outputValues)
 Reads optimization output values form the file at a standard location. More...
 
override void ReadInputParameters (ref IVector inputParameters)
 Reads optimization input parameters form the file at a standard location. More...
 
virtual void DeleteOutputFiles ()
 Deletes the output files. More...
 
virtual void ReadOutputValues (ref IVector outputValues, string outputPath)
 Reads optimization output values form the file at a standard location. More...
 
override void WriteOutputValues (IVector outputValues)
 Writes optimization ouptut values to the standard location. More...
 
- Public Member Functions inherited from IG.Num.SimCastingRobertFileManager
 SimCastingRobertFileManager (string rootDirectory, string projectName, string simulationName)
 Constructs a file manager for interfacing simulation casting simulator of Robert Vertnik. More...
 
void UpdateRootDirectory ()
 Updates the root directory path. More...
 
void RemoveTemporaryFilesFromExecutableDirpath ()
 Removes temporary files from teh executable directory. This is crucial for normal working of the interface (otherwise there are errors saying for some temporary files that they are readonly). More...
 
void RunSimulator ()
 Runs the simulaor interfaced by the current object. This method only runs the simulator, it does not prepare any input. More...
 
void RunSimulator (string[] commandlineArguments)
 Runns the simulator with the specified command-line arguments. Warning: this method should be used for testing only because the command-line arguments that should be passed to the simulator are specified by the interrface rules and can not be specified arbitrarily. Otherwise, run the overloaded method with no arguments. This method only runs the simulator, it does not prepare any input. More...
 
virtual void CalculateVectorResponse (IVector inputParameters, ref IVector outputValues)
 Calculates simulator's response at the specified input parameters. More...
 
override string ToString ()
 Returns a stirng that contains basic information about the current interfacing object, especially various relevant names (such as project name, etc.) and directory and file paths. More...
 

Protected Attributes

new int _numInputParameters = 3
 
int _numNetDotsX = 60
 
int _numNetDotsY = 60
 
- Protected Attributes inherited from IG.Num.ConvectionRobertFileManager
new int _numInputParameters = 2
 
new int _numOutputValues = 3
 
int _numProcessors = 1
 
- Protected Attributes inherited from IG.Num.SimCastingRobertFileManager
string _rootDirectory = null
 
string _projectName
 
string _simulationName
 
string _executableDirname = SimCastingRobertConst.ExecutableDirname
 
int _numInputParameters
 
int _numOutputValues
 

Properties

override int NumInputParameters [get, set]
 Number of input optimization parameters for the simulator. More...
 
virtual int NumNetDotsX [get, set]
 Number of points on the net on x side. More...
 
virtual int NumNetDotsY [get, set]
 Number of points on the net on y side. More...
 
- Properties inherited from IG.Num.ConvectionRobertFileManager
virtual string ExecutableFilename [get, set]
 
override string ExecutablePath [get, protected set]
 File path of simulator's executable. Only pure file name can be provided (if the full path is provided then only the file name is extracted, and the related path is calculated when firs needed). If set to null then file path is set to null and will be recalculated when getter is called. More...
 
override string ExecutableDirpath [get, protected set]
 Path of the directory where executable is located. Setter takes only pure directory name, without path information. If set to null then directory path is set to null and will be recalculated when getter is called. More...
 
string InputPath [get, set]
 
string OutputPath [get, set]
 
override string OptInputJsonPath [get, protected set]
 Path to the file that contains optimization input (usually stored by the caller of simulator). Only pure file name can be provided (if the full path is provided then only the file name is extracted, and the related path is calculated when firs needed). If set to null then file path is set to null and will be recalculated when getter is called. More...
 
override string OptOutputJsonPath [get, protected set]
 Path to the file where optimization output values are stored by simulator. Only pure file name can be provided (if the full path is provided then only the file name is extracted, and the related path is calculated when firs needed). If set to null then file path is set to null and will be recalculated when getter is called. More...
 
override int NumInputParameters [get, set]
 Number of input optimization parameters for the simulator. More...
 
override int NumOutputValues [get, set]
 Number of optimization output values produced by the simulator. More...
 
virtual int NumProcessors [get, set]
 Number of processors that the program allocates for computing. More...
 
- Properties inherited from IG.Num.SimCastingRobertFileManager
object Lock [get]
 This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More...
 
object InternalLock [get]
 Used internally for locking access to internal fields. More...
 
int OutputLevel [get, set]
 Level of information that is output to the console by some methods. More...
 
string RootDirectory [get, protected set]
 Root directory for accessing casting simulator. More...
 
string ProjectName [get, protected set]
 Casting simulator project name, specifies names of subdirextories of the main directories, where data actually resides. More...
 
string SimulationName [get, protected set]
 Casting simulator simulation name, determines e.g. names of the optimization input and output files. More...
 
virtual string ExecutableDirpath [get, protected set]
 Path of the directory where executable is located. Setter takes only pure directory name, without path information. If set to null then directory path is set to null and will be recalculated when getter is called. More...
 
virtual string InputDirpath [get, protected set]
 Path of the directory where input files are located. Setter takes only pure directory name, without path information. If set to null then directory path is set to null and will be recalculated when getter is called. More...
 
virtual string OutputDirpath [get, protected set]
 Path of the directory where output files are located. Setter takes only pure directory name, without path information. If set to null then directory path is set to null and will be recalculated when getter is called. More...
 
virtual string PlotOutputDirpath [get, protected set]
 Path of the directory where plot files are located. Setter takes only pure directory name, without path information. If set to null then directory path is set to null and will be recalculated when getter is called. More...
 
virtual string MaterialDirpath [get, protected set]
 Path of the directory where material data is located. Setter takes only pure directory name, without path information. If set to null then directory path is set to null and will be recalculated when getter is called. More...
 
virtual string RootDirectoryContainingFilepath [get, protected set]
 File path of the file that contains the path of the directory containing the simulation directory structure. This file is important because it contents must be consistent with the actual location, otherwise simulation executable will not work. Only pure file name can be provided (if the full path is provided then only the file name is extracted, and the related path is calculated when firs needed). If set to null then file path is set to null and will be recalculated when getter is called. More...
 
virtual string ExecutablePath [get, protected set]
 File path of simulator's executable. Only pure file name can be provided (if the full path is provided then only the file name is extracted, and the related path is calculated when firs needed). If set to null then file path is set to null and will be recalculated when getter is called. More...
 
virtual string SimulationNamePath [get, protected set]
 Path to the file that contains the simulation name. Data found in this file specifies the names of input and output files. Only pure file name can be provided (if the full path is provided then only the file name is extracted, and the related path is calculated when firs needed). If set to null then file path is set to null and will be recalculated when getter is called. More...
 
virtual string OptInputJsonPath [get, protected set]
 Path to the file that contains optimization input (usually stored by the caller of simulator). Only pure file name can be provided (if the full path is provided then only the file name is extracted, and the related path is calculated when firs needed). If set to null then file path is set to null and will be recalculated when getter is called. More...
 
virtual string OptOutputJsonPath [get, protected set]
 Path to the file where optimization output values are stored by simulator. Only pure file name can be provided (if the full path is provided then only the file name is extracted, and the related path is calculated when firs needed). If set to null then file path is set to null and will be recalculated when getter is called. More...
 
virtual int NumInputParameters [get, set]
 Number of input optimization parameters for the simulator. More...
 
virtual int NumOutputValues [get, set]
 Number of optimization output values produced by the simulator. More...
 
- Properties inherited from IG.Lib.ILockable
object Lock [get]
 

Additional Inherited Members

- Public Attributes inherited from IG.Num.ConvectionRobertFileManager
new string _executableFilename = "2DNatConvCavity.exe"
 
string OptInputJsonFilename = "input.txt"
 
string OptOutputJsonFilename = "output.txt"
 
- Static Protected Attributes inherited from IG.Num.SimCastingRobertFileManager
static string[] emptyCommandArguments = new string[0]
 

Constructor & Destructor Documentation

IG.Num.ConvectionRev1RobertFileManager.ConvectionRev1RobertFileManager ( string  rootDirectory)
inline

Constructs a file manager for interfacing simulation casting simulator of Robert Vertnik.

Parameters
rootDirectoryRoot directory containing all base directories for simulator data.
projectNameName of the project, which determines nmes of subdirectories of base directories that contain data for the current project.
simulationNameSimulation name, which determines e.g. names of optimization input and output files used for data exchange between optimization and simulation.

Member Function Documentation

override void IG.Num.ConvectionRev1RobertFileManager.WriteInputParameters ( IVector  inputParameters)
inlinevirtual

Writes optimization input parameters to the standard location.

Parameters
outputValuesParameters to be written.

Reimplemented from IG.Num.SimCastingRobertFileManager.

virtual void IG.Num.ConvectionRev1RobertFileManager.WriteInputParameters ( IVector  inputParameters,
string  inputPath 
)
inlinevirtual

Writes optimization input parameters to the standard location.

Parameters
outputValuesParameters to be written.
outputValuesPath to the input file.

Reimplemented from IG.Num.ConvectionRobertFileManager.

Member Data Documentation

new int IG.Num.ConvectionRev1RobertFileManager._numInputParameters = 3
protected
int IG.Num.ConvectionRev1RobertFileManager._numNetDotsX = 60
protected
int IG.Num.ConvectionRev1RobertFileManager._numNetDotsY = 60
protected

Property Documentation

override int IG.Num.ConvectionRev1RobertFileManager.NumInputParameters
getset

Number of input optimization parameters for the simulator.

virtual int IG.Num.ConvectionRev1RobertFileManager.NumNetDotsX
getset

Number of points on the net on x side.

virtual int IG.Num.ConvectionRev1RobertFileManager.NumNetDotsY
getset

Number of points on the net on y side.


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