DNV.DotNetPWS 4.1.13

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package DNV.DotNetPWS --version 4.1.13
                    
NuGet\Install-Package DNV.DotNetPWS -Version 4.1.13
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DNV.DotNetPWS" Version="4.1.13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DNV.DotNetPWS" Version="4.1.13" />
                    
Directory.Packages.props
<PackageReference Include="DNV.DotNetPWS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DNV.DotNetPWS --version 4.1.13
                    
#r "nuget: DNV.DotNetPWS, 4.1.13"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DNV.DotNetPWS@4.1.13
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DNV.DotNetPWS&version=4.1.13
                    
Install as a Cake Addin
#tool nuget:?package=DNV.DotNetPWS&version=4.1.13
                    
Install as a Cake Tool

DNV DotNetPWS

Introduction

Welcome to DotNetPWS - 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.

What is Phast?

Phast is the world's most comprehensive process hazard analysis software which models the progress of a potential incident from the initial release to far-field dispersion including modelling of pool spreading and evaporation and resulting flammable and toxic effects. In Phast Web Services we have taken the same state of the art consequence modelling calculations and made them available as web services so you can use them in your own applications.

Concepts

Phast Web Services have been designed to use "entities" that are easy to grasp conceptually. So you work with physical objects like a vessel or a pipe and associated data objects like leaks, pipe ruptures and weathers. These are used when calling a vessel leak or pipe breach calculation for example.

Getting started

Full documentation and samples can be found here.

Example

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();

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.1.14-alpha144 118 7/13/2026
4.1.14-alpha141 260 8/12/2025
4.1.14-alpha138 261 8/8/2025
4.1.13 258 8/6/2024
4.1.13-alpha51 206 2/10/2025
4.1.13-alpha44 185 8/29/2024
4.1.13-alpha43 199 8/21/2024
4.1.13-alpha42 202 8/14/2024
4.1.13-alpha41 197 8/14/2024
4.1.13-alpha40 209 8/14/2024
4.1.13-alpha39 188 8/14/2024
4.1.13-alpha38 200 8/14/2024
4.1.13-alpha37 206 8/14/2024
4.1.13-alpha36 221 8/14/2024
4.1.13-alpha35 205 8/14/2024
4.1.13-alpha34 213 8/14/2024
4.1.13-alpha33 205 8/14/2024
4.1.13-alpha110 209 7/11/2025
4.1.13-alpha104 194 6/6/2025
4.1.13-alpha103 233 6/5/2025
Loading failed