IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
File manager for interfacing the JMatPro software. More...
Classes | |
class | JMatResultInfo |
Class for checking and obtaining information about JMatPro results. More... | |
class | MaterialDirectoryInfoBase |
Contains information about the state of specific calculation related to material directory. More... | |
class | SimulationInfoBase |
Contains information about the particular bundle of simulations to be performed. More... | |
Public Types | |
enum | CalculationStatus { CalculationStatus.None = 0, CalculationStatus.Successful = 1 << 0, CalculationStatus.Incomplete = 1 << 1, CalculationStatus.Corrupted = 1 << 2, CalculationStatus.Timedout = 1 << 3, CalculationStatus.Failed = 1 << 4, CalculationStatus.Unsuccessful = Corrupted | Timedout | Failed | Incomplete } |
Public Member Functions | |
SimJMatProFileManagerBase (string workingDirectoryPath) | |
Construct JMatPro interface's file manager, with specified working directory. More... | |
SimJMatProFileManagerBase (string workingDirectoryPath, string settingsFilePath) | |
Construct JMatPro interface's file manager, with specified working directory and path to the file where settings are stored. More... | |
SimJMatProFileManagerBase (string workingDirectoryPath, SimJmatProSettingsDto settings) | |
Construct JMatPro interface's file manager, with specified working directory and settings object. More... | |
bool | LockFileMutexCheckAbandoned () |
Check whether the file system locking mutex (property LockFileMutex) has been abandoned, and returns true if it has been (otherwise, false is returned). More... | |
void | Error (string errorMsg) |
Temporary utility for reporting errors in the development stage. More... | |
void | ErrorNotImplemented (string errorMsg) |
Temporary utility for reporting errors in the development stage. More... | |
virtual void | GetRandomMaterialParameters (ref IVector result) |
Generates a random vector of material parameters whose elements (components) lie within the lower and upper bounds on parameters, and stores it to the specified vector. More... | |
virtual void | GetRandomMaterialParameters (IRandomGenerator rand, ref IVector result) |
Generates a random vector of material parameters whose elements (components) lie within the lower and upper bounds on parameters, and stores it to the specified vector. More... | |
virtual void | CreateJointParameters (IVector materialParameters, IVector processParameters, ref IVector jointParameters) |
Combines the specified vectors of materaial and process parameters into a joint vector of process parameters and stored it into the specified variable. More... | |
virtual void | ExtractMaterialParameters (IVector jointParameters, ref IVector materialParameters) |
Extracts the vector of material parameters from the specified joint vector of problem parameters, and stores it to the specified variable. More... | |
virtual void | ExtractProcessParameters (IVector jointParameters, ref IVector processParameters) |
Extracts the vector of process parameters from the specified joint vector of problem parameters, and stores it to the specified variable. More... | |
virtual void | ExtractMaterialAndProcessParameters (IVector jointParameters, ref IVector materialParameters, ref IVector processParameters) |
Extracts the vectors of material and process parameters from the specified joint vector of problem parameters, and stores them to the specified variable. More... | |
virtual string | GetMaterialDirectoryName (IVector parameters) |
Returns name of the material directory for the specified material parameters. More... | |
virtual bool | CreateMaterialDataDirectory () |
Creates the data directory for the current material (specified by material parameters). More... | |
bool | MoveMaterialDirectory (string materialDirectoryPath, string storageDirectoryPath) |
Moves the specified material directory to the specified storage directory. More... | |
int | MoveMaterialDirectoryToStorageMaterialCalculated () |
Moves to the appropeiate storage directory those material directories for which material properties have been successfully calculated. More... | |
int | MoveMaterialDirectoryToStorageBusyFlagSet () |
Moves to the appropeiate storage directory those material directories for which busy flag remained set. More... | |
int | MoveMaterialDirectoryToStorageTimedout () |
Moves to the appropeiate storage directory those material directories for which material properties calculation has timed out. More... | |
int | MoveMaterialDirectoryToStorageCalculationFailed () |
Moves to the appropeiate storage directory those material directories for which material properties calculation failed (regardless of reason). More... | |
int | MoveMaterialDirectoryToStorageDataCorrupted () |
Moves to the appropeiate storage directory those material directories for which material data is corrupted (e.g. material parameters are not written properly). More... | |
int | MoveMaterialDirectoriesToStorageAll (bool moveBusy, bool moveMaterialCalculated) |
Moves all material directries to the appropriate storage directories, dependent on the state of calculation in any particular directory. More... | |
bool | IsMaterialCalculationBusy () |
Flag indicating whether material calculation for the current material parameters is in progress. More... | |
virtual void | ClearMaterialCalculationBusy () |
Clears the flag indicating that material calculation is in progress. More... | |
virtual bool | SetMaterialCalculationBusy () |
Sets the flag indicating that material calculation directory is used, and returns true if the flag was successfully set. More... | |
bool | IsMaterialCalculationFinished () |
Flag indicating whether material calculation for the current material parameters is finished. More... | |
virtual void | ClearMaterialCalculationFinished () |
Clears the flag indicating that material calculation is finished. More... | |
virtual void | SetMaterialCalculationFinished () |
Sets the flag indicating that material calculation is finished. More... | |
bool | IsMaterialCalculationTimedout () |
Flag indicating whether material calculation for the current material parameters has timed out. More... | |
virtual void | ClearMaterialCalculationTimedout () |
Clears the flag indicating that material calculation has timed out. More... | |
virtual void | SetMaterialCalculationTimedout (double timeOutSeconds) |
Sets the flag indicating that material calculation has timed out. More... | |
bool | IsMaterialResultsWrong () |
Flag indicating whether material results are incorrect. More... | |
virtual void | ClearMaterialResultsWrong () |
Clears the flag indicating that material result file is incorrect. More... | |
virtual void | SetMaterialResultsWrong (string errorsString) |
Sets the flag indicating that material result file is incorrect. More... | |
virtual void | JMatLaunch () |
Safely launches the JMatpPro software. More... | |
virtual void | JMatOpen () |
Just starts the JMatPro software. More... | |
virtual void | JMatRepair () |
Repairs JMatPro, e.g. if it has been stopped abruptly or if another version is already running somewhere such that we could not start it. More... | |
virtual void | JMatClose () |
Closes JMatPro normally, by simulated user interaction. More... | |
virtual void | JMatStartCalculation () |
Starts JMatPro calculation. More... | |
virtual void | JMatSaveResults () |
Saves results of JMatPro calculation. More... | |
virtual void | JMatChangeTemperatureUnit () |
Changes (toggles once) temperature unit in an open window of JMatPro (software must be running and its main window on the top of window stack) by running the appropriate script. More... | |
virtual void | JMatChangeFractionUnit () |
Changes (toggles once) fraction unit in an open window of JMatPro (software must be running and its main window on the top of window stack) by running the appropriate script. More... | |
virtual bool | JMatWaitCalculation () |
Waits until JMatPro calculation finishes. More... | |
virtual bool | JMatWaitResultsSaved () |
Waits until JMatPro results are saved. More... | |
void | PrepareDataDefinitionsFromSuperset () |
Prepares data definitions from the superset data definition file. More... | |
void | PrapareDefaultMaterialParameters () |
Calculates default material parameters as the middle point of allowed intervals, and saves the parameters. More... | |
void | PrepareSettingsTemplate () |
Saves the current settings to a file used as template for settings file for JMatPro interface' file manager. More... | |
string | GetMaterialDirectoryPath (string specifiedMaterialDirectoryPath) |
Returns a valid (existent) material data directory path that is obtaines form the specified path, or throws exception if such a directory could not be obtained. More... | |
virtual string | GetMaterialDirectoryPath (string specifiedMaterialDirectoryPath, bool throwExceptions) |
Returns a valid (existent) material data directory path that is obtaines form the specified path, or null if such a directory could not be obtained (or, if throwExceptions is true, exception is thrown in this case). More... | |
virtual void | ClearMaterialResultsWrongFlag (string materialDirectoryPath) |
Clears the flag indicating that material result file is incorrect. More... | |
virtual void | SetMaterialResultsWrongFlag (string materialDirectoryPath, string dataErrorDescriptions) |
Sets the flag indicating that material result file is incorrect. More... | |
bool | ClearBusyFlag (string materialDirectoryPath) |
Clears the busy flag from the specified material directory, and returns a flag indicating whether clearing of a flag has actually occurred. More... | |
virtual void | ClearMaterialCalculationFinishedFlag (string materialDirectoryPath) |
Clears the flag indicating that material calculation is successfully finished, from the specified directory. More... | |
bool | GetMaterialParameters (string materialDirectoryPath, ref IVector parameters) |
Gets (reads) material parameters from the specified material data directory. More... | |
bool | IsMaterialDirectoryCorrupted (string materialDirectoryPath) |
Returns a flag indicated whether the specified material data directory is corrupted in the sense that some material data in it is corrupted (i.e. the vector of material parameters is not properly written). More... | |
void | GetMaterialDirectories (ref List< DirectoryInfo > directories) |
Obtains a list of paths of all material directories, and stores them on the specified list. More... | |
void | GetMaterialDirectoriesWhereCalculationFailed (ref List< DirectoryInfo > directories) |
Obtains a list of paths of all material directories where material properties calculation has failed. These are characterized as material directories where the busy flag is not set but material data is also not available (which means that material results file does not exist or is too small or the message file for the material calculation finished message does not exist). More... | |
void | GetMaterialDirectoriesWhereBusySet (ref List< DirectoryInfo > directories) |
Obtains a list of paths of all material directories where the busy flag is set (which may be a consequence of some failure). More... | |
void | GetMaterialDirectoriesWhereTimedout (ref List< DirectoryInfo > directories) |
Obtains a list of all material directories where material calculation has timed out. More... | |
void | GetMaterialDirectoriesWhereMaterialCalculated (ref List< DirectoryInfo > directories) |
Obtains a list of paths of all material directories where material properties were successfully calculated. These are characterized as material directories where the busy flag is not set but material data is also available (which means that material results file exists and is large enough and the message file for the material calculation finished message exists). More... | |
void | GetMaterialDirectoriesWhereMaterialDataCorrupted (ref List< DirectoryInfo > directories) |
Obtains a list of paths of all material directories where material data is corrupted. The method IsMaterialDirectoryCorrupted is used to test material directories for corruption. More... | |
int | WriteMaterialCalculationStatistics (bool printIndividualDirectories, bool includeCorrupted) |
Prints statistics of material properties calculation. More... | |
int | WriteMaterialDirectoriesWhereMaterialCalculated () |
Prints (to console and log file) information about material directories where material properties were successfully calculated. More... | |
bool | ReleaseAbandonedMutex () |
Releases the mutex in the case it has been abandoned, and returns a flag indicating whether the mutex has actually been abandoned. Has no effect if mutex is not abandoned. More... | |
void | ClearBusyFlags () |
Clears the busy flag in all directories where it is still set (possibly because some procedure has hanged). More... | |
void | RetryCalculateMaterialProperties (string materialDirectoryPath) |
Retries calculation of More... | |
void | RetryCalculateMaterialProperties (string materialDirectoryPath, int whichCalculation, int numCalculations) |
Retries calculation of More... | |
int | RetryCalculateMaterialProperties () |
Retries calculation of material properties in the directories where calculation obviously failed. More... | |
void | KillJMatPro () |
Kills the JMatPro process. More... | |
bool | IsJMatProRunning () |
Returns a flag indicating whether the JMatPro application is currently running. More... | |
bool | IsMaterialDataDirectoryPrepared () |
Whether material data is prepared. More... | |
void | CalculateMaterialPropertiesRandomSet (int numParameterSets) |
Calculates material properties by JMatPro for a set of random parameters. More... | |
void | CalculateMaterialProperties (string parametersPath) |
Calculates material properties at parameters that are read from a file. More... | |
void | CalculateMaterialPropertiesDef (string parametersPath) |
Calculates material properties at parameters that are read from a data definition file as default values. More... | |
void | CalculateMaterialProperties (IVector parameters) |
Calculates the material properties at the specified vector of material parameters, and stores results to the appropriate directory. More... | |
void | CalculateMaterialProperties () |
Calculates the material properties at the current vector of material parameters, and stores results to the appropriate directory. More... | |
void | MaterialCalculationsStatisticsPrint (string introductionString) |
Prints calculation statistics after another material calculation is finished. More... | |
void | MaterialCalculationStatisticsReset (int numIntendedCalculations) |
Resets material calculation statistics counters. More... | |
void | MaterialCalculationStatisticsStart () |
Updates material calculaiton statistics counters at the beginning of a new material calculation. More... | |
void | MaterialCalculationStatisticsStop (CalculationStatus status) |
Updates material calculation statistics counters after completion of a single calculation. More... | |
virtual void | GetMaterialParametersDefault (ref IG.Num.IVector parameters) |
Returns vector containing default values for material parameters. More... | |
virtual List< JMatProElemetData > | CalculateJMatInput (IVector materialParameters) |
Calculates and returns input data for JMatPro from the vector of material parameters. More... | |
virtual void | PrepareJMatInput (IVector materialParameters, string filePath) |
Prepares input file for JMatPro (composition of steel) according to the specified material parameters. More... | |
override string | ToString () |
virtual void | CopyToSettingsPlain< FmType > (SimJMatProSettingsDto< FmType > settings) |
Copies settings from the current JMatPro file manager to the specified settings object. More... | |
virtual void | CopyFromSettingsPlain< FmType > (SimJMatProSettingsDto< FmType > settings) |
Copies settings fom the specified settings object to the current JMatPro file manager. More... | |
void | SaveSettings (string filePath) |
Saves (serializes) the settings of the current JMatPro interface' file manager to the specified JSON file. More... | |
void | SaveSettings (string filePath, bool append) |
Saves (serializes) the settings of the current JMatPro interface' file manager to the specified JSON file. More... | |
void | LoadSettings (string filePath) |
Restores (deserializes) the current JMatPro interface' file manager settings from the specified file in JSON format. More... | |
JMatProElemetData | GetElementData (string elementSymbol) |
Returns data about the specified chemical element. More... | |
double | GetElementAtomicMass (string elementSymbol) |
Returns atomic mass of the chemical elemen with the specified symbol. More... | |
string | GetElementName (string elementSymbol) |
Returns name of the chemical elemen with the specified symbol. More... | |
int | GetNumCompositionElements () |
Returns number of elements that are included in JMatPro input files for steel. More... | |
string | GetCompositionElementSymbol (int which) |
Returns the chemical symbol of the specified element. More... | |
string | GetSimulatorBaseDirectoryName (int whichSimulator) |
Calculates and returns name of the base simulator directory with the specified index (zero-based). More... | |
string | GetSimulatorBaseDirectoryPath (int whichSimulator) |
Calculates and returns path of the root simulator directory with the specified index (zero-based). More... | |
virtual string | GetSimulatorCastingRobertDirectoryPath (int whichsimulator) |
Calculates and returns path of the Robert Vertnik's casting simulator's main directory with the specified index (zero-based). More... | |
virtual void | InitSimCastingRobert (string rootDirectory, string projectName, string simulationName) |
Initializes the data for casting simulation interface. More... | |
void | PrepareSimulatorData (SimCastingRobertFileManager simulator, string materialDirectoryPath) |
Prepares input data for simulator, in particular the material properties, which are obtained from the material data directory whose path is specified. More... | |
virtual void | CalculateSimulatedResponse (SimCastingRobertFileManager simulator, string materialDirectory, IVector inputProcessParameters, ref IVector inputJointParameters, ref IVector outputValues) |
Calculates simulator's response at the specified process parameters, for the specified material directory (that specifies material parameters and properties), and stores joint input parameters and output values. More... | |
virtual int | CalculateSimulatedResponse (SimCastingRobertFileManager simulator, string materialDirectory, string datasetName, params IVector[] inputProcessParameters) |
Calculates response by the specified simulator, for the specified process parameter vectors and the specified material (specified by the material directory approximate path), and stores calculated data in the appropriate file in the material data directory (defined by the datasetName). More... | |
virtual int | CalculateSimulatedResponseDefault (SimCastingRobertFileManager simulator, string materialDirectory, string datasetName) |
Calculates response by the specified simulator, for the specified process parameter vectors and the specified material (specified by the material directory approximate path), and stores calculated data in the appropriate file in the material data directory (defined by the datasetName). More... | |
Static Public Member Functions | |
static void | SaveSettings (SimJmatProSettingsDto settings, string filePath) |
Saves (serializes) the specified settings of the JMatPro interface' file manager to the specified JSON file. More... | |
static void | SaveSettings (SimJmatProSettingsDto settings, string filePath, bool append) |
Saves (serializes) the specified settings for JMatPro interface' file manager to the specified JSON file. More... | |
static void | LoadSettings (string filePath, ref SimJmatProSettingsDto settings) |
Restores (deserializes) JMatPro interface' settings from the specified file in JSON format. More... | |
static JMatProElemetData | FindElementData (List< JMatProElemetData > elements, string elementSymbol) |
Finds data for the specified element on the specified list of element data, and returns the data (or null if the data is not be found). More... | |
Public Attributes | |
string | _userInteractionCommand = SimJMatProConst.UserInteractionCommand |
string | _userInteractionRecordDir = SimJMatProConst.DefaultUserInteractionRecordDir |
string | _userInteractionRecordExtension = SimJMatProConst.UserInteractionRecordExtension |
string | _userInteractionRecordNameStartJMat = SimJMatProConst.UserInteractionRecordNameStartJMat |
string | _userInteractionRecordPathStartJMat |
string | _userInteractionRecordNameCloseJMat = SimJMatProConst.UserInteractionRecordNameCloseJMat |
string | _userInteractionRecordPathCloseJMat |
string | _userInteractionRecordNameRepairJMat = SimJMatProConst.UserInteractionRecordNameRepairJMat |
string | _userInteractionRecordPathRepairJMat |
string | _userInteractionRecordNameStartCalculation = SimJMatProConst.UserInteractionRecordNameStartCalculation |
string | _userInteractionRecordPathStartCalculation |
double | _jMatTimeoutWaitCalculationSeconds = SimJMatProConst.JMatTimeoutWaitCalculationSeconds |
double | _jMatTimeoutWaitResultsSavedSeconds = SimJMatProConst.JMatTimeoutWaitResultsSavedSeconds |
Protected Member Functions | |
bool | IsMaterialDirectory (DirectoryInfo dir) |
Returns a flag indicating whether teh specified directory is considered a material directory or not. This method is usually used to extract all material directoried from the root data directory (which may for some reason contain other directories, too). More... | |
bool | IsMaterialCalculated (string materialDirectoryPath) |
For the specified material data directory, returns a flag that indicates whether material properties have been calculated for the corresponding material or not. This is obtained by checking the corresponding message file as well as existence and size of the material results file. More... | |
bool | IsTimedoutFlagSet (string materialDirectoryPath) |
For the specified material data directory, returns a flag that indicates whether material calculation has not finished because of timeout. This is obtained by checking the corresponding message file. More... | |
bool | IsMaterialResultsWrongFlagSet (string materialDirectoryPath) |
For the specified material data directory, returns a flag that indicates whether material result file contents are incorrect. This is obtained by checking the corresponding message file. More... | |
bool | IsBusyFlagSet (string materialDirectoryPath) |
For the specified material data directory, returns a flag that indicates whether the busy flag is set. More... | |
string | ReplacePathSeparator (string path) |
Returns a string obtained by replacing the '\' path separator by the more standard '/' in the specified path string, or null if the string is null. More... | |
void | AddElements< ElType > (List< ElType > l, params ElType[] elements) |
Adds the specified elements to the specified list. More... | |
void | InitElements () |
Creates a list of chemical element data. More... | |
virtual SimCastingRobertFileManager | GetSimCastingRobert (int whichSimulator) |
Returns a newly created Robert Vertnik's casting simulator with the specified index (zero-based) More... | |
virtual int | CalculateSimulatedResponse (SimCastingRobertFileManager simulator, string materialDirectory, ref SampledDataSet sampledData, params IVector[] inputProcessParameters) |
Calculates response by the specified simulator, for the specified process parameter vectors and the specified material (specified by the material directory approximate path), and stores calculated data in the specified sampled data set (object of type SampledDataSet). More... | |
Static Protected Attributes | |
static bool | _elementsInitialized = false |
Properties | |
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... | |
string | LockFileMutexName [get, protected set] |
Name of the mutex for system-wide locking of files. More... | |
Mutex | LockFileMutex [get] |
Mutex for system-wide exclusive locks for file system operations related to the current class. More... | |
int | OutputLevel [get, set] |
Level of information that is output to the console by some methods. More... | |
abstract string | NameJMatProBase [get, set] |
Name of the JMatPro directory (without root directories) and executable. More... | |
virtual string | JMatInstallationPath [get, set] |
Path of the directory where JMAtPro 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 | JMatExecutableFileName [get, set] |
JMatPro executable relative path to installation directory. More... | |
virtual string | JMatExecutableFilePath [get, set] |
Path to the JMatPro executable. More... | |
virtual string | JMatDataPath [get, set] |
Path to the JMatPro data directory (containing material data, input and output data, etc.) More... | |
virtual string | JMatCompositionFilename [get, set] |
Relative path, with respect to JMatPro data directory, of the file containing material composition (input for JMatPro calculation). More... | |
virtual string | JMatCompositionFilePath [get, set] |
Path of the file containing material composition (input for JMatPro calculation). More... | |
virtual string | JMatResultsFilename [get, set] |
Relative path, with respect to JMatPro data directory, of the file containing material results of JMatPro calculation. More... | |
virtual string | JMatResultsFilePath [get, set] |
Path of the file containing results of JMatPro calculation. More... | |
virtual string | JMatCompletionDetectionFilename [get, set] |
Relative path, with respect to JMatPro data directory, of the file used to detect whether calculation is still going on. More... | |
virtual string | JMatCompletionDetectionFilePath [get, set] |
Path of the file used to detect whether calculation is still going on. More... | |
virtual double | JMatCompletionDetectionSleepTimeSeconds [get, set] |
Sleeping time used in detectiong whether JMatPro calculation is still going on. More... | |
virtual int | JMatCompletionDetectionSize [get, set] |
Minimal size of calculation detection file above which calculation is considered finished. More... | |
virtual double | JMatBeforeSaveSleepTimeSeconds [get, set] |
Waiting time (in seconds) after last increase in file size used before assuming that calculation is finished, to eventually prevent too early detection that calculation was finished. More... | |
bool | CheckWorkingDirectoryExistence [get, set] |
Whether existence of working directory is checked when directory is created. Default is true. More... | |
string | WorkingDirectory [get, set] |
Working directory where configuration files and other files are located. More... | |
virtual string | DataDefinitionSupersetFilename [get, set] |
Name of the file containing definition data for the superset of all input parameters and output values. More... | |
virtual string | DataDefinitionSupersetFilePath [get, set] |
Path to the file containing definition data for the superset of all input parameters and output values. More... | |
virtual string | DataDefinitionJMatFilename [get, set] |
Name of the file containing data definition for all JMatPro input parameters (i.e. material composition expressed as mass fractions for individual parameters). More... | |
virtual string | DataDefinitionJMatFilePath [get, set] |
Path to the file containing data definition for all JMatPro input parameters (i.e. material composition expressed as mass fractions for individual parameters). More... | |
virtual string | DataDefinitionProcessFilename [get, set] |
Name of the file containing data definition for all process input and output parameters. More... | |
virtual string | DataDefinitionProcessFilePath [get, set] |
Path to the file containing data definition for all process input and output parameters. More... | |
virtual string | DataDefinitionJointFilename [get, set] |
Name of the file containing definition data for the superset of all input parameters and output values. More... | |
virtual string | DataDefinitionJointFilePath [get, set] |
Path to the file containing definition data for the Joint of all input parameters and output values. More... | |
virtual string | DataDefinitionJMatFilenameNoNitrogen [get, set] |
Name of the file containing data definition for all JMatPro input parameters (i.e. material composition expressed as mass fractions for individual parameters). More... | |
virtual string | DataDefinitionJMatFilePathNoNitrogen [get, set] |
Path to the file containing data definition for all JMatPro input parameters (i.e. material composition expressed as mass fractions for individual parameters). More... | |
virtual string | DataDefinitionJointFilenameNoNitrogen [get, set] |
Name of the file containing definition data for the superset of all input parameters and output values. More... | |
virtual string | DataDefinitionJointFilePathNoNitrogen [get, set] |
Path to the file containing definition data for the Joint of all input parameters and output values. More... | |
InputOutputDataDefiniton | DataDefinitionSuperset [get, protected set] |
Data definitions for the superset of all input parameters and output values. More... | |
InputOutputDataDefiniton | DataDefinitionJMat [get, protected set] |
Data definitions for all JMatPro input parameters (i.e. material composition expressed as mass fractions for individual parameters). More... | |
virtual IBoundingBox | MaterialParameterBounds [get, protected set] |
Bounds on neural input parameters. More... | |
InputOutputDataDefiniton | DataDefinitionProcess [get, protected set] |
Data definitions for the Process parameters and output values. More... | |
InputOutputDataDefiniton | DataDefinitionJoint [get, protected set] |
Data definitions for all input parameters and output values, including material and process parameters. More... | |
int | NumMaterialParameters [get] |
Gets the number of material parameters. More... | |
int | NumProcessParameters [get] |
Gets the number of process parameters. More... | |
int | NumParameters [get] |
Gets the total number of all parameters. More... | |
int | NumOutputValues [get] |
Gets the number of output values for the process. More... | |
virtual string | WorkingMaterialParametersPath [get, protected set] |
File path of the file in working directory where material parameters for calculation are stored. If set to null then path is set to null and will be recalculated when getter is called. More... | |
virtual string | MaterialParametersDefFilename [get, set] |
Name of the file in material data directory where material parameters are stored. More... | |
virtual string | WorkingMaterialParametersDefPath [get, protected set] |
File path of the file in working directory where material parameters for calculation are stored as default values in a data definition file. If set to null then path is set to null and will be recalculated when getter is called. More... | |
string | RootDataDirectoryName [get, set] |
Name of the root data directory. More... | |
virtual string | RootDataDirectoryPath [get, set] |
Path to the root directory that contains directories with calculated material data for different parameters defining chemical compositions. More... | |
virtual string | LogFileName [get, set] |
Name of the log file where operations are logged. More... | |
virtual string | LogFilePath [get, set] |
Path to the log file where basic operations are logged. More... | |
TextWriter | LogFileWriter [get, set] |
Textwriter for log file. More... | |
string | MaterialDirectoryName [get, protected set] |
Name of the material directory. More... | |
virtual string | MaterialDataDirectoryPath [get, protected set] |
Data directory for the current material parameters. More... | |
virtual string | MaterialParametersFilename [get, set] |
Name of the file in material data directory where material parameters are stored. More... | |
virtual string | MaterialParametersPath [get, protected set] |
File path of the file where material parameters are stored. If set to null then path is set to null and will be recalculated when getter is called. More... | |
virtual string | MaterialCompositionFilename [get, set] |
Name of the file in material data directory where material composition is stored. More... | |
virtual string | MaterialCompositionPath [get, protected set] |
File path of the file (normally in the material data directory) where material composition is stored. If set to null then path is set to null and will be recalculated when getter is called. More... | |
virtual string | MaterialResultsFilename [get, set] |
Name of the file in material data directory where material results are stored. More... | |
virtual string | MaterialResultsPath [get, protected set] |
File path of the file (normally in the material data directory) where material reslts are stored. If set to null then path is set to null and will be recalculated when getter is called. More... | |
virtual int | JMatResultsMinimalSize [get, protected set] |
Minimal size of JMatPro results file in order to consider results valid. More... | |
virtual int | JMatResultsGoodSize [get, protected set] |
Size of the materials result file that is considered a good size - the file is expected to be at least of this size if calculation was performed without errors. More... | |
virtual string | MsgMaterialCalculationBusyPath [get, protected set] |
File path of the material calculation in progress flag file. Setter takes only pure file name, without path information. If set to null then path is set to null and will be recalculated when getter is called. More... | |
virtual string | MsgMaterialCalculationFinishedPath [get, protected set] |
File path of the "material calculation finished" flag file. Setter takes only pure file name, without path information. If set to null then path is set to null and will be recalculated when getter is called. More... | |
virtual string | MsgMaterialCalculationTimedoutPath [get, protected set] |
File path of the "material calculation timeout occurred" flag file. Setter takes only pure file name, without path information. If set to null then path is set to null and will be recalculated when getter is called. More... | |
virtual string | MsgMaterialResultsWrongPath [get, protected set] |
File path of the "material results wrong" flag file. Setter takes only pure file name, without path information. If set to null then path is set to null and will be recalculated when getter is called. More... | |
virtual string | StorageMaterialCalculatedDirectoryname [get, set] |
Name of the storage directory for material directories for which material properties have been successfully calculated. More... | |
virtual string | StorageMaterialCalculatedDirectoryPath [get, protected set] |
Path to the storage directory for material directories for which material properties have been successfully calculated. More... | |
virtual string | StorageBusyFlagSetDirectoryname [get, set] |
Name of the storage directory for material directories for which busy flag remained set. More... | |
virtual string | StorageBusyFlagSetDirectoryPath [get, protected set] |
Path to the storage directory for material directories for which busy flag remained set. More... | |
virtual string | StorageTimedoutDirectoryname [get, set] |
Name of the storage directory for material directories for which material properties calculation has timed out. More... | |
virtual string | StorageTimedoutDirectoryPath [get, protected set] |
Path to the storage directory for material directories for which material properties calculation has timed out. More... | |
virtual string | StorageMaterialCalculationFailedDirectoryname [get, set] |
Path to the storage directory for material directories for which calculation of material properties has failed. More... | |
virtual string | StorageMaterialCalculationFailedDirectoryPath [get, protected set] |
Path to the storage directory for material directories for which calculation of material properties has failed. More... | |
virtual string | StorageMaterialMaterialDataCorruptedDirectoryname [get, set] |
Path to the storage directory for material directories for which calculation of material properties has failed. More... | |
virtual string | StorageMaterialMaterialDataCorruptedDirectoryPath [get, protected set] |
Path to the storage directory for material directories for which calculation of material properties has failed. More... | |
virtual string | UserInteractionCommand [get, set] |
Command for playback of recorded user interaction (i.e. emulation of keyboard and mouse events) for various actions. More... | |
virtual string | UserInteractionRecordDir [get, set] |
Dierctory containing recorded user interactions for different actions. More... | |
virtual string | UserInteractionRecordExtension [get, set] |
Extension of files with recorded user interaction. More... | |
virtual string | UserInteractionRecordNameStartJMat [get, set] |
Name of the user interaction record for starting JMatPro software via system GUI. More... | |
virtual string | UserInteractionRecordPathStartJMat [get, set] |
Name of the user interaction record for closing JMatPro software via system GUI. More... | |
virtual string | UserInteractionRecordNameCloseJMat [get, set] |
Name of the user interaction record for closing JMatPro software normally via GUI. More... | |
virtual string | UserInteractionRecordPathCloseJMat [get, set] |
Name of the user interaction record for closing JMatPro software normally via GUI. More... | |
virtual string | UserInteractionRecordNameRepairJMat [get, set] |
Name of the file containing records of user interaction necessary repair JMatPro in case it is damaged or another unwanted copy is running. More... | |
virtual string | UserInteractionRecordPathRepairJMat [get, set] |
Path of the file containing records of user interaction necessary repair JMatPro in case it is damaged or another unwanted copy is running. More... | |
virtual string | UserInteractionRecordNameStartCalculation [get, set] |
Name of the file containing recors of user interaction necessary to start JMatPro. More... | |
virtual string | UserInteractionRecordPathStartCalculation [get, set] |
Name of the file containing recors of user interaction necessary to start JMatPro. More... | |
virtual string | UserInteractionRecordNameSaveResults [get, set] |
Name of the file containing records of user interaction necessary to save results of JMatPro calculation. More... | |
virtual string | UserInteractionRecordPathSaveResults [get, set] |
Path to the file containing recors of user interaction necessary to save results of JMatPro calculation. More... | |
virtual string | UserInteractionRecordNameChangeTemperatureUnit [get, set] |
Name of the file containing records of user interaction necessary to change temperature uits in JMatPro that is already launched. More... | |
virtual string | UserInteractionRecordPathChangeTemperatureUnit [get, set] |
Path to the file containing recors of user interaction necessary to change temperature uits in JMatPro that is already launched. More... | |
virtual string | UserInteractionRecordNameChangeFractionUnit [get, set] |
Name of the file containing records of user interaction necessary to change fraction uits in JMatPro that is already launched. More... | |
virtual string | UserInteractionRecordPathChangeFractionUnit [get, set] |
Path to the file containing recors of user interaction necessary to change fraction uits in JMatPro that is already launched. More... | |
double | JMatTimeoutWaitCalculationSeconds [get, protected set] |
Timeout for waiting completion of calculation, in seconds. More... | |
virtual double | JMatTimeoutWaitResultsSavedSeconds [get, protected set] |
Timeout for waiting until results are completely saved, in seconds. More... | |
virtual int | JMatResultsSavedDetectionSize [get, set] |
Minimal size of result file file, above which saving results can be considered finished. More... | |
virtual double | JMatBeforeResultsSavedSleepTimeSeconds [get, set] |
Waiting time (in seconds) after last increase in file size used before assuming that saving result is finished, to eventually prevent too early detection that calculation was finished. More... | |
string | ProcessNameSubstringJava [get, protected set] |
Substring of java virtual machine process name, used to kill the process or check whether it is running. More... | |
string | ProcessNameSubstringJMatMain [get, protected set] |
Substring of JMatPro main process name, used to kill the process or check whether it is running. More... | |
string | ProcessNameSubstringJMatSolver [get, protected set] |
Substring of JMatPro solver process name, used to kill the process or check whether it is running. More... | |
CalculationStatus | MaterialCalculationStatus [get, protected set] |
Status of the last material calculation. More... | |
StopWatch1 | MaterialCalculationTimer [get] |
Timer for measuring total calculation time in methods that perform multiple material calculations. More... | |
double | LongestMaterialCalculationTime [get, protected set] |
Longest material calculation time by now, reset at the beginning of every top level calculation function. More... | |
double | MaterialCalculationTime [get, set] |
int | NumMaterialCalculationsIntended [get, protected set] |
Total number of intended material calculations attempted by now.k More... | |
int | NumMaterialCalculationsPerformed [get, protected set] |
Number of (completed) material calculations attempted by now. More... | |
int | NumMaterialCalculationsSuccessful [get, protected set] |
Number of material calculations by now that have successfully completed. More... | |
int | NumMaterialCalculationsTimedout [get, protected set] |
Number of material calculations by now where timeout occurred. More... | |
int | NumMaterialCalculationsUnsuccessful [get, protected set] |
Number of material calculations by now where calculation has failed. More... | |
int | NumconsecutiveMaterialCalculationsUnsuccessful [get, set] |
Number fo consecutive events where material calculation was not successfule. More... | |
int | NumconsecutiveMaterialCalculationTimedout [get, set] |
Number fo consecutive events where timeout occurred during material calculation. More... | |
int | NumconsecutiveMaterialCalculationsSuccessful [get, set] |
Number fo consecutive events where material calculation was not successful. More... | |
IVector | MaterialParameters [get, set] |
Parameters that define chemical composition of steel for which material properties are calculated. More... | |
virtual IRandomGenerator | Random [get, protected set] |
Random generator used by the current object. More... | |
List< JMatProElemetData > | Elements [get, set] |
List of element data to be used in JMatPro. More... | |
string[] | CompositionElementSymbols [get, set] |
Array of element symbols sorted as required gor the JMatPro input file. More... | |
virtual string | SymbolIron [get] |
virtual string | ProjectName [get, protected set] |
Name of the current project, used in some simulation and other interfaces. More... | |
virtual string | SimulationName [get, protected set] |
Name of the current simulation, used in some simulation and other interfaces. More... | |
string | RootSimulationDirectoryName [get, set] |
Name of the root simulation directory. More... | |
virtual string | RootSimulationDirectoryPath [get, set] |
Path to the root simulator directory that contains directories with simulators' data (there may be more than one such directory in the case of parallel simulators. More... | |
string | SimulatorBaseTemplateDirectoryname [get, set] |
Name of the simulator template directory. This is the root simulator directory that contains all simuator related data and must be copied in order to produce a new active simulator. More... | |
virtual string | SimulatorBaseTemplateDirectoryPath [get, protected set] |
Path to the simulator template directory. This is the root simulator directory that contains all simuator related data and must be copied in order to produce a new active simulator. More... | |
string | SimulatorCastingRobertDirectoryname [get, set] |
Name of the main directory of the Robert Vertnik's casting simulator. More... | |
virtual string | SimCastingRobertProjectName [get, set] |
Project name for interfacing Robert Vertnik's casting simulator. More... | |
virtual string | SimCastingRobertSimulationName [get, set] |
Simulation name for interfacing Robert Vertnik's casting simulator. More... | |
int | WhichSimulator [get, protected set] |
Specifies which simulator is in use by the current file manager (this is 0 if simulators are not run in parallel and there is a single simulator). More... | |
virtual string | SimulatorBaseDirectoryPath [get, protected set] |
Path to the base directory of the current simulator in use. This directory is directly contained in the More... | |
virtual string | SimCastingRobertRootDirectoryPath [get, protected set] |
Path of the main directory of the Robert Vertnik's casting simulator that is currently in use. More... | |
virtual SimCastingRobertFileManager | SimCastingRobertFM [get, set] |
File manager for interfacing Robert Vertnik's casting simulator. Lazy evaluation: The object is created when first accessed, if possible. For this, ProjectName, SimulationName and SimCastingRobertRootDirectoryPath must be defined. More... | |
![]() | |
object | Lock [get] |
Private Attributes | |
object | _mainLock = new object() |
object | _internalLock = new object() |
int | _outputLevel = Util.OutputLevel |
IRandomGenerator | _randGen |
File manager for interfacing the JMatPro software.
JMatPro is a software for calculation of material parameters.
Since JMatPro is interactive software, user interaction must be emulated in order to transform it to noninteractive mode. External software is used for this.
Parts of this interface have been created for quick implementatio of needed functionality, sometimes on account of modularity and etensibility. Interface depends on many settings (different directory and file paths), therefore usual way of initialization is by providing a settings file of type SimJmatProSettingsDto that contains these settings.
$A Igor Sep12 Nov12;
Simulation part of the class definition:
This part of the JMatPro file manager class contains definitions of utilites related to simulators.
Simulation part of the class definition - SUBCLASSES:
This part of the JMatPro file manager class contains definitions of classes for managing simulators.
|
inline |
Construct JMatPro interface's file manager, with specified working directory.
If settings file exists at the default location in this directory (i.e. SimJMatProConst.SettingsFileName) then settings are loaded from this file.
workingDirectoryPath | Path of the working directory. |
References IG.Lib.SimJMatProConst.SettingsFileName.
|
inline |
Construct JMatPro interface's file manager, with specified working directory and path to the file where settings are stored.
workingDirectoryPath | Path of the working directory. |
settingsFilePath | Path to the file containing settings. |
It can be specified as absolute path or relative to the current directory or relative to the working directory. If null or empty string then default path is taken.
References IG.Lib.SimJMatProConst.SettingsFileName, and IG.Lib.UtilSystem.StandardizeDirectoryPath().
|
inline |
Construct JMatPro interface's file manager, with specified working directory and settings object.
workingDirectoryPath | Path of the working directory. |
settings | Object containing settings for hte JMatpro file manager. |
References IG.Lib.SerializationDtoBase< Type, BaseType >.CopyTo().
|
inline |
Check whether the file system locking mutex (property LockFileMutex) has been abandoned, and returns true if it has been (otherwise, false is returned).
After the call, mutex is no longer in abandoned state (WaitOne() will not throw an exception) if it has been before the call.
Call does not block.
References IG.Lib.Util.MutexCheckAbandoned().
|
inline |
Temporary utility for reporting errors in the development stage.
errorMsg | Error message. |
|
inline |
Temporary utility for reporting errors in the development stage.
errorMsg | Error message. |
|
inlinevirtual |
Generates a random vector of material parameters whose elements (components) lie within the lower and upper bounds on parameters, and stores it to the specified vector.
Random generator of the current JMatPro interface objects is used.
result | Vector object where the generated random vector is stored; allocated if necessary. |
|
inlinevirtual |
Generates a random vector of material parameters whose elements (components) lie within the lower and upper bounds on parameters, and stores it to the specified vector.
rand | Random number generator used to generate the elements. |
result | Vector object where the generated random vector is stored; allocated if necessary. |
|
inlinevirtual |
Combines the specified vectors of materaial and process parameters into a joint vector of process parameters and stored it into the specified variable.
Vectors of material and process parameters must be of correct dimensons, otherwise exception is thrown.
materialParameters | Vector of material parameters. |
processParameters | Vector of process parameters. |
jointParameters | Vector variable where combined vector of problem parameters is stored. |
References IG.Num.VectorBase.Resize().
|
inlinevirtual |
Extracts the vector of material parameters from the specified joint vector of problem parameters, and stores it to the specified variable.
jointParameters | Complete vector of problem parameters. |
materialParameters | Vector variable where the extracted material parameters are stored. |
References IG.Num.VectorBase.Resize().
|
inlinevirtual |
Extracts the vector of process parameters from the specified joint vector of problem parameters, and stores it to the specified variable.
jointParameters | Complete vector of problem parameters. |
processParameters | Vector variable where the extracted process parameters are stored. |
References IG.Num.VectorBase.Resize().
|
inlinevirtual |
Extracts the vectors of material and process parameters from the specified joint vector of problem parameters, and stores them to the specified variable.
|
inlinevirtual |
Returns name of the material directory for the specified material parameters.
parameters | Material parameters to which the returned directory name corresponds. |
References IG.Lib.SimJMatProConst.DataDirectoryPrefix, and IG.Num.VectorBase.GetHashFunctionString().
|
inlinevirtual |
Creates the data directory for the current material (specified by material parameters).
|
inline |
Moves the specified material directory to the specified storage directory.
Directory is not moved if a busy flag is set. In this case, a report is written to the log file.
Paths must be valid paths, not just short approximate paths. You can use
Operation is performed in a colision safe way by using a mutex.
materialDirectoryPath | Path to the material directory that is moved. It must be a valid path to the directory, not only approximate path. Directory existence is checked prior to operation. |
storageDirectoryPath | Path to the storage directory into which directory is moved. If the dtorage directory does not yet exist then it is created. |
|
inline |
Moves to the appropeiate storage directory those material directories for which material properties have been successfully calculated.
|
inline |
Moves to the appropeiate storage directory those material directories for which busy flag remained set.
|
inline |
Moves to the appropeiate storage directory those material directories for which material properties calculation has timed out.
|
inline |
Moves to the appropeiate storage directory those material directories for which material properties calculation failed (regardless of reason).
|
inline |
Moves to the appropeiate storage directory those material directories for which material data is corrupted (e.g. material parameters are not written properly).
|
inline |
Moves all material directries to the appropriate storage directories, dependent on the state of calculation in any particular directory.
moveBusy | Whether directories where busy flag is set are also moved. |
moveMaterialCalculated | Whether directories where material properties were successfully calculated are also moved. |
|
inline |
Flag indicating whether material calculation for the current material parameters is in progress.
|
inlinevirtual |
Clears the flag indicating that material calculation is in progress.
|
inlinevirtual |
Sets the flag indicating that material calculation directory is used, and returns true if the flag was successfully set.
If the flag is currently set then this method blocks until it is released.
References IG.Lib.Util.SleepSeconds().
|
inline |
Flag indicating whether material calculation for the current material parameters is finished.
|
inlinevirtual |
Clears the flag indicating that material calculation is finished.
|
inlinevirtual |
Sets the flag indicating that material calculation is finished.
|
inline |
Flag indicating whether material calculation for the current material parameters has timed out.
|
inlinevirtual |
Clears the flag indicating that material calculation has timed out.
|
inlinevirtual |
Sets the flag indicating that material calculation has timed out.
|
inline |
Flag indicating whether material results are incorrect.
|
inlinevirtual |
Clears the flag indicating that material result file is incorrect.
|
inlinevirtual |
Sets the flag indicating that material result file is incorrect.
errorsString | String containing detected errors in the result file. |
|
inlinevirtual |
Safely launches the JMatpPro software.
Tries to ensure that software has actually been launched.
|
inlinevirtual |
Just starts the JMatPro software.
References IG.Lib.UtilSystem.ExecuteSystemCommand().
|
inlinevirtual |
Repairs JMatPro, e.g. if it has been stopped abruptly or if another version is already running somewhere such that we could not start it.
After calling this method, JMatPro should be able to start normally.
References IG.Lib.UtilSystem.ExecuteSystemCommand().
|
inlinevirtual |
Closes JMatPro normally, by simulated user interaction.
References IG.Lib.UtilSystem.ExecuteSystemCommand().
|
inlinevirtual |
Starts JMatPro calculation.
References IG.Lib.UtilSystem.ExecuteSystemCommand().
|
inlinevirtual |
Saves results of JMatPro calculation.
References IG.Lib.UtilSystem.ExecuteSystemCommand().
|
inlinevirtual |
Changes (toggles once) temperature unit in an open window of JMatPro (software must be running and its main window on the top of window stack) by running the appropriate script.
References IG.Lib.UtilSystem.ExecuteSystemCommand().
|
inlinevirtual |
Changes (toggles once) fraction unit in an open window of JMatPro (software must be running and its main window on the top of window stack) by running the appropriate script.
References IG.Lib.UtilSystem.ExecuteSystemCommand().
|
inlinevirtual |
Waits until JMatPro calculation finishes.
Returns true if it could be detected properly that calculation finished, false otherwise.
Timeout is defined by the JMatTimeoutWaitCalculationSeconds property.
References IG.Lib.Util.SleepSeconds(), IG.Lib.StopWatch1.Start(), IG.Lib.StopWatch1.Stop(), IG.Lib.StopWatch1.Time, and IG.Lib.StopWatch1.TotalTime.
|
inlinevirtual |
Waits until JMatPro results are saved.
Returns true if it could be detected properly that results were saved, false otherwise (i.e. timeout occurred).
Timeout is defined by the JMatTimeoutWaitResultsSavedSeconds property.
References IG.Lib.Util.SleepSeconds(), IG.Lib.StopWatch1.Start(), IG.Lib.StopWatch1.Stop(), IG.Lib.StopWatch1.Time, and IG.Lib.StopWatch1.TotalTime.
|
inline |
Prepares data definitions from the superset data definition file.
Definitions for material parameters and for joint process and material parameters are prepared and saved to the corresponding files.
References IG.Num.InputOutputDataDefiniton.AddInputElement(), IG.Num.InputOutputDataDefiniton.AddOutputElement(), IG.Num.InputElementDefinition.GetCopy(), IG.Num.OutputElementDefinition.GetCopy(), IG.Num.InputOutputDataDefiniton.GetInputElement(), IG.Num.InputOutputDataDefiniton.GetInputIndex(), IG.Num.InputOutputDataDefiniton.GetOutputElement(), IG.Num.InputOutputDataDefiniton.InputLength, IG.Lib.SimJMatProConst.NitrogenSymbol, IG.Num.InputOutputDataDefiniton.OutputLength, and IG.Num.InputOutputDataDefiniton.SaveJson().
|
inline |
Calculates default material parameters as the middle point of allowed intervals, and saves the parameters.
Data is saved in two ways: simply as vector (path defined by WorkingMaterialParametersPath, default file name SimJMatProConst.MaterialParametersFilename) and as default values in data definition object (path defined by WorkingMaterialParametersDefPath, default file name SimJMatProConst.MaterialParametersDefFilename)
References IG.Num.InputOutputDataDefiniton.AddInputElement(), IG.Num.InputElementDefinition.DefaultValue, IG.Num.InputElementDefinition.DefaultValueDefined, IG.Num.InputOutputElementDefinition.MaximalValue, IG.Num.InputOutputElementDefinition.MinimalValue, IG.Num.InputOutputElementDefinition.Name, IG.Num.InputOutputDataDefiniton.SaveJson(), and IG.Num.VectorBase.SaveJson().
|
inline |
Saves the current settings to a file used as template for settings file for JMatPro interface' file manager.
Settings are stored to file in the working directory named SimJMatProConst.SettingsTemplateFilename
References IG.Lib.SimJMatProConst.SettingsTemplateFilename.
|
inline |
Returns a valid (existent) material data directory path that is obtaines form the specified path, or throws exception if such a directory could not be obtained.
The specified material directory path can be specified as absolute path or relative to material data root (i.e. just directory name) or relative to working directory.
specifiedMaterialDirectoryPath | The specified APPROXIMATE path of the material data directory. It can be specified as absolute path or relative to material data root (i.e. just directory name) or relative to working directory. |
ArgumentException | Thrown when the specified approximate path is a null or empty string or when it dese not represent an existing material data directory (not even relative to the working directory or material data root). |
Referenced by IG.Num.SimJMatProFileManagerBase.MaterialDirectoryInfoBase.MaterialDirectoryInfoBase().
|
inlinevirtual |
Returns a valid (existent) material data directory path that is obtaines form the specified path, or null if such a directory could not be obtained (or, if throwExceptions is true, exception is thrown in this case).
The specified material directory path can be specified as absolute path or relative to material data root (i.e. just directory name) or relative to working directory.
specifiedMaterialDirectoryPath | The specified APPROXIMATE path of the material data directory. It can be specified as absolute path or relative to material data root (i.e. just directory name) or relative to working directory. |
throwExceptions | Flag indicating whether exception is thrown if a valid directory coud not be obtained from the specified directory path or name. If false then null is returned when the valid (i.e. existent) directory path can not be extracted from the specified path. |
ArgumentException | Thrown when the specified approximate path is a null or empty string or when it dese not represent an existing material data directory (not even relative to the working directory or material data root), but only when the throwExceptions parameter is true. |
|
inlineprotected |
Returns a flag indicating whether teh specified directory is considered a material directory or not. This method is usually used to extract all material directoried from the root data directory (which may for some reason contain other directories, too).
dir | Directory info for the directory that is checked. If null then false is returned (no exception thrown). |
References IG.Lib.SimJMatProConst.DataDirectoryPrefix.
|
inlineprotected |
For the specified material data directory, returns a flag that indicates whether material properties have been calculated for the corresponding material or not. This is obtained by checking the corresponding message file as well as existence and size of the material results file.
Performed in colision safe way by using a mutex.
materialDirectoryPath | Path to the material data directory that is checked. It must be a valid path to existent directory. |
|
inlineprotected |
For the specified material data directory, returns a flag that indicates whether material calculation has not finished because of timeout. This is obtained by checking the corresponding message file.
Performed in colision safe way by using a mutex.
materialDirectoryPath | Path to the material data directory that is checked. It must be a valid path to existent directory. |
|
inlineprotected |
For the specified material data directory, returns a flag that indicates whether material result file contents are incorrect. This is obtained by checking the corresponding message file.
Performed in colision safe way by using a mutex.
materialDirectoryPath | Path to the material data directory that is checked. It must be a valid path to existent directory. |
|
inlinevirtual |
Clears the flag indicating that material result file is incorrect.
materialDirectoryPath | Path to the material data directory that is checked. It must be a valid path to existent directory. |
|
inlinevirtual |
Sets the flag indicating that material result file is incorrect.
dataErrorDescriptions | String containing detected errors in the result file. |
materialDirectoryPath | Path to the material data directory that is checked. It must be a valid path to existent directory. |
|
inlineprotected |
For the specified material data directory, returns a flag that indicates whether the busy flag is set.
Performed in colision safe way by using a mutex.
materialDirectoryPath | Path to the material data directory that is checked. It must be a valid path to existent directory. |
|
inline |
Clears the busy flag from the specified material directory, and returns a flag indicating whether clearing of a flag has actually occurred.
materialDirectoryPath | Path to the directory in which busy flag is cleared. |
It can be specified as absolute path or relative to mat. data root (i.e. just dir. name) or relative to working directory.
|
inlinevirtual |
Clears the flag indicating that material calculation is successfully finished, from the specified directory.
materialDirectoryPath | Path to the material data directory where flag is cleared. It must be a valid path to existent directory. |
|
inline |
Gets (reads) material parameters from the specified material data directory.
materialDirectoryPath | Path to the material data directory where parameters are read from. It must be a valid path of an existent material data directory. |
parameters | Vector where the obtained material parameters are stored. |
References IG.Num.VectorBase.LoadJson().
|
inline |
Returns a flag indicated whether the specified material data directory is corrupted in the sense that some material data in it is corrupted (i.e. the vector of material parameters is not properly written).
materialDirectoryPath | Path to the material data directory whose integrity is checked. It must be a valid path of an existent material data directory. |
|
inline |
Obtains a list of paths of all material directories, and stores them on the specified list.
directories | List where directory infos are stored. Reallocated and cleared if necessary. |
|
inline |
Obtains a list of paths of all material directories where material properties calculation has failed. These are characterized as material directories where the busy flag is not set but material data is also not available (which means that material results file does not exist or is too small or the message file for the material calculation finished message does not exist).
directories | List where directory infos are stored. Reallocated and cleared if necessary. |
|
inline |
Obtains a list of paths of all material directories where the busy flag is set (which may be a consequence of some failure).
directories | List where directory infos are stored. Reallocated and cleared if necessary. |
|
inline |
Obtains a list of all material directories where material calculation has timed out.
directories | List where directory infos are stored. Reallocated and cleared if necessary. |
|
inline |
Obtains a list of paths of all material directories where material properties were successfully calculated. These are characterized as material directories where the busy flag is not set but material data is also available (which means that material results file exists and is large enough and the message file for the material calculation finished message exists).
directories | List where directory infos are stored. Reallocated and cleared if necessary. |
|
inline |
Obtains a list of paths of all material directories where material data is corrupted. The method IsMaterialDirectoryCorrupted is used to test material directories for corruption.
directories | List where directory infos are stored. Reallocated and cleared if necessary. |
|
inline |
Prints statistics of material properties calculation.
printIndividualDirectories | Whether individual directories are printed (if false then only number of directories in each group is printed). |
includeCorrupted | If true then a list of corrupted directories is also printed. Detection of corrupted directories takes considerably longer than detection of other groups. |
|
inline |
Prints (to console and log file) information about material directories where material properties were successfully calculated.
|
inline |
Releases the mutex in the case it has been abandoned, and returns a flag indicating whether the mutex has actually been abandoned. Has no effect if mutex is not abandoned.
|
inline |
Clears the busy flag in all directories where it is still set (possibly because some procedure has hanged).
References IG.Lib.UtilConsole.Read().
|
inline |
Retries calculation of
materialDirectoryPath | Path to the directory in which busy flag is cleared. |
Can be specified as absolute path or relative to mat. data root (i.e. just dir. name) or relative to working directory.
|
inline |
Retries calculation of
materialDirectoryPath | Path to the directory in which busy flag is cleared. |
Can be specified as absolute path or relative to mat. data root (i.e. just dir. name) or relative to working directory.
whichCalculation | Specifies which calculation in row is this (used just for output). |
numCalculations | Specifies how many are all calculations that are performed in a row (used just for output). |
|
inline |
Retries calculation of material properties in the directories where calculation obviously failed.
|
inline |
Kills the JMatPro process.
References IG.Lib.UtilSystem.KillAllProcesses().
|
inline |
Returns a flag indicating whether the JMatPro application is currently running.
References IG.Lib.UtilSystem.IsProcessRunning().
|
inline |
Whether material data is prepared.
|
inline |
Calculates material properties by JMatPro for a set of random parameters.
numParameterSets | Number of parameters in the set. |
|
inline |
Calculates material properties at parameters that are read from a file.
parametersPath | Path to the file containing material parameters. |
Parameters must be written in a file as vector in JSON format.
Path can be relative to the current directory or working directory, or it can be absolute path. If null or empty string then default path is taken.
References IG.Num.VectorBase.LoadJson(), and IG.Lib.UtilSystem.StandardizeDirectoryPath().
|
inline |
Calculates material properties at parameters that are read from a data definition file as default values.
parametersPath | Path to the file containing material parameters in form of data definition (default values are taken). |
Parameters must be written in a file as definition data in JSON format.
Path can be relative to the current directory or working directory, or it can be absolute path. If null or empty string then default path is taken.
References IG.Num.InputOutputDataDefiniton.LoadJson(), and IG.Lib.UtilSystem.StandardizeDirectoryPath().
|
inline |
Calculates the material properties at the specified vector of material parameters, and stores results to the appropriate directory.
Vector of current parameters is permanently set to parameters .
parameters | Vector containing material parameters (related to chemical composition) for which material properties must be calculated. |
|
inline |
Calculates the material properties at the current vector of material parameters, and stores results to the appropriate directory.
References IG.Num.SimJMatProFileManagerBase.JMatResultInfo.DataErrorDescriptions, IG.Num.SimJMatProFileManagerBase.JMatResultInfo.IsDataCorrect, IG.Num.SimJMatProFileManagerBase.JMatResultInfo.IsFractionUnitCorrect, IG.Num.SimJMatProFileManagerBase.JMatResultInfo.IsTemperatureUnitCorrect, IG.Num.SimJMatProFileManagerBase.JMatResultInfo.IsTemperatureUnitKelvin, IG.Num.VectorBase.SaveJson(), IG.Lib.Util.SleepSeconds(), IG.Lib.StopWatch1.Start(), IG.Lib.StopWatch1.Stop(), IG.Lib.StopWatch1.Time, IG.Num.SimJMatProFileManagerBase.JMatResultInfo.ToString(), and IG.Lib.StopWatch1.TotalTime.
|
inline |
Prints calculation statistics after another material calculation is finished.
introductionString | String that introduces the calculation for which statistics is printed, without any spaces or punctation marks at the end (these are added by the method). |
References IG.Lib.StopWatch1.GetTimeSpan().
|
inline |
Resets material calculation statistics counters.
|
inline |
Updates material calculaiton statistics counters at the beginning of a new material calculation.
|
inline |
Updates material calculation statistics counters after completion of a single calculation.
status | Status with which calculation has completed. |
|
inlinevirtual |
Returns vector containing default values for material parameters.
parameters | Vector of material parameters. |
Material parameters are mass fractions of individual elements involved in composition (excluding iron, whose fraction is not a parameter but is calculated form other fractions).
References IG.Num.InputOutputElementDefinition.BoundsDefined, IG.Num.InputElementDefinition.DefaultValue, IG.Num.InputElementDefinition.DefaultValueDefined, IG.Num.InputOutputDataDefiniton.GetInputElement(), IG.Num.InputOutputDataDefiniton.InputLength, IG.Num.InputOutputElementDefinition.MaximalValue, IG.Num.InputOutputElementDefinition.MinimalValue, IG.Num.InputOutputElementDefinition.Name, and IG.Num.VectorBase.Resize().
|
inlinevirtual |
Calculates and returns input data for JMatPro from the vector of material parameters.
materialParameters | Vector of material parameters. |
References IG.Lib.JMatProElemetData.AtomicWeight, IG.Lib.JMatProElemetData.Getcopy(), IG.Lib.JMatProElemetData.MassFraction, IG.Lib.JMatProElemetData.MoleFraction, IG.Lib.JMatProElemetData.Name, and IG.Num.InputOutputElementDefinition.Name.
|
inlinevirtual |
Prepares input file for JMatPro (composition of steel) according to the specified material parameters.
materialParameters | Vector of material parameter values. |
inputFilePath | Path of the file where composition is written. |
References IG.Lib.JMatProElemetData.MassFraction, IG.Lib.JMatProElemetData.MoleFraction, and IG.Lib.JMatProElemetData.Symbol.
|
inline |
|
inlineprotected |
Returns a string obtained by replacing the '\' path separator by the more standard '/' in the specified path string, or null if the string is null.
path | String in which path separators are to be replaces, can be null. |
|
inlinevirtual |
Copies settings from the current JMatPro file manager to the specified settings object.
FmType | Type of file manager that the method operates on. |
settings | Settings object on which current settings are stored. |
FmType | : | SimJMatProFileManagerBase |
References IG.Num.SimJMatProFileManagerBase.WorkingDirectory.
|
inlinevirtual |
Copies settings fom the specified settings object to the current JMatPro file manager.
FmType | Type of file manager on which method operates. |
settings | Settings object for which settigs for the current JMatPro file manager are copied. |
FmType | : | SimJMatProFileManagerBase |
References IG.Num.SimJMatProFileManagerBase.WorkingDirectory.
|
inline |
Saves (serializes) the settings of the current JMatPro interface' file manager to the specified JSON file.
If the file already exists, contents overwrite the file.
inputFilePath | Path to the file in which settings are saved. |
|
inline |
Saves (serializes) the settings of the current JMatPro interface' file manager to the specified JSON file.
If the file already exists, contents either overwrite the file or are appended at the end, dependent on the value of the append flag.
inputFilePath | Path to the file in which settings are saved. |
append | Specifies whether serialized data is appended at the end of the file in the case that the file already exists. |
References IG.Lib.SerializationDtoBase< Type, BaseType >.CopyFrom().
|
inline |
Restores (deserializes) the current JMatPro interface' file manager settings from the specified file in JSON format.
inputFilePath | File from which object is restored. |
|
inlinestatic |
Saves (serializes) the specified settings of the JMatPro interface' file manager to the specified JSON file.
If the file already exists, contents overwrite the file.
settings | JMatPro interface' settings that are saved to a file. |
inputFilePath | Path to the file into which settings are saved. |
|
inlinestatic |
Saves (serializes) the specified settings for JMatPro interface' file manager to the specified JSON file.
If the file already exists, contents either overwrite the file or are appended at the end, dependent on the value of the append flag.
settings | JMatPro interface' settings that are saved to a file. |
inputFilePath | Path to the file in which settings are saved. |
append | Specifies whether serialized data is appended at the end of the file in the case that the file already exists. |
|
inlinestatic |
Restores (deserializes) JMatPro interface' settings from the specified file in JSON format.
inputFilePath | File from which object is restored. |
settings | JMatPro interface' settings that are restored by deserialization. |
|
inlinestatic |
Finds data for the specified element on the specified list of element data, and returns the data (or null if the data is not be found).
elements | List of elements where data for the specific element is searched for. |
elementSymbol | Symbol of chemical element whose data is searched for. |
References IG.Lib.JMatProElemetData.Symbol.
|
inline |
Returns data about the specified chemical element.
elementSymbol | Symbol of the chemical element. |
ArgumentException | When element symbol is not specified or there is no data about chemical element with such symbol. |
References IG.Lib.JMatProElemetData.Getcopy(), and IG.Lib.JMatProElemetData.Symbol.
|
inline |
Returns atomic mass of the chemical elemen with the specified symbol.
elementSymbol | Symbol of the chemical element. |
|
inline |
Returns name of the chemical elemen with the specified symbol.
If element name is not defined for the specified element then its symbol is returned.
elementSymbol | Symbol of the chemical element. |
|
inlineprotected |
Adds the specified elements to the specified list.
ElType | Type of elements of the list. |
l | List on which elements will be added. |
elements | Elements to be added to the list (variable length). |
|
inline |
Returns number of elements that are included in JMatPro input files for steel.
|
inline |
Returns the chemical symbol of the specified element.
which | Index of the element included in composition in JMatPro. |
|
inlineprotected |
Creates a list of chemical element data.
|
inline |
Calculates and returns name of the base simulator directory with the specified index (zero-based).
whichSimulator | Index of the simulator. |
References IG.Lib.SimJMatProConst.SimulatorDirectoryPrefix.
|
inline |
Calculates and returns path of the root simulator directory with the specified index (zero-based).
whichSimulator | Index of the simulator. |
|
inlinevirtual |
Calculates and returns path of the Robert Vertnik's casting simulator's main directory with the specified index (zero-based).
whichSimulator | Index of the simulator. |
|
inlinevirtual |
Initializes the data for casting simulation interface.
rootDirectory | Root directory of the simulator. |
projectName | Simulator's project name. |
simulationName | Simulation name. |
|
inlineprotectedvirtual |
Returns a newly created Robert Vertnik's casting simulator with the specified index (zero-based)
whichSimulator | Index of the simulator. |
References IG.Lib.UtilSystem.CopyRecursive().
|
inline |
Prepares input data for simulator, in particular the material properties, which are obtained from the material data directory whose path is specified.
simulator | Simulator for which data is prepared. |
materialDirectoryPath | Path to the material data directory. |
|
inlinevirtual |
Calculates simulator's response at the specified process parameters, for the specified material directory (that specifies material parameters and properties), and stores joint input parameters and output values.
simulator | Simulator of type SimCastingRobertFileManager used to perform the numerical simulation at specified material and process parameters. |
materialDirectory | Approximate path to the material data directory from which material parameters and calculated material properties (input for simulation) are taken. |
It can be specified as absolute path or relative to mat. data root (i.e. just dir. name) or relative to working directory.
inputProcessParameters | Input parameters for which response is calculated. These parameters are combined with material parameters that are obtained from the material directory (parameter materialDirectory ) in order to produce a complete vector of parameters (that are stored to parameter inputJointParameters ). |
inputJointParameters | Vector where joint parameters are stored (obtained be combination of material and process parameters). |
outputValues | Vector object where the calculated output values are stored after calculation. |
|
inlineprotectedvirtual |
Calculates response by the specified simulator, for the specified process parameter vectors and the specified material (specified by the material directory approximate path), and stores calculated data in the specified sampled data set (object of type SampledDataSet).
If the specified data set is null then it is created anew, but if its input and output dimension don't match then exception is thrown.
simulator | Simulator of type SimCastingRobertFileManager used to perform the numerical simulation at specified material and process parameters. |
materialDirectory | Approximate path to the material data directory from which material parameters and calculated material properties (input for simulation) are taken. |
It can be specified as absolute path or relative to mat. data root (i.e. just dir. name) or relative to working directory.
sampledData | Object of type SampledDataSet where calculated response is stored. If it is null then it is created anew, fut if input and output dimensions don't match dimensions of the current object then exception is thrown. |
inputProcessParameters | Input parameters for which response is calculated. These parameters are combined with material parameters that are obtained from the material directory (parameter materialDirectory ) in order to produce a complete vector of parameters (that are stored to parameter inputJointParameters ). |
ArgumentException | When data set for storing calculated responses (param. sampledData ) is specified but has incorrect input and output dimensions. |
|
inlinevirtual |
Calculates response by the specified simulator, for the specified process parameter vectors and the specified material (specified by the material directory approximate path), and stores calculated data in the appropriate file in the material data directory (defined by the datasetName).
Results of previous calculations may already be stored in the appropriate file within the material data directory (whose name is defined by parameter datasetName ). In this case, newly calculated results are added to the existend file. Otherwise, a new file within the material data directory is created to which results are stored.
simulator | Simulator of type SimCastingRobertFileManager used to perform the numerical simulation at specified material and process parameters. |
materialDirectory | Approximate path to the material data directory from which material parameters and calculated material properties (input for simulation) are taken. |
It can be specified as absolute path or relative to mat. data root (i.e. just dir. name) or relative to working directory.
datasetName | Name of the data set that calculation refers to. This name defines the definition data for the specified calculation (which is not used here because process input paremeters are explicitly specified) and also the name of the file within the material directory where results of previous calculations for the same data set are stored and to which this mathod adds results of new calculations. |
inputProcessParameters | Input parameters for which response is calculated. These parameters are combined with material parameters that are obtained from the material directory (parameter materialDirectory ) in order to produce a complete vector of parameters (that are stored to parameter inputJointParameters ). |
ArgumentException | When data set for storing calculated responses (param. sampledData ) is specified but has incorrect input and output dimensions. |
|
inlinevirtual |
Calculates response by the specified simulator, for the specified process parameter vectors and the specified material (specified by the material directory approximate path), and stores calculated data in the appropriate file in the material data directory (defined by the datasetName).
Results of previous calculations may already be stored in the appropriate file within the material data directory (whose name is defined by parameter datasetName ). In this case, newly calculated results are added to the existend file. Otherwise, a new file within the material data directory is created to which results are stored.
simulator | Simulator of type SimCastingRobertFileManager used to perform the numerical simulation at specified material and process parameters. |
materialDirectory | Approximate path to the material data directory from which material parameters and calculated material properties (input for simulation) are taken. |
It can be specified as absolute path or relative to mat. data root (i.e. just dir. name) or relative to working directory.
datasetName | Name of the data set that calculation refers to. This name defines the definition data for the specified calculation (which is not used here because process input paremeters are explicitly specified) and also the name of the file within the material directory where results of previous calculations for the same data set are stored and to which this mathod adds results of new calculations. |
ArgumentException | When data set for storing calculated responses (param. sampledData ) is specified but has incorrect input and output dimensions. |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
string IG.Num.SimJMatProFileManagerBase._userInteractionCommand = SimJMatProConst.UserInteractionCommand |
string IG.Num.SimJMatProFileManagerBase._userInteractionRecordDir = SimJMatProConst.DefaultUserInteractionRecordDir |
string IG.Num.SimJMatProFileManagerBase._userInteractionRecordExtension = SimJMatProConst.UserInteractionRecordExtension |
string IG.Num.SimJMatProFileManagerBase._userInteractionRecordNameStartJMat = SimJMatProConst.UserInteractionRecordNameStartJMat |
string IG.Num.SimJMatProFileManagerBase._userInteractionRecordPathStartJMat |
string IG.Num.SimJMatProFileManagerBase._userInteractionRecordNameCloseJMat = SimJMatProConst.UserInteractionRecordNameCloseJMat |
string IG.Num.SimJMatProFileManagerBase._userInteractionRecordPathCloseJMat |
string IG.Num.SimJMatProFileManagerBase._userInteractionRecordNameRepairJMat = SimJMatProConst.UserInteractionRecordNameRepairJMat |
string IG.Num.SimJMatProFileManagerBase._userInteractionRecordPathRepairJMat |
string IG.Num.SimJMatProFileManagerBase._userInteractionRecordNameStartCalculation = SimJMatProConst.UserInteractionRecordNameStartCalculation |
string IG.Num.SimJMatProFileManagerBase._userInteractionRecordPathStartCalculation |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
double IG.Num.SimJMatProFileManagerBase._jMatTimeoutWaitCalculationSeconds = SimJMatProConst.JMatTimeoutWaitCalculationSeconds |
double IG.Num.SimJMatProFileManagerBase._jMatTimeoutWaitResultsSavedSeconds = SimJMatProConst.JMatTimeoutWaitResultsSavedSeconds |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Storage of composition data.
|
private |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
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.
|
getprotected |
Used internally for locking access to internal fields.
|
getprotected set |
Name of the mutex for system-wide locking of files.
|
getprotected |
Mutex for system-wide exclusive locks for file system operations related to the current class.
|
getset |
Level of information that is output to the console by some methods.
|
getset |
Name of the JMatPro directory (without root directories) and executable.
|
getset |
Path of the directory where JMAtPro 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.
|
getset |
JMatPro executable relative path to installation directory.
|
getset |
Path to the JMatPro executable.
|
getset |
Path to the JMatPro data directory (containing material data, input and output data, etc.)
By default, this path is just set to installation path (in version 4.0, all data is stored in installation directory).
|
getset |
Relative path, with respect to JMatPro data directory, of the file containing material composition (input for JMatPro calculation).
|
getset |
Path of the file containing material composition (input for JMatPro calculation).
|
getset |
Relative path, with respect to JMatPro data directory, of the file containing material results of JMatPro calculation.
|
getset |
Path of the file containing results of JMatPro calculation.
|
getset |
Relative path, with respect to JMatPro data directory, of the file used to detect whether calculation is still going on.
|
getset |
Path of the file used to detect whether calculation is still going on.
|
getset |
Sleeping time used in detectiong whether JMatPro calculation is still going on.
|
getset |
Minimal size of calculation detection file above which calculation is considered finished.
|
getset |
Waiting time (in seconds) after last increase in file size used before assuming that calculation is finished, to eventually prevent too early detection that calculation was finished.
|
getset |
Whether existence of working directory is checked when directory is created. Default is true.
|
getset |
Working directory where configuration files and other files are located.
Referenced by IG.Num.SimJMatProFileManagerBase.CopyFromSettingsPlain< FmType >(), and IG.Num.SimJMatProFileManagerBase.CopyToSettingsPlain< FmType >().
|
getset |
Name of the file containing definition data for the superset of all input parameters and output values.
This file may contain descriptions for more parameters and output values than those used, but it must contain all these parameters.
|
getset |
Path to the file containing definition data for the superset of all input parameters and output values.
This file may contain descriptions for more parameters and output values than those used, but it must contain all these parameters.
|
getset |
Name of the file containing data definition for all JMatPro input parameters (i.e. material composition expressed as mass fractions for individual parameters).
|
getset |
Path to the file containing data definition for all JMatPro input parameters (i.e. material composition expressed as mass fractions for individual parameters).
|
getset |
Name of the file containing data definition for all process input and output parameters.
|
getset |
Path to the file containing data definition for all process input and output parameters.
|
getset |
Name of the file containing definition data for the superset of all input parameters and output values.
This incluses definition of material parameters (i.e. composition expressed by mass fractions) followed by process parameters.
|
getset |
Path to the file containing definition data for the Joint of all input parameters and output values.
This incluses definition of material parameters (i.e. composition expressed by mass fractions) followed by process parameters.
|
getset |
Name of the file containing data definition for all JMatPro input parameters (i.e. material composition expressed as mass fractions for individual parameters).
|
getset |
Path to the file containing data definition for all JMatPro input parameters (i.e. material composition expressed as mass fractions for individual parameters).
|
getset |
Name of the file containing definition data for the superset of all input parameters and output values.
This incluses definition of material parameters (i.e. composition expressed by mass fractions) followed by process parameters.
|
getset |
Path to the file containing definition data for the Joint of all input parameters and output values.
This incluses definition of material parameters (i.e. composition expressed by mass fractions) followed by process parameters.
|
getprotected set |
Data definitions for the superset of all input parameters and output values.
This may contain descriptions for more parameters and output values than those used, but it must contain all these parameters.
|
getprotected set |
Data definitions for all JMatPro input parameters (i.e. material composition expressed as mass fractions for individual parameters).
|
getprotected set |
Bounds on neural input parameters.
|
getprotected set |
Data definitions for the Process parameters and output values.
|
getprotected set |
Data definitions for all input parameters and output values, including material and process parameters.
|
get |
Gets the number of material parameters.
|
get |
Gets the number of process parameters.
|
get |
Gets the total number of all parameters.
|
get |
Gets the number of output values for the process.
|
getprotected set |
File path of the file in working directory where material parameters for calculation are stored. If set to null then path is set to null and will be recalculated when getter is called.
|
getset |
Name of the file in material data directory where material parameters are stored.
|
getprotected set |
File path of the file in working directory where material parameters for calculation are stored as default values in a data definition file. If set to null then path is set to null and will be recalculated when getter is called.
|
getset |
Name of the root data directory.
|
getset |
Path to the root directory that contains directories with calculated material data for different parameters defining chemical compositions.
|
getset |
Name of the log file where operations are logged.
|
getset |
Path to the log file where basic operations are logged.
|
getset |
Textwriter for log file.
|
getprotected set |
Name of the material directory.
Getter forms name form material parameters if it is not specified. And vice versa, setting parameters will set the name (and consequently the material directory path) to null.
|
getprotected set |
Data directory for the current material parameters.
|
getset |
Name of the file in material data directory where material parameters are stored.
|
getprotected set |
File path of the file where material parameters are stored. If set to null then path is set to null and will be recalculated when getter is called.
|
getset |
Name of the file in material data directory where material composition is stored.
|
getprotected set |
File path of the file (normally in the material data directory) where material composition is stored. If set to null then path is set to null and will be recalculated when getter is called.
|
getset |
Name of the file in material data directory where material results are stored.
|
getprotected set |
File path of the file (normally in the material data directory) where material reslts are stored. If set to null then path is set to null and will be recalculated when getter is called.
|
getprotected set |
Minimal size of JMatPro results file in order to consider results valid.
Used to check the validity of the results.
|
getprotected set |
Size of the materials result file that is considered a good size - the file is expected to be at least of this size if calculation was performed without errors.
|
getprotected set |
File path of the material calculation in progress flag file. Setter takes only pure file name, without path information. If set to null then path is set to null and will be recalculated when getter is called.
|
getprotected set |
File path of the "material calculation finished" flag file. Setter takes only pure file name, without path information. If set to null then path is set to null and will be recalculated when getter is called.
|
getprotected set |
File path of the "material calculation timeout occurred" flag file. Setter takes only pure file name, without path information. If set to null then path is set to null and will be recalculated when getter is called.
|
getprotected set |
File path of the "material results wrong" flag file. Setter takes only pure file name, without path information. If set to null then path is set to null and will be recalculated when getter is called.
|
getset |
Name of the storage directory for material directories for which material properties have been successfully calculated.
|
getprotected set |
Path to the storage directory for material directories for which material properties have been successfully calculated.
|
getset |
Name of the storage directory for material directories for which busy flag remained set.
|
getprotected set |
Path to the storage directory for material directories for which busy flag remained set.
|
getset |
Name of the storage directory for material directories for which material properties calculation has timed out.
|
getprotected set |
Path to the storage directory for material directories for which material properties calculation has timed out.
|
getset |
Path to the storage directory for material directories for which calculation of material properties has failed.
|
getprotected set |
Path to the storage directory for material directories for which calculation of material properties has failed.
|
getset |
Path to the storage directory for material directories for which calculation of material properties has failed.
|
getprotected set |
Path to the storage directory for material directories for which calculation of material properties has failed.
|
getset |
Command for playback of recorded user interaction (i.e. emulation of keyboard and mouse events) for various actions.
|
getset |
Dierctory containing recorded user interactions for different actions.
|
getset |
Extension of files with recorded user interaction.
|
getset |
Name of the user interaction record for starting JMatPro software via system GUI.
|
getset |
Name of the user interaction record for closing JMatPro software via system GUI.
|
getset |
Name of the user interaction record for closing JMatPro software normally via GUI.
|
getset |
Name of the user interaction record for closing JMatPro software normally via GUI.
|
getset |
Name of the file containing records of user interaction necessary repair JMatPro in case it is damaged or another unwanted copy is running.
|
getset |
Path of the file containing records of user interaction necessary repair JMatPro in case it is damaged or another unwanted copy is running.
|
getset |
Name of the file containing recors of user interaction necessary to start JMatPro.
|
getset |
Name of the file containing recors of user interaction necessary to start JMatPro.
|
getset |
Name of the file containing records of user interaction necessary to save results of JMatPro calculation.
|
getset |
Path to the file containing recors of user interaction necessary to save results of JMatPro calculation.
|
getset |
Name of the file containing records of user interaction necessary to change temperature uits in JMatPro that is already launched.
|
getset |
Path to the file containing recors of user interaction necessary to change temperature uits in JMatPro that is already launched.
|
getset |
Name of the file containing records of user interaction necessary to change fraction uits in JMatPro that is already launched.
|
getset |
Path to the file containing recors of user interaction necessary to change fraction uits in JMatPro that is already launched.
|
getprotected set |
Timeout for waiting completion of calculation, in seconds.
If greater than 0 and results of calculation are waiter for more time than the timeout specifies, waiting is broken and it is considered that calculation could not be completed.
|
getprotected set |
Timeout for waiting until results are completely saved, in seconds.
If greater than 0 and saving results is waited for more time than the timeout specifies, waiting is broken and it is considered that saving could not be completed.
|
getset |
Minimal size of result file file, above which saving results can be considered finished.
|
getset |
Waiting time (in seconds) after last increase in file size used before assuming that saving result is finished, to eventually prevent too early detection that calculation was finished.
|
getprotected set |
Substring of java virtual machine process name, used to kill the process or check whether it is running.
|
getprotected set |
Substring of JMatPro main process name, used to kill the process or check whether it is running.
|
getprotected set |
Substring of JMatPro solver process name, used to kill the process or check whether it is running.
|
getprotected set |
Status of the last material calculation.
At the beginning of each material calculation, status is set to CalculationStatus.None.
|
get |
Timer for measuring total calculation time in methods that perform multiple material calculations.
|
getprotected set |
Longest material calculation time by now, reset at the beginning of every top level calculation function.
|
getset |
|
getprotected set |
Total number of intended material calculations attempted by now.k
Reset at the beginning of every top level calculations.
|
getprotected set |
Number of (completed) material calculations attempted by now.
Reset at the beginning of every top level calculations.
|
getprotected set |
Number of material calculations by now that have successfully completed.
Reset at the beginning of every top level calculations.
|
getprotected set |
Number of material calculations by now where timeout occurred.
Reset at the beginning of every top level calculations.
|
getprotected set |
Number of material calculations by now where calculation has failed.
Reset at the beginning of every top level calculations.
|
getset |
Number fo consecutive events where material calculation was not successfule.
|
getset |
Number fo consecutive events where timeout occurred during material calculation.
|
getset |
Number fo consecutive events where material calculation was not successful.
|
getset |
Parameters that define chemical composition of steel for which material properties are calculated.
|
getprotected set |
Random generator used by the current object.
Lazy evaluation, created when needed for the first time.
The generator is thread safe and initialized with a time dependent seed.
|
getsetprotected |
List of element data to be used in JMatPro.
|
getsetprotected |
Array of element symbols sorted as required gor the JMatPro input file.
|
get |
|
getprotected set |
Name of the current project, used in some simulation and other interfaces.
|
getprotected set |
Name of the current simulation, used in some simulation and other interfaces.
|
getset |
Name of the root simulation directory.
|
getset |
Path to the root simulator directory that contains directories with simulators' data (there may be more than one such directory in the case of parallel simulators.
|
getset |
Name of the simulator template directory. This is the root simulator directory that contains all simuator related data and must be copied in order to produce a new active simulator.
|
getprotected set |
Path to the simulator template directory. This is the root simulator directory that contains all simuator related data and must be copied in order to produce a new active simulator.
|
getset |
Name of the main directory of the Robert Vertnik's casting simulator.
|
getsetprotected |
Project name for interfacing Robert Vertnik's casting simulator.
|
getsetprotected |
Simulation name for interfacing Robert Vertnik's casting simulator.
|
getprotected set |
Specifies which simulator is in use by the current file manager (this is 0 if simulators are not run in parallel and there is a single simulator).
|
getprotected set |
Path to the base directory of the current simulator in use. This directory is directly contained in the
|
getprotected set |
Path of the main directory of the Robert Vertnik's casting simulator that is currently in use.
|
getset |
File manager for interfacing Robert Vertnik's casting simulator. Lazy evaluation: The object is created when first accessed, if possible. For this, ProjectName, SimulationName and SimCastingRobertRootDirectoryPath must be defined.