Skip to main content
Namespace: VM.API.Pre.FE
Assembly: VM.API.Pre.FE.dll
This class implements APIs for BoundaryCondition class.

Inheritance

object ← ThermalAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Methods

CreateConvectionWithFunction(SubSystemDocument, Obj, string, Obj?, Obj?, ConvectionCoefficient, Temperature)

Create Convection with functions.

Parameters

document SubSystemDocument The document to create the convection. convectionComponent Obj The convection component convectionName string The name of the convection. If empty, default name starts with ‘Convection_’ will be generated and used. convectionCoefficientFunction Obj? The name of the convection coefficient function. ambientTemperatureFunction Obj? The name of the ambient temperature function. convectionCoefficientUnit ConvectionCoefficientUnit.ConvectionCoefficient The unit of the convection coefficient. ambientTemperatureUnit TemperatureUnit.Temperature The unit of the ambient temperature.

Returns

Obj The new Convection object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘convectionComponent’ arguments are empty. ArgumentException Will be thrown if ‘convectionCoefficientFunction’ argument is not empty and type of ‘convectionCoefficientFunction’ is not Function. ArgumentException Will be thrown if ‘ambientTemperatureFunction’ argument is not empty and type of ‘ambientTemperatureFunction’ is not Function.

CreateConvectionWithUserSubroutine(SubSystemDocument, Obj, Obj, string)

Create Convection with user-subrooutine.

Parameters

document SubSystemDocument The document to create the convection. convectionComponent Obj The convection component usub Obj The name of the user-subrooutine. convectionName string The name of the convection. If empty, default name starts with ‘Convection_’ will be generated and used.

Returns

Obj The new Convection object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘convectionComponent’ arguments are empty. ArgumentException Will be thrown if ‘usub’ argument is not empty and type of ‘usub’ is not UserSubroutine.

CreateHeatFlowWithFunction(SubSystemDocument, Obj, string, Obj?, HeatFlow)

Create HeatFlow with functions.

Parameters

document SubSystemDocument The document to create the heat flow. heatFlowComponent Obj The heat flow component heatFlowName string The name of the heat flow. If empty, default name starts with ‘HeatFlow_’ will be generated and used. heatFlowFunction Obj? The name of the heat flow function. heatFlowUnit HeatFlowUnit.HeatFlow The unit of the heat flow.

Returns

Obj The new HeatFlow object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘heatFlowComponent’ arguments are empty. ArgumentException Will be thrown if ‘heatFlowFunction’ argument is not empty and type of ‘heatFlowFunction’ is not Function.

CreateHeatFlowWithUserSubroutine(SubSystemDocument, Obj, Obj, string)

Create HeatFlow with user-subrooutine.

Parameters

document SubSystemDocument The document to create the heat flow. heatFlowComponent Obj The heat flow component usub Obj The name of the user-subrooutine. heatFlowName string The name of the heat flow. If empty, default name starts with ‘HeatFlow_’ will be generated and used.

Returns

Obj The new HeatFlow object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘heatFlowComponent’ arguments are empty. ArgumentException Will be thrown if ‘usub’ argument is not empty and type of ‘usub’ is not UserSubroutine.

CreateHeatFluxWithFunction(SubSystemDocument, Obj, string, Obj?, HeatFlux)

Create HeatFlux with functions.

Parameters

document SubSystemDocument The document to create the heat flux. heatFluxComponent Obj The heat flux component heatFluxName string The name of the heat flux. If empty, default name starts with ‘HeatFlux_’ will be generated and used. heatFluxFunction Obj? The name of the heat flux function. heatFluxUnit HeatFluxUnit.HeatFlux The unit of the heat flux.

Returns

Obj The new HeatFlux object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘heatFluxComponent’ arguments are empty. ArgumentException Will be thrown if ‘heatFluxFunction’ argument is not empty and type of ‘heatFluxFunction’ is not Function.

CreateHeatFluxWithUserSubroutine(SubSystemDocument, Obj, Obj, string)

Create HeatFlux with user-subrooutine.

Parameters

document SubSystemDocument The document to create the heat flux. heatFluxComponent Obj The heat flux component usub Obj The name of the user-subrooutine. heatFluxName string The name of the heat flux. If empty, default name starts with ‘HeatFlux_’ will be generated and used.

Returns

Obj The new HeatFlux object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘heatFluxComponent’ arguments are empty. ArgumentException Will be thrown if ‘usub’ argument is not empty and type of ‘usub’ is not UserSubroutine.

CreateHeatGenerationWithFunction(SubSystemDocument, Obj, string, Obj?, HeatGeneration)

Create HeatGeneration with functions.

Parameters

document SubSystemDocument The document to create the heat generation. heatGenerationComponent Obj The heat generation component heatGenerationName string The name of the heat generation. If empty, default name starts with ‘HeatGeneration_’ will be generated and used. heatGenerationFunction Obj? The name of the heat generation function. heatGenerationUnit HeatGenerationUnit.HeatGeneration The unit of the heat generation.

Returns

Obj The new HeatGeneration object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘heatGenerationComponent’ arguments are empty. ArgumentException Will be thrown if ‘heatGenerationFunction’ argument is not empty and type of ‘heatGenerationFunction’ is not Function.

CreateHeatGenerationWithUserSubroutine(SubSystemDocument, Obj, Obj, string)

Create HeatGeneration with user-subrooutine.

Parameters

document SubSystemDocument The document to create the heat generation. heatGenerationComponent Obj The heat generation component usub Obj The name of the user-subrooutine. heatGenerationName string The name of the heat generation. If empty, default name starts with ‘HeatGeneration_’ will be generated and used.

Returns

Obj The new HeatGeneration object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘heatGenerationComponent’ arguments are empty. ArgumentException Will be thrown if ‘usub’ argument is not empty and type of ‘usub’ is not UserSubroutine.

CreateTemperatureWithDFTHFile(SubSystemDocument, Obj, string, Temperature, string)

Create Temperature with .dfth file.

Parameters

document SubSystemDocument The document to create the temperature. temperatureComponent Obj The temperature component dfthFilePath string The .dfth file path. temperatureUnit TemperatureUnit.Temperature The unit of the temperature. temperatureName string The name of the temperature. If empty, default name starts with ‘Temperature_’ will be generated and used.

Returns

Obj The new Temperature object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘temperatureComponent’ arguments are empty. ArgumentException Will be thrown if type of ‘temperatureFunction’ is not NodalBody. FileNotFoundException Will be thrown if dfthFilePath file is not exist.

CreateTemperatureWithFunction(SubSystemDocument, Obj, string, Obj?, Temperature)

Create Temperature with functions.

Parameters

document SubSystemDocument The document to create the temperature. temperatureComponent Obj The temperature component temperatureName string The name of the temperature. If empty, default name starts with ‘Temperature_’ will be generated and used. temperatureFunction Obj? The name of the temperature function. temperatureUnit TemperatureUnit.Temperature The unit of the temperature.

Returns

Obj The new Temperature object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘temperatureComponent’ arguments are empty. ArgumentException Will be thrown if type of ‘temperatureFunction’ is not ITemperatureComponent. ArgumentException Will be thrown if ‘temperatureFunction’ argument is not empty and type of ‘temperatureFunction’ is not Function.

CreateTemperatureWithUserSubroutine(SubSystemDocument, Obj, Obj, string)

Create Temperature with user-subrooutine.

Parameters

document SubSystemDocument The document to create the temperature. temperatureComponent Obj The temperature component usub Obj The name of the user-subrooutine. temperatureName string The name of the temperature. If empty, default name starts with ‘Temperature_’ will be generated and used.

Returns

Obj The new Temperature object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘temperatureComponent’ arguments are empty. ArgumentException Will be thrown if type of ‘temperatureFunction’ is not ITemperatureComponent. ArgumentException Will be thrown if ‘usub’ argument is not empty and type of ‘usub’ is not UserSubroutine.

CreateThermalContactWithFunction(SubSystemDocument, Obj, string, Obj?, ConvectionCoefficient)

Create ThermalContact with functions.

Parameters

document SubSystemDocument The document to create the thermal contact. thermalContactComponent Obj The thermal contact component thermalContactName string The name of the thermal contact. If empty, default name starts with ‘ThermalContact_’ will be generated and used. thermalContactFunction Obj? The name of the thermal contact function. convectionCoefficient ConvectionCoefficientUnit.ConvectionCoefficient The unit of the thermal contact conductance coefficient.

Returns

Obj The new ThermalContact object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘thermalContactComponent’ arguments are empty. ArgumentException Will be thrown if ‘thermalContactFunction’ argument is not empty and type of ‘thermalContactFunction’ is not Function.

CreateThermalContactWithUserSubroutine(SubSystemDocument, Obj, Obj, string)

Create ThermalContact with user-subrooutine.

Parameters

document SubSystemDocument The document to create the thermal contact. thermalContactComponent Obj The thermal contact component usub Obj The name of the user-subrooutine. thermalContactName string The name of the thermal contact. If empty, default name starts with ‘ThermalContact_’ will be generated and used.

Returns

Obj The new ThermalContact object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘thermalContactComponent’ arguments are empty. ArgumentException Will be thrown if ‘usub’ argument is not empty and type of ‘usub’ is not UserSubroutine.