๐Ÿ’ป Fortran Source Code Library

We currently offer 172 open-source, production-grade Fortran codes for offline testing. Run calculations locally on your own machine, view code structure, read technical explanations, and download compilation packages including sample input files.

Thermal Insulation Thickness

Core Numerical Engine in Fortran 90 โ€ข 26 total downloads

insulation_thickness.f90
! Error: Source file insulation_thickness.f90 not found on server.

Solver Description

Optimize pipe insulation thickness to meet heat loss targets, outer surface temperature limits, or minimize total annual insulation and heat loss costs.

Key Numerical Methods & Architecture

  • Input Redirection: Reads parameters sequentially from standard input (`stdin`) using Fortran sequential read (`read(*,*)`), ensuring modular integration.
  • Modular Design: Formulated using pure mathematical routines, separation of equations from output formatting, and precise numerical solvers (e.g. bisection, Newton-Raphson).
  • Standard Compliant: Written in clean, standards-compliant Fortran 90 to ensure cross-compiler compatibility.

๐Ÿ› ๏ธ Local Compilation

To test this code on your machine, compile the source code file(s) using a standard Fortran compiler (e.g., `gfortran`).

Compilation Command:

gfortran -O3 insulation_thickness.f90 -o insulation_thickness

Execution Command:

Execute the program by feeding the sample input file into the program using stdin redirection:

insulation_thickness < input.txt

๐Ÿ“ฅ Downloads & Local Files

Preview of the required input file (input.txt):

! Process Temperature [ร‚ยฐC]\nAmbient Temperature [ร‚ยฐC]\nPipe OD [mm]\nInsulation Type\nConvection h [W/(mร‚ยฒร‚ยทK)]\nPipe OD [mm]\nTarget Value\nEnergy Cost [$/kWh]\nInsulation Cost [$/mร‚ยณ]\nOperating Hours [h/yr]
0.0
! Parameter 2
0.0
! Parameter 3
0.0
! Parameter 4
0.0
! Parameter 5
0.0
! Parameter 6
0.0
! Parameter 7
0.0
! Parameter 8
0.0
! Parameter 9
0.0
! Parameter 10
0.0