0
$\begingroup$

I'm interested in modelling the length of a rod as it's gradually heated up and shrinks in length and gets more dense, the rod is porous, and therefore compressible, and the density is variable Suppose I'm considering the conservation of mass: $$\frac{\partial\rho}{\partial t}+\frac{\partial}{\partial x}(\rho u)=0$$ I wish to integrate this equation numerically, to make this easier, I introduce the new coordinates, $t'=t$ and $x'=x/L(t)$ where $L(t)$ is the length of the rod at time $t$. This makes the equation: $$L(t)\frac{\partial\rho}{\partial t'}+x'L'(t)\frac{\partial\rho}{\partial x'}+\frac{\partial}{\partial x'}(\rho u)=0$$ The boundary condition at $x'=0$ isn't an issue but I'm not sure about what boundary condition to use at $x'=1$. Although this isn't the full model, there are equations for both $u$ and temperature, $T$ that I have equations for, but this one is making me scratch my head. The total mass is given by: $$M=\int_{0}^{L(t)}\rho dx$$ Differentiating this shows that $u(t,L(t))=L'(t)$, but I think there us also an issue for the density, $\rho$. Can anyone suggest anything?

$\endgroup$
2
  • $\begingroup$ Why is this rod shrinking? What is the material? $\endgroup$
    – nasu
    Commented Feb 23, 2023 at 16:33
  • $\begingroup$ The rod is porous. It's being sintered. As you heat it up, the sintering process begins and the porosity decreases. $\endgroup$ Commented Mar 23, 2023 at 16:22

1 Answer 1

0
$\begingroup$

There is no material exiting or entering the rod, and so we have the following boundary condition at both ends: $$\frac{\partial }{\partial x}(\rho u)\Bigg|_{x=0,L}=0$$

To deal with the issue at the boundary for the density, we use the approximation: $$f_{i}\approx\frac{1}{2}(f_{i-1}+f_{i+1})$$ That the value of a parameter is approximately equal to the average at either side of it. This applies to the ends, employing ghost cells: $$f_{N}\approx\frac{1}{2}(f_{N-1}+f_{N+1})\quad f_{1}\approx\frac{1}{2}(f_{0}+f_{2})$$ and so we're lead to: $$f_{0}=2f_{1}-f_{2},\quad f_{N+1}=2f_{N}-f_{N-1}$$

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.