Commit 87b460de authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[1p][1pnc][vtk] Change pressure to p

parent 8a80d76d
......@@ -36,7 +36,7 @@ public:
template <class VtkOutputModule>
static void init(VtkOutputModule& vtk)
{
vtk.addVolumeVariable([](const auto& volVars){ return volVars.pressure(); }, "pressure");
vtk.addVolumeVariable([](const auto& volVars){ return volVars.pressure(); }, "p");
}
};
......
......@@ -42,7 +42,7 @@ public:
using FluidSystem = typename VolumeVariables::FluidSystem;
using Indices = typename VolumeVariables::Indices;
vtk.addVolumeVariable([](const auto& volVars){ return volVars.pressure(Indices::fluidSystemPhaseIdx); }, "pressure");
vtk.addVolumeVariable([](const auto& volVars){ return volVars.pressure(Indices::fluidSystemPhaseIdx); }, "p");
vtk.addVolumeVariable([](const auto& volVars){ return volVars.density(Indices::fluidSystemPhaseIdx); }, "rho");
vtk.addVolumeVariable([](const auto& volVars){ return volVars.viscosity(Indices::fluidSystemPhaseIdx); }, "mu");
vtk.addVolumeVariable([](const auto& volVars){ return volVars.pressure(Indices::fluidSystemPhaseIdx) - 1e5; }, "delp");
......
......@@ -135,7 +135,7 @@ int main(int argc, char** argv) try
//! write output to vtk
using GridView = typename GET_PROP_TYPE(OnePTypeTag, GridView);
Dune::VTKWriter<GridView> onepWriter(leafGridView);
onepWriter.addCellData(p, "pressure");
onepWriter.addCellData(p, "p");
const auto& k = problemOneP->spatialParams().getKField();
onepWriter.addCellData(k, "permeability");
onepWriter.write("1p");
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="200" NumberOfPoints="402">
<PointData Scalars="pressure" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<PointData Scalars="p" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000
100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000
100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000
......
......@@ -3,7 +3,7 @@
<UnstructuredGrid>
<Piece NumberOfCells="80" NumberOfPoints="162">
<PointData Scalars="pressuere" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
121579 121315 121579 121315 121051 121051 120787 120787 120522 120522 120258 120258
119994 119994 119730 119730 119465 119465 119201 119201 118936 118936 118672 118672
118407 118407 118141 118141 117876 117876 117609 117609 117343 117343 117075 117075
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="200" NumberOfPoints="402">
<CellData Scalars="pressure" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<CellData Scalars="p" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000
100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000
100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="80" NumberOfPoints="162">
<CellData Scalars="pressure" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<CellData Scalars="p" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
121447 121183 120919 120654 120390 120126 119862 119597 119333 119069 118804 118539
118274 118009 117743 117476 117209 116941 116673 116405 116135 115866 115596 115326
115055 114784 114514 114243 113972 113700 113429 113158 112887 112615 112344 112073
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="200" NumberOfPoints="402">
<CellData Scalars="pressure">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<CellData Scalars="p">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000
100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000
100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="80" NumberOfPoints="162">
<CellData Scalars="pressure">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<CellData Scalars="p">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
121447 121183 120919 120654 120390 120126 119862 119597 119333 119069 118804 118539
118274 118009 117743 117476 117209 116941 116673 116405 116135 115866 115596 115326
115055 114784 114514 114243 113972 113700 113429 113158 112887 112615 112344 112073
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="40" NumberOfPoints="63">
<CellData Scalars="pressure" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<CellData Scalars="p" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
197500 192500 187500 182501 177501 172501 167501 162501 157501 152501 147501 142501
137501 132501 127501 122501 117501 112500 107500 102500 197500 192500 187500 182501
177501 172501 167501 162501 157501 152501 147501 142501 137501 132501 127501 122501
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="40" NumberOfPoints="63">
<CellData Scalars="pressure">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<CellData Scalars="p">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
197500 192500 187500 182501 177501 172501 167501 162501 157501 152501 147501 142501
137501 132501 127501 122501 117501 112500 107500 102500 197500 192500 187500 182501
177501 172501 167501 162501 157501 152501 147501 142501 137501 132501 127501 122501
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="3638" NumberOfPoints="1915">
<PointData Scalars="pressure">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<PointData Scalars="p">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
105783 104215 104334 139403 140960 140948 102834 142451 127013 128817 127968 128866
127051 128025 139926 138050 138983 134347 132513 133422 105400 107200 106289 132429
134237 133378 112606 110804 111681 118003 119073 117087 119818 118013 119116 138999
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="40" NumberOfPoints="63">
<PointData Scalars="pressure" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<PointData Scalars="p" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
200000 195000 200000 195000 190000 190000 185000 185000 180001 180001 175001 175001
170001 170001 165001 165001 160001 160001 155001 155001 150001 150001 145001 145001
140001 140001 135001 135001 130001 130001 125001 125001 120001 120001 115000 115000
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="40" NumberOfPoints="63">
<CellData Scalars="pressure" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<CellData Scalars="p" Vectors="velocity_w (m/s)">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
197500 192500 187500 182501 177501 172501 167501 162501 157501 152501 147501 142501
137501 132501 127501 122501 117501 112500 107500 102500 197500 192500 187500 182501
177501 172501 167501 162501 157501 152501 147501 142501 137501 132501 127501 122501
......
......@@ -3,7 +3,7 @@
<UnstructuredGrid>
<Piece NumberOfCells="80" NumberOfPoints="162">
<CellData Scalars="p" Vectors="velocity_H2O (m/s)">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
121429 121165 120901 120637 120373 120108 119844 119580 119316 119052 118788 118524
118259 117994 117729 117463 117196 116928 116659 116390 116120 115850 115580 115309
115038 114767 114497 114226 113955 113684 113413 113142 112871 112600 112329 112058
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="10000" NumberOfPoints="10201">
<CellData Scalars="pressure">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<CellData Scalars="p">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
100001 100003 100005 100008 100010 100012 100014 100016 100019 100021 100023 100025
100027 100029 100032 100034 100036 100038 100040 100042 100044 100047 100049 100051
100053 100055 100057 100059 100060 100062 100064 100066 100068 100069 100071 100072
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="100" NumberOfPoints="121">
<PointData Scalars="pressure">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<PointData Scalars="p">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
200000 200000 191207 191581 200000 192887 200000 194783 200000 196179 200000 196611
200000 196179 200000 194783 200000 192887 200000 191581 200000 191207 181806 182275
184427 190784 193272 194034 193272 190784 184427 182275 181806 171621 171876 172210
......
......@@ -2,8 +2,8 @@
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfCells="100" NumberOfPoints="121">
<CellData Scalars="pressure">
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<CellData Scalars="p">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
195910 196468 197745 198513 198838 198838 198513 197745 196468 195910 187172 188685
193744 195981 196839 196839 195981 193744 188685 187172 176921 177358 182672 186426
187727 187727 186426 182672 177358 176921 166234 166361 168478 170921 171947 171947
......
......@@ -16,7 +16,7 @@
730.895 729.151 727.06 724.624 721.845 718.727 715.275 711.496 707.396 702.976 698.225 693.11
687.567 681.467 673.15
</DataArray>
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
102000 101999 102000 101999 101993 101993 101961 101961 101914 101914 101864 101864
101813 101813 101762 101762 101710 101710 101658 101658 101606 101606 101553 101553
101500 101500 101446 101446 101392 101392 101337 101337 101282 101282 101227 101227
......
......@@ -12,7 +12,7 @@
696.425 696.321 696.082 695.697 695.156 694.443 693.541 692.433 691.094 689.498 687.613 685.401
682.817 679.802 676.263 672.217 667.688 662.84 660.326 673.15
</DataArray>
<DataArray type="Float32" Name="pressure" NumberOfComponents="1" format="ascii">
<DataArray type="Float32" Name="p" NumberOfComponents="1" format="ascii">
102000 102001 102002 101987 101950 101903 101854 101805 101755 101704 101652 101600
101548 101494 101440 101385 101329 101273 101216 101158 101100 101041 100981 100921
100860 100799 100738 100676 100614 100551 100489 100426 100364 100302 100240 100178
......
Supports Markdown
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