|
| 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 SoilThermalConductivityCosenza extends ConductivityEquation{ |
| 33 | + |
| 34 | + public SoilThermalConductivityCosenza(ClosureEquation closureEquation) { |
| 35 | + super(closureEquation); |
| 36 | + // TODO Auto-generated constructor stub |
| 37 | + } |
| 38 | + |
| 39 | + private double thermalConductivityAir = 0.023; |
| 40 | + |
| 41 | + public double k(double x, int id, int element) { |
| 42 | + |
| 43 | + return -9999.0; |
| 44 | + } |
| 45 | + |
| 46 | + |
| 47 | + @Override |
| 48 | + public double k(double x, double y, int id, int element) { |
| 49 | + // TODO Auto-generated method stub |
| 50 | + return Math.pow( (1-super.closureEquation.parameters.thetaS[id])*Math.sqrt(super.closureEquation.parameters.thermalConductivitySoilParticles[id]) + super.closureEquation.f(y, x, id)*Math.sqrt(super.closureEquation.parameters.thermalConductivityWater) + (super.closureEquation.parameters.thetaS[id]-super.closureEquation.f(y, x, id))*Math.sqrt(thermalConductivityAir), 2); |
| 51 | + |
| 52 | + } |
| 53 | + |
| 54 | + |
| 55 | +} |
0 commit comments