.NET SDK for process consequence calculations using Phast Web Services.
$ dotnet add package DNV.DotNetPWSWelcome to .Net PWS - the .NET SDK for Phast Web Services. The .NET SDK provides an easy and efficient way of consuming the Phast Cloud APIs in your .NET based solutions.
Phast is a powerful, comprehensive and easy-to-use software tool for process hazard analysis. It is used to identify, understand and manage process hazards in a wide range of industries, including oil and gas, chemical, pharmaceutical, food and beverage, and manufacturing.
Phast is a modular software tool that can be tailored to meet the needs of different industries and applications. It provides a range of tools and techniques for identifying and assessing process hazards, including:
Phast is used by thousands of companies around the world to help them manage process safety and reduce the risk of accidents and incidents. It is a key tool in the field of process safety management, and is used by engineers, safety professionals, regulators and other stakeholders to help ensure the safe operation of process plants and facilities.
Hazard identification is the process of identifying and assessing the hazards associated with a particular process or activity. It involves identifying the potential sources of harm, the likelihood of those sources causing harm, and the consequences of that harm. Hazard identification is a key step in the process of managing process safety, as it helps to identify the risks associated with a particular process or activity, and to develop strategies for managing those risks.
Risk assessment is the process of assessing the risks associated with a particular process or activity. It involves identifying the hazards associated with the process or activity, and assessing the likelihood and consequences of those hazards causing harm. Risk assessment is a key tool in the process of managing process safety, as it helps to identify the risks associated with a particular process or activity, and to develop strategies for managing those risks.
Consequence analysis is the process of assessing the consequences of a particular hazard or event. It involves identifying the potential consequences of a hazard or event, and assessing the severity of those consequences. Consequence analysis is a key tool in the process of managing process safety, as it helps to identify the potential consequences of a hazard or event, and to develop strategies for managing those consequences.
Risk management is the process of managing the risks associated with a particular process or activity. It involves identifying the hazards associated with the process or activity, assessing the likelihood and consequences of those hazards causing harm, and developing strategies for managing those risks. Risk management is a key tool in the process of managing process safety, as it helps to identify the risks associated with a particular process or activity, and to develop strategies for managing those risks.
Safety management is the process of managing the safety of a particular process or activity. It involves identifying the hazards associated with the process or activity, assessing the likelihood and consequences of those hazards causing harm, and developing strategies for managing those risks. Safety management is a key tool in the process of managing process safety, as it helps to identify the risks associated with a particular process or activity, and to develop strategies for managing those risks.
More detailed information and samples can be found here.
The following example shows how to instantiate, populate and run a vessel leak calculation.
var vesselLeakCalculation = new VesselLeakCalculation();
vesselLeakCalculation.Vessel.Diameter = 8.0;
vesselLeakCalculation.Vessel.Length = 20.0;
vesselLeakCalculation.Vessel.Shape = VesselShape.HorizontalCylinder;
vesselLeakCalculation.Vessel.Material = new Material
{
ComponentCount = 1,
Components = new List<MaterialComponent>
{
new MaterialComponent
{
MoleFraction = 1.0,
Name = Material
}
},
PropertyTemplate = PropertyTemplate.PhastMC
};
vesselLeakCalculation.Vessel.State.Temperature = Temperature;
vesselLeakCalculation.Vessel.State.Pressure = Pressure;
vesselLeakCalculation.Vessel.State.FlashFlag = FluidSpec.TP;
vesselLeakCalculation.Vessel.VesselConditions = VesselConditions;
vesselLeakCalculation.Vessel.LiquidFillFractionByVolume = LiquidFillFraction;
vesselLeakCalculation.Leak.HoleDiameter = HoleDiameter;
vesselLeakCalculation.Leak.TimeVaryingOption = TimeVaryingOption.TimeVaryingRate;
var calculationResponse = vesselLeakCalculation.Run();