CFD modeling to study fluidized bed combustion and gasification