3D-ICE 3.0.0
Macros
macros.h File Reference
#include <math.h>

Go to the source code of this file.

Macros

#define PI   3.14159265358979323846
 
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
 
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define PARALLEL(x, y)   (((x) * (y)) / ((x) + (y)))
 
#define IS_CHANNEL_COLUMN(channel_model, column)
 
#define CCONV_MC_4RM(nchannels, vhc, fr)
 
#define CCONV_MC_2RM(nchannels, vhc, fr, porosity, cell_l, channel_l)
 
#define CCONV_PF(vhc, darcy_velocity, cell_l, cavity_h)
 
#define EFFECTIVE_HTC_PF_INLINE(darcy_velocity)
 
#define EFFECTIVE_HTC_PF_STAGGERED(darcy_velocity)
 
#define FLOW_RATE_FROM_MLMIN_TO_UM3SEC(fr)   (( fr * 1e+12 ) / 60.0)
 
#define FLOW_RATE_FROM_UM3SEC_TO_MLMIN(fr)   (( fr * 60.0 ) / 1e+12)
 
#define POROSITY(diameter, pitch)
 
#define DIAMETER(porosity, pitch)
 

Macro Definition Documentation

◆ CCONV_MC_2RM

#define CCONV_MC_2RM (   nchannels,
  vhc,
  fr,
  porosity,
  cell_l,
  channel_l 
)
Value:
\
((double) ( (vhc * fr * porosity * cell_l) \
/ ( (double) nchannels * 2.0 * channel_l) ))

Returns the C convective term for the 2RM model of microchannels

FlowRatePerChannel [ um3 / sec ] = FlowRate [ um3 / sec ] / #Channels [ ]

CoolantVelocity [ m / sec ] = FlowRatePerChannel [ um3 / sec ] / (CavityHeight * ChannelLength) [ um2 ]

Cconv [ J / ( K . sec) ] = CoolantVHC [ J / ( um3 . K ) ]

  • CoolantVelocity [ m / sec ]
  • ( Cavityheight * CellLength / 2 ) [ um2 ]
  • Porosity [ ] [ J / ( K . sec) ] = [ W / K ]

CoolantVelocity = FlowRate / (#Channels * CavityHeight * ChannelLength)

Cconv = (CoolantVHC * FlowRate * Porosity * CellLength) / (#Channels * 2 * ChannelLength)

Definition at line 158 of file macros.h.

◆ CCONV_MC_4RM

#define CCONV_MC_4RM (   nchannels,
  vhc,
  fr 
)
Value:
\
((double) ((vhc * fr) / ((double) (nchannels * 2.0))))

Returns the C convective term for the 4RM model of microchannels

FlowRatePerChannel [ um3 / sec ] = FlowRate [ um3 / sec ] / #ChannelColumns [ ]

CoolantVelocity [ m / sec ] = FlowRatePerChannel [ um3 / sec ]

  • ( 1 / Ay ) [ 1 / um2 ]

Cconv [ J / ( K . sec) ] = CoolantVHC [ J / ( um3 . K ) ]

  • CoolantVelocity [ m / sec ]
  • ( Ay / 2 ) [ um2 ] [ J / ( K . sec) ] = [ W / K ]

CoolantVelocity = FlowRate / (#ChannelColumns * Ay )

Cconv = (CoolantVHC * FlowRate) / (#ChannelColumns * 2)

Definition at line 129 of file macros.h.

◆ CCONV_PF

#define CCONV_PF (   vhc,
  darcy_velocity,
  cell_l,
  cavity_h 
)
Value:
\
((double) ((vhc * darcy_velocity * cell_l * cavity_h) / 2.0))

Returns the C convective term for the 2RM model of pin fins

Cconv [ J / ( K . sec) ] = CoolantVHC [ J / ( um3 . K ) ]

  • DarcyVelosity [ m / sec ]
  • ( CavityHeight * CellLength / 2 ) [ um2 ]
  • Porosity [ ]

Definition at line 175 of file macros.h.

◆ DIAMETER

#define DIAMETER (   porosity,
  pitch 
)
Value:
\
(sqrt (( (1.0 - porosity) * pitch*pitch * 4.0 ) / PI ))
#define PI
Definition: macros.h:60

Returns the diameter of a 2RM pin fins

Definition at line 251 of file macros.h.

◆ EFFECTIVE_HTC_PF_INLINE

#define EFFECTIVE_HTC_PF_INLINE (   darcy_velocity)
Value:
\
((double) ( 1e-12 \
/ ( 2.527e-05 \
/ pow((darcy_velocity/1e+06 + 1.35), 0.64) + 1.533e-06)))

Returns the Effective HTC for inline pin fins with 2RM model

H_eff_inline = ((2.527E-5 / (DarcyVelosity + 1.35)^0.64 )+1.533E-6)^(-1) * 1E-12

Definition at line 192 of file macros.h.

◆ EFFECTIVE_HTC_PF_STAGGERED

#define EFFECTIVE_HTC_PF_STAGGERED (   darcy_velocity)
Value:
\
((double) ( 1e-12 \
/ ( 2.527e-05 \
/ pow((darcy_velocity/1e+06 + 1.35), 1.52) + 1.533e-06)))

Returns the Effective HTC for staggered pin fins with 2RM model

H_eff_stag = ((2.527E-5 / (DarcyVelosity + 1.35)^1.52 )+1.533E-6)^(-1) * 1E-12

Definition at line 207 of file macros.h.

◆ FLOW_RATE_FROM_MLMIN_TO_UM3SEC

#define FLOW_RATE_FROM_MLMIN_TO_UM3SEC (   fr)    (( fr * 1e+12 ) / 60.0)

Converts the flow rate from $ \frac{ml}{min} $ to $ \frac{\mu m^3}{sec} $

Definition at line 221 of file macros.h.

◆ FLOW_RATE_FROM_UM3SEC_TO_MLMIN

#define FLOW_RATE_FROM_UM3SEC_TO_MLMIN (   fr)    (( fr * 60.0 ) / 1e+12)

Converts the flow rate from $ \frac{\mu m^3}{sec} $ to $ \frac{ml}{min} $

Definition at line 231 of file macros.h.

◆ IS_CHANNEL_COLUMN

#define IS_CHANNEL_COLUMN (   channel_model,
  column 
)
Value:
\
(channel_model == TDICE_CHANNEL_MODEL_MC_4RM ? (column) & 1 : true)
@ TDICE_CHANNEL_MODEL_MC_4RM
Microchannel - 4 Resistors model.
Definition: types.h:348

Returns TRUE if column is the index of a channel column. If channel_model is 4RM, then odd indeces are channel columns. Otherwise, all indexes are channels (2RM microchannel or pin fins).

Definition at line 101 of file macros.h.

◆ MAX

#define MAX (   a,
 
)    (((a) > (b)) ? (a) : (b))

Returns the maximum value between a and b

Definition at line 69 of file macros.h.

◆ MIN

#define MIN (   a,
 
)    (((a) < (b)) ? (a) : (b))

Returns the minimum value between a and b

Definition at line 78 of file macros.h.

◆ PARALLEL

#define PARALLEL (   x,
 
)    (((x) * (y)) / ((x) + (y)))

Returns the equivalent resistance of x and y connected in parallel

Definition at line 88 of file macros.h.

◆ PI

#define PI   3.14159265358979323846

Returns the constant $ \Pi $

Definition at line 60 of file macros.h.

◆ POROSITY

#define POROSITY (   diameter,
  pitch 
)
Value:
\
(1.0 - (PI * diameter * diameter / 4.0) / (pitch * pitch))

Returns the porosity of a 2RM pin fins

Definition at line 240 of file macros.h.