Skip to content

EhsanGLB/chtNEPCMFoam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chtNEPCMFoam

This is a solver for solid-liquid phase change material written based on foam-extend-4.1.

Mathematical Relationships

$$ \nabla . U = 0 $$

$$ {dU \over dt}+ {(U . \nabla) U} = - {1 \over\rho} \nabla p + \nu \nabla . {\nabla U} + \beta g (T - T_ref) - {Cu \over \rho} {{(1 - \lambda)^2} \over {\lambda^3 + 10^{-3}}} U $$

$$ \rho \left({C_p + h{d\lambda \over dT} }\right) {dT \over dt} + \rho C_p {U . \nabla T} = k {\nabla}^2 T $$

$$ \lambda = 0.5 \ erf \left({4 { {T_s - T_m} \over {T_l - T_s} }}\right) + 0.5 $$

Which $U$, $p$, $T$, $t$, $g$, and $\lambda$ are velocity vector, pressure, temperature, time, gravitational acceleration, and melting fraction, respectively. And $\rho$, $\nu$, $\beta$, $C_p$, $h$, $k$, $T_m$, $T_s$, and $T_l$ are density, kinematic viscosity, thermal expansion coefficient, specific heat capacity, melting enthalpy, thermal conductivity, melting temperature, solidification temperature, and liquidification temperature, respectively.

Installation

It is working on foam-extend-4.1

git clone https://github.com/EhsanGLB/chtNEPCMFoam.git
cd chtNEPCMFoam/chtNEPCMFoam
wmake
cd ../case

Getting Started

  1. First way
blockMEsh
chtNEPCMFoam
  1. Second way
./Allrun

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors