Commit 87377f56 authored by Henning Francke's avatar Henning Francke
Browse files

Example rename

parent 25e4ba45
within BrineProp.Examples.TwoPhase;
model DegassingByDecompression
model DegassingByDecompression_3gas
"Degassing example for 2-phase brine property model"
//needs "Advanced.PedanticModelica:=false" to run
//should be run with 500 steps on equidistant time grid
......@@ -23,4 +23,4 @@ equation
"GrSk brine (Feldbusch 2-2013 1.1775g/ml V2)";
annotation (__Dymola_Commands(file="Resources/Scripts/DegassingByDecompression.mos"
"Plot degassing"), experiment(__Dymola_NumberOfIntervals=100));
end DegassingByDecompression;
end DegassingByDecompression_3gas;
within BrineProp.Examples.TwoPhase;
model DegassingByDecompression_4gas
"Degassing example for 2-phase brine property model"
//needs "Advanced.PedanticModelica:=false" to run
//should be run with 500 steps on equidistant time grid
//SPECIFY MEDIUM and COMPOSITION
package Medium = BrineProp.Brine3salts4gas(AssertLevel=1);
Medium.BaseProperties props;
Real GVF = props.GVF "<- PLOT ME!";
Real p_bar = props.p/1e5 "pressure in bar (For Plotting)";
SI.Pressure p_degas = sum(props.p_degas);
SI.Temp_C T_C = SI.Conversions.to_degC(props.T);
equation
//SPECIFY THERMODYNAMIC STATE
//degassing by decompression starting at reservoir conditions
props.p = (100-98.5*time)*1e5;
props.T = 125+273.15;
//specify brine composition (NaCl, KCl, CaCl2, CO2, N2, CH4, H2)
// props.Xi = {0.0839077010751,0.00253365118988,0.122786737978,7.2426359111e-05,0.000689505657647,6.14906384726e-05, 1e-4} "GrSk brine (Feldbusch 2-2013 1.1775g/ml V2)";
props.Xi = {0,0,0, 1e-01,0e-04,0e-04, 0e-4};
annotation (__Dymola_Commands(file="Resources/Scripts/DegassingByDecompression_4gas.mos"
"Plot degassing"), experiment(__Dymola_NumberOfIntervals=100));
end DegassingByDecompression_4gas;
......@@ -4,7 +4,7 @@ PureWaterMinimal
PureWaterFlashing
BrineProps2PhaseMinimal
DegassingByHeating
DegassingByDecompression
DegassingByDecompression_3gas
BrineProps2Phase3gas_Minimal_ph
BrineProps2phase3gasFull
BrineProps2Phase3gasMinimal_state
......@@ -14,3 +14,5 @@ DeepWellSampleTakingGasIncrease
SolubilityValidation
MethaneSolubility
BrineProps2Phase4gasMinimal
DegassingByDecompression_4gas
SlugWithdrawal
T_C = signalOperatorValue("DegassingByDecompression[end].props.T", SignalOperator.Max)-273.15;
T_C = signalOperatorValue("DegassingByDecompression_3gas[end].props.T", SignalOperator.Max)-273.15;
// Plot commands
removePlots(false);
......@@ -12,6 +12,6 @@ Advanced.Legend.Frame = false;
Advanced.Legend.Transparent = true;
Advanced.Legend.Location = 1;
Advanced.FilesToKeep = 2;
createPlot(id=1, x="p_bar", y={"GVF", "props.x"}, heading="Degassing by decompression at "+String(T_C)+" C", range={0, 90, 0, 1}, autoscale=false, grid=true, legends={"gas volume fraction", "gas mass fraction"}, colors={{28,108,200}, {238,46,47}});
createPlot(id=1, x="p_bar", y={"GVF", "props.x"}, heading="Degassing by decompression at "+String(T_C)+" °C", range={0, 90, 0, 1}, autoscale=false, grid=true, legends={"gas volume fraction", "gas mass fraction"}, colors={{28,108,200}, {238,46,47}});
createPlot(id=1, x="p_bar", y={"props.y_g[1]", "props.y_g[2]", "props.y_g[3]", "props.y_g[4]"}, range={0, 90, 0, 1}, autoscale=false, grid=true, legends={"y_CO2", "y_N2", "y_CH4", "y_H2O"}, subPlot=2, leftTitleType=2, leftTitle="mole fraction", colors={{128,128,128}, {0,0,0}, {0,140,72}, {28,108,200}}, thicknesses={0.5, 0.5, 0.5, 0.5});
//Plotting over p_bar only works for last simulation
\ No newline at end of file
T_C = signalOperatorValue("DegassingByDecompression_4gas[end].props.T", SignalOperator.Max);
// Plot commands
removePlots(false);
Advanced.FilenameInLegend = false;
Advanced.SequenceInLegend = true;
Advanced.PlotLegendTooltip = true;
Advanced.FullPlotTooltip = true;
Advanced.DefaultAutoErase = true;
Advanced.Legend.Horizontal = true;
Advanced.Legend.Frame = false;
Advanced.Legend.Transparent = true;
Advanced.Legend.Location = 1;
createPlot(id=1, x="p_bar", y={"GVF", "props.x"}, heading="Degassing by decompression at "+String(T_C)+" °C", range={0, 90, 0, 1}, autoscale=false, grid=true, legends={"gas volume fraction", "gas mass fraction"}, colors={{28,108,200}, {238,46,47}});
createPlot(id=1, x="p_bar", y={"props.y_g[1]", "props.y_g[2]", "props.y_g[3]", "props.y_g[4]", "props.y_g[5]"}, range={0, 90, 0, 1}, autoscale=false, grid=true, legends={"y_CO2", "y_N2", "y_CH4", "y_H2", "y_H2O"}, subPlot=2, leftTitleType=2, leftTitle="mole fraction", colors={{128,128,128}, {28,108,200}, {255,0,0}, {0,140,72}, {0,0,0}}, thicknesses={0.5, 0.5, 0.5, 0.5, 0.1});
//Plotting over p_bar only works for last simulation
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment