Skip to content

Implementing Convective and Stephan Boltzmann Radiative cooling of a 1D Rod using robin boundary condition. #1076

Answered by guyer
sbtristan98 asked this question in Q&A
Discussion options

You must be logged in to vote
  • You need a variable expression, not a variable with its initial condition set to the expression
    • g = FaceVariable(mesh=mesh, value=hTopSurface*TInfinite + Stephan_Boltzmann_Radiation, rank=0) declares a FaceVariable with the instantaneous value (at time of definition) of hTopSurface*TInfinite + Stephan_Boltzmann_Radiation.
    • g = (hTopSurface*TInfinite + Stephan_Boltzmann_Radiation) * mask declares a variable expression with the value hTopSurface*TInfinite + Stephan_Boltzmann_Radiation that updates whenever its constituents update.
  • Don't assume you know how data is arranged in FiPy. Temperature[-1] is the last value in the Temperature array, but you should not assume that corresponds to t…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sbtristan98
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants