=========================================================================
  ThermoFluidCalc — Offline Fortran Execution Guide
=========================================================================

Calculator : 1D Transient Conduction FDM Solver
Category   : Conduction

Files Included:
  - transient_fdm_solver.f90 (Fortran Source Code)
  - input.txt (Pre-configured Sample Input)

-------------------------------------------------------------------------
1. How to Compile
-------------------------------------------------------------------------
Make sure you have a Fortran compiler installed (like gfortran).
Run the following compilation command in your terminal:

  gfortran -O3 transient_fdm_solver.f90 -o fdm_solver_calc

-------------------------------------------------------------------------
2. How to Execute
-------------------------------------------------------------------------
Run the compiled binary and redirect the input.txt file into stdin:

  fdm_solver_calc < input.txt

-------------------------------------------------------------------------
3. Input File Details
-------------------------------------------------------------------------
The input file 'input.txt' contains sequential parameters separated by
newlines. Here is the structure of the included 'input.txt':

  Line 1 (Geometry (1=Slab, 2=Cylinder, 3=Sphere)
): 1
  Line 2 (Length/Radius L [m]
): 0.05
  Line 3 (Number of nodes N
): 21
  Line 4 (Time step dt [s]
): 0.0
  Line 5 (Solver method (1=Explicit, 2=Implicit Euler, 3=Crank-Nicolson)
): 3
  Line 6 (Thermal conductivity k0 [W/m-K]
): 43.0
  Line 7 (Density rho [kg/m3]
): 7850.0
  Line 8 (Specific heat Cp0 [J/kg-K]
): 475.0
  Line 9 (Temp-dependency beta_k [1/K]
): 0.0
  Line 10 (Temp-dependency beta_cp [1/K]
): 0.0
  Line 11 (Left/Inner BC type (1=Temp, 2=Flux, 3=Convection, 4=Insulated)
): 4
  Line 12 (Left BC param 1
): 0.0
  Line 13 (Left BC param 2
): 0.0
  Line 14 (Right/Outer BC type
): 3
  Line 15 (Right BC param 1
): 150.0
  Line 16 (Right BC param 2
): 20.0
  Line 17 (Initial temperature type (1=Uniform, 2=Linear)
): 1
  Line 18 (Initial temp param 1
): 180.0
  Line 19 (Initial temp param 2
): 20.0
  Line 20 (Simulation time t_sim [s]): 600.0

=========================================================================
ThermoFluidCalc — https://thermofluidcalc.com
