{
	"$id": "https://drillplan.slb.com/effective-drilling-fluid.json",
	"$schema": "http://json-schema.org/draft-07/schema#",
	"title": "DrillPlan effective drilling fluid",
	"description": "DrillPlan effective drilling fluid. AEA input type name: effective_drilling_fluid-v1",
	"type": "object",
	"properties": {
		"effective_results": {
			"type": "array",
			"description": "Drilling fluid properties at each depth.",
			"items": {
				"$ref": "#/definitions/effective-result"
			}
		},
		"drilling_fluid_program_id": {
			"description": "Id of the drilling fluid program.",
			"type": "string"
		}
	},
	"definitions": {
		"effective-result": {
			"$id": "https://drillplan.slb.com/effective-drilling-fluid.json#effective-result",
			"$schema": "http://json-schema.org/draft-07/schema#",
			"title": "Minimum, maximum and recommended drilling fluid properties at specific hole depth",
			"type": "object",
			"properties": {
				"hole_depth": {
					"type": "number",
					"description": "Measured depth (StandardDepthIndex,meter,m)."
				},
				"min_fluid_properties": {
					"$ref": "#/definitions/drilling-fluid-properties",
					"description": "Minimum drilling fluid properties."
				},
				"max_fluid_properties": {
					"$ref": "#/definitions/drilling-fluid-properties",
					"description": "Maximum drilling fluid properties."
				},
				"recommendation_fluid_properties": {
					"$ref": "#/definitions/drilling-fluid-properties",
					"description": "Recommedned drilling fluid properties."
				},
				"cuttings_info": {
					"$ref": "#/definitions/cuttings-info",
					"description": "Information about cuttings."
				},
				"suction_temperature": {
					"type": "number",
					"description": "Temperature of the fluid pumped into the well (Temperature,kelvin,K)."
				},
				"default_rheology_temperature_by_fluid_type": {
					"type": "number",
					"description": "Default Temperature based on the fluid type (Temperature,kelvin,K)."
				}
			},
			"required": [
				"hole_depth"
			]
		},
		"drilling-fluid-properties": {
			"$id": "https://drillplan.slb.com/effective-drilling-fluid.json#drilling-fluid-properties",
			"$schema": "http://json-schema.org/draft-07/schema#",
			"title": "Drilling Fluid Properties",
			"type": "object",
			"properties": {
				"carbonate": {
					"type": "number",
					"description": "Concentration of CO3 ion in mud filtrate (MilligramPerLiter,kilogram per cubic meter,kg/m3)."
				},
				"ph": {
					"type": "number",
					"descriptipon": "Describe the acidity or basicity of solutions, defined as the negative log of the hydrogen ion concentration (Dimensionless)."
				},
				"pm": {
					"type": "number",
					"description": "Phenolphthalein alkalinity of the fluid (Dimensionless)."
				},
				"pf": {
					"type": "number",
					"description": "Phenolphthalein alkalinity of the filtrate (Dimensionless)."
				},
				"mf": {
					"type": "number",
					"description": "Methyl orange alkalinity of the filtrate (Dimensionless)."
				},
				"funnel_viscosity": {
					"type": "number",
					"description": "In case of 'PV, YP, Fann 3/6' rheology, it is time required for one quart of fluid to flow out of a Marsh funnel into a graduated cup (Time,second,s)."
				},
				"rheology_input_type": {
					"$ref": "#/definitions/rheology-input-type",
					"description": "Rheology input type."
				},
				"rheology_model": {
					"type": "string",
					"enum": [
						"BinghamPlastic",
						"PowerLaw",
						"HerschelBulkley"
					],
					"description": "Rheology model."
				},
				"mbt": {
					"type": "number",
					"description": "The Methylene Blue Test, a measure of the reactive solids content (clay-like materials) in a water-base drilling fluid (MassPerVolume,kilogram per cubic meter,kg/m3)."
				},
				"excess_lime": {
					"type": "number",
					"description": "Concentration of non-reacted/free Lime in the fluid for alkalinity control (MassPerVolume,kilogram per cubic meter,kg/m3)."
				},
				"electrical_stability": {
					"type": "number",
					"description": "Indication of how well the water/brine is emulsified in the oil or synthetic phase (ElectricPotential,volt,v)."
				},
				"drilling_fluid_type": {
					"type": "string",
					"enum": [
						"OilBased",
						"WaterBased",
						"Synthetic",
						"Unknown"
					],
					"description": "Type of the drilling fluid."
				},
				"nominal_density": {
					"$ref": "#/definitions/density-measurement",
					"title": "Density measurement"
				},
				"oil_water_ratio": {
					"type": "number",
					"description": "% Oil / % Water (Dimensionless)."
				},
				"base_fluid_type": {
					"type": "string",
					"title": "Continuous phase of the drilling fluid, identified by names conforming to Schlumberger's hydraulics calculation engine's contract. The names may not correlate exactly to the base fluid specified in the Drilling Fluid Program."
				},
				"base_fluid": {
					"type": "string",
					"title": "Continuous phase of the drilling fluid, identified by codes that correlate exactly to the base fluid specified in the Drilling Fluid Program."
				},
				"is_weighted_mud": {
					"type": "boolean"
				},
				"lgs_percent": {
					"type": "number",
					"description": "Volume of low-gravity solids (Percent,percent,%)."
				},
				"salinity": {
					"type": "number",
					"description": "Salt concentration/weight (Percent,percent,%)."
				},
				"hthp_fluid_loss": {
					"type": "number",
					"description": "Measure of the relative amount of fluid lost (filtrate) through permeable media when the drilling fluid is subjected to pressure differential and temperature conditions (FluidLossRate,cubic meter per second,m3/s)."
				},
				"api_fluid_loss": {
					"type": "number",
					"description": "Measure of the relative amount of fluid lost (filtrate) through permeable media when the drilling fluid is subjected to 100 psi at room temperature (FluidLossRate,cubic meter per second,m3/s)."
				},
				"salt_type": {
					"type": "string",
					"enum": [
						"NaCl",
						"CaCl2",
						"KCl",
						"CaBr2",
						"NaHCO2",
						"KHCO2",
						"Na_KHCO2",
						"Ce_KHCO2",
						"NaBr",
						"ZnBr2",
						"Unknown"
					],
					"description": "Salt present in the fluid."
				},
				"brine_fraction": {
					"type": "number",
					"description": "Salt brine fraction (Percent,percent,%)."
				},
				"dual_salt_type": {
					"type": "string",
					"enum": [
						"NaCl",
						"CaCl2",
						"KCl",
						"CaBr2",
						"NaHCO2",
						"KHCO2",
						"Na_KHCO2",
						"Ce_KHCO2",
						"NaBr",
						"ZnBr2",
						"Unknown"
					],
					"description": "Secondary salt present in the fluid."
				},
				"dual_salinity": {
					"type": "number",
					"description": "Secondary salt concentration/weight (Percent,percent,%)."
				},
				"dual_brine_fraction": {
					"type": "number",
					"description": "Secondary salt brine fraction (Percent,percent,%)."
				},
				"flo_viz": {
					"type": "number",
					"description": "Clarified xanthan gum biopolymer concentration for FloPro NT fluid (MassPerVolume,kilogram per cubic meter,kg/m3)."
				},
				"nominal_rheologies": {
					"type": "array",
					"description": "Nominal rheologies.",
					"items": {
						"$ref": "#/definitions/rheology-measurement"
					}
				}
			},
			"required": [
				"rheology_input_type",
				"rheology_model",
				"drilling_fluid_type",
				"is_weighted_mud",
				"salt_type"
			]
		},
		"cuttings-info": {
			"$id": "https://drillplan.slb.com/effective-drilling-fluid.json#cuttings-info",
			"$schema": "http://json-schema.org/draft-07/schema#",
			"title": "Information about cuttings",
			"type": "object",
			"properties": {
				"cuttings_density": {
					"type": "number",
					"description": "Specific Gravity of the cuttings (Density,kilogram per cubic meter,kg/m3)."
				},
				"cuttings_size_type": {
					"type": "string",
					"enum": [
						"Small",
						"MediumSmall",
						"Medium",
						"MediumLarge",
						"Large",
						"ExtraLarge"
					],
					"description": "Diameter and thickness of the cutting."
				},
				"cuttings_type": {
					"type": "string",
					"enum": [
						"Shale",
						"Sand",
						"Limestone"
					],
					"description": "Type of rock being drilled."
				}
			},
			"required": [
				"cuttings_density",
				"cuttings_size_type",
				"cuttings_type"
			]
		},
		"rheology-input-type": {
			"$id": "https://drillplan.slb.com/effective-drilling-fluid.json#rheology-input-type",
			"$schema": "http://json-schema.org/draft-07/schema#",
			"title": "Rheology input type",
			"type": "string",
			"enum": [
				"PV_YP_Tau0_YP",
				"PV_YP_LSYP",
				"PV_YP_R6_R3",
				"Fann35A",
				"Fann70"
			]
		},
		"density-measurement": {
			"$id": "https://drillplan.slb.com/effective-drilling-fluid.json#density-measurement",
			"$schema": "http://json-schema.org/draft-07/schema#",
			"title": "Density measurement",
			"type": "object",
			"properties": {
				"density": {
					"type": "number",
					"description": "Weight per unit volume of the hole fluid phase (Density,kilogram per cubic meter,kg/m3)."
				},
				"pressure": {
					"type": "number",
					"description": "Corresponding pressure for measured fluid density (Pressure,pascal,Pa)."
				},
				"temperature": {
					"type": "number",
					"description": "Corresponding temperature for measured fluid density (Temperature,kelvin,K)."
				}
			}
		},
		"rheology-measurement": {
			"$id": "https://drillplan.slb.com/effective-drilling-fluid.json#rheology-measurement",
			"$schema": "http://json-schema.org/draft-07/schema#",
			"title": "Rheology measurement",
			"type": "object",
			"properties": {
				"rheology": {
					"$ref": "#/definitions/rheology",
					"description": "Measured rheology."
				},
				"pressure": {
					"type": "number",
					"description": "Pressure at which rheology is measured (Pressure,pascal,Pa)."
				},
				"temperature": {
					"type": "number",
					"description": "Temperature at which rheology is measured (Temperature,kelvin,K)."
				}
			}
		},
		"rheology": {
			"$id": "https://drillplan.slb.com/effective-drilling-fluid.json#rheology",
			"$schema": "http://json-schema.org/draft-07/schema#",
			"title": "Rheology settings",
			"type": "object",
			"properties": {
				"api_plastic_viscosity": {
					"type": "number",
					"description": "Resistance to flow caused by mechanical friction (600 - 300 RPM Dial Reading) (DynamicViscosity,kilogram per meter-second,kg/(m.s))."
				},
				"api_yield_point": {
					"type": "number",
					"description": "Resistance to flow caused by electro-chemical forces in a fluid (300 RPM Dial Reading - PV) (ShearStress,pascal,Pa)."
				},
				"low_shear_yield_point": {
					"type": "number",
					"description": "Low Shear Yield Point = (3 RPM Dial Reading * 2) - 6 RPM Dial Reading (ShearStress,pascal,Pa)."
				},
				"r3": {
					"type": "number",
					"description": "Low-end rheology, 3-RPM dial reading (Dimensionless)."
				},
				"r6": {
					"type": "number",
					"description": "Low-end rheology, 6-RPM dial reading (Dimensionless)."
				},
				"r100": {
					"type": "number",
					"description": "100-RPM dial reading (Dimensionless)."
				},
				"r200": {
					"type": "number",
					"description": "200-RPM dial reading (Dimensionless)."
				},
				"r300": {
					"type": "number",
					"description": "300-RPM dial reading (Dimensionless)."
				},
				"r600": {
					"type": "number",
					"description": "600-RPM dial reading (Dimensionless)."
				},
				"gel10s": {
					"type": "number",
					"description": "Maximum 3-RPM dial reading obtained after the fluid has been standing undisturbed for 10 seconds (Dimensionless)."
				},
				"gel10m": {
					"type": "number",
					"description": "Maximum 3-RPM dial reading obtained after the fluid has been standing undisturbed for 10 min (Dimensionless)."
				},
				"model_index": {
					"$ref": "#/definitions/model-index",
					"description": "Model index."
				},
				"rheology_input_type": {
					"$ref": "#/definitions/rheology-input-type",
					"description": "Rheology input type."
				}
			},
			"required": [
				"rheology_input_type"
			]
		},
		"model-index": {
			"$id": "https://drillplan.slb.com/effective-drilling-fluid.json#model-index",
			"$schema": "http://json-schema.org/draft-07/schema#",
			"title": "Model index",
			"type": "object",
			"properties": {
				"value": {
					"type": "number",
					"description": "Yield stress / yield point ratio (Dimensionless)."
				},
				"auto_computed": {
					"type": "boolean",
					"description": "Shows if the default model index value was assumed based on the fluid type."
				}
			},
			"required": [
				"auto_computed"
			]
		}
	}
}