|
| 1 | +/* |
| 2 | + * GNU GPL v3 License |
| 3 | + * |
| 4 | + * Copyright 2019 Niccolo` Tubini |
| 5 | + * |
| 6 | + * This program is free software: you can redistribute it and/or modify |
| 7 | + * it under the terms of the GNU General Public License as published by |
| 8 | + * the Free Software Foundation, either version 3 of the License, or |
| 9 | + * (at your option) any later version. |
| 10 | + * |
| 11 | + * This program is distributed in the hope that it will be useful, |
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | + * GNU General Public License for more details. |
| 15 | + * |
| 16 | + * You should have received a copy of the GNU General Public License |
| 17 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | + */ |
| 19 | + |
| 20 | +/** |
| 21 | + * |
| 22 | + */ |
| 23 | +package it.geoframe.blogspot.closureequation.conductivitymodel; |
| 24 | + |
| 25 | +import it.geoframe.blogspot.closureequation.closureequation.ClosureEquation; |
| 26 | +import it.geoframe.blogspot.closureequation.conductivitymodel.ConductivityEquation; |
| 27 | + |
| 28 | +/** |
| 29 | + * @author Niccolo` Tubini |
| 30 | + * |
| 31 | + */ |
| 32 | +public class WaterThermalConductivity extends ConductivityEquation{ |
| 33 | + |
| 34 | + public WaterThermalConductivity(ClosureEquation closureEquation) { |
| 35 | + super(closureEquation); |
| 36 | + // TODO Auto-generated constructor stub |
| 37 | + } |
| 38 | + |
| 39 | + |
| 40 | + public double k(double x, int id, int element) { |
| 41 | + if(x>=273.15) { |
| 42 | + return super.closureEquation.parameters.thermalConductivityWater; |
| 43 | + } else { |
| 44 | + return super.closureEquation.parameters.thermalConductivityIce; |
| 45 | + } |
| 46 | + } |
| 47 | + |
| 48 | + |
| 49 | + @Override |
| 50 | + public double k(double x, double y, int id, int element) { |
| 51 | + // TODO Auto-generated method stub |
| 52 | + if(x>=273.15) { |
| 53 | + return super.closureEquation.parameters.thermalConductivityWater; |
| 54 | + } else { |
| 55 | + return super.closureEquation.parameters.thermalConductivityIce; |
| 56 | + } |
| 57 | + |
| 58 | + } |
| 59 | + |
| 60 | + |
| 61 | +} |
0 commit comments