Conditional solving of transport equations
Hi
I have seen some posts on conditional solving of transport equation.Many posts mentioned the use of interfoam solver. But I am not clear how this can be done. I have the following transport equation Code:
fvScalarMatrix TsEqn I want to solve only in a region where solid is present(in the same mesh). I have another volume scalar field solid which has the value of 1 within the solid region and which has the value of 0 when there are no solids. I used icoFoam solver to develop the equation. How can I solve the above TsEqn within the solid region(solid=1). Thanking You Upuli |
Hi Upuli,
Isn't the solution identical to the one in this post: https://www.cfd-online.com/Forums/op...ity-value.html i.e., removing elements from the fvMatrix based on the value taken by the scalarField that is marking fluid and solid regions. Thanks, Vince |
Hi
Thank you verymuch. It is same as the thread you mentioned. I will try it. But I am also curious on how this is done in InterFoam solver. There is a thread on that https://www.cfd-online.com/Forums/op...-equation.html. But it is not clear to me. |
Hi
My solids field is moving along x direction at a constant velocity. I used the below code to solve the TsEqn within the solid field and it doesnot seem to be move when the solid field move in the x direction. Code:
DynamicList<label> removedCellsFromMatrix; |
All times are GMT -4. The time now is 06:07. |