Modeling a Multi Tubular Membrane Reactor!

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Modeling a Multi Tubular Membrane Reactor!

CFD2D
Hello everybody,

I'm new here in the forum and have been using Matlab for some time and have been using Star CCM+ for a little longer to simulate chemical reactions in fixed beds. Is it possible to simulate a porous zone in FeaTool? Can I add a membrane to it? At Star CCM+, I can simply merge two geometries and define the wall boundary as an interface as a membrane and the region as a porous zone (or two or three regions). It would be good to know whether this also works with FeaTool? Does anyone have any experience?

I also wonder if the FeaTool models are implemented in Simulink? Then you could theoretically simulate a process flow sheet like in Aspen or gPROMS.

Best regards

CFD2D
Reply | Threaded
Open this post in threaded view
|

Re: Modeling a Multi Tubular Membrane Reactor!

Precise Simulation
Administrator
> Is it possible to simulate a porous zone in FeaTool?

Yes, FEATool comes with pre-defined equations for Darcy's Law and Brinkman equations for porous media flow. If your model uses some other PDE for porous media you would have to define this yourself using the Custom Equation physics mode and the FEATool PDE syntax. The available pre-defined and built-in physics modes are listed and clearly defined here

https://www.featool.com/doc/physics.html#phys_modes

> Can I add a membrane to it?

FEATool supports modeling with multiple boundaries and subdomains one of which you could designate as a membrane. As above, how much work you have to do yourself depends on if the equation for your membrane falls within one of the available pre-defined ones or not.

> I also wonder if the FeaTool models are implemented in Simulink?

FEATool models can not directly be loaded in to Simulink and vice versa. However, as FEATool is written in Matlab and models can be exported and run as simple m-file scripts you can write functions to call (and be called from) other Matlab toolboxes (including Simulink). Again there is nothing ready out of the box for this so you would have to do the implementation work yourself. The public FEATool Matlab function API is listed in the link below:

https://www.featool.com/doc/files.html

Reply | Threaded
Open this post in threaded view
|

Re: Modeling a Multi Tubular Membrane Reactor!

CFD2D
This post was updated on .
Precise Simulation wrote
> Is it possible to simulate a porous zone in FeaTool?

Yes, FEATool comes with pre-defined equations for Darcy's Law and Brinkman equations for porous media flow. If your model uses some other PDE for porous media you would have to define this yourself using the Custom Equation physics mode and the FEATool PDE syntax. The available pre-defined and built-in physics modes are listed and clearly defined here

https://www.featool.com/doc/physics.html#phys_modes
That sounds good. I've looked at a few tools and I'm optimistic. I was thinking more of an Ergun equation. But if you can create equations yourself, that's great! Such problems have already been dealt with in OpenFoam and if you can use all OpenFoam solvers, you can also tinker one yourself together. Or do I get the basic concept wrong?
Precise Simulation wrote
> Can I add a membrane to it?

FEATool supports modeling with multiple boundaries and subdomains one of which you could designate as a membrane. As above, how much work you have to do yourself depends on if the equation for your membrane falls within one of the available pre-defined ones or not.
That also sounds very promising.
Precise Simulation wrote
> I also wonder if the FeaTool models are implemented in Simulink?

FEATool models can not directly be loaded in to Simulink and vice versa. However, as FEATool is written in Matlab and models can be exported and run as simple m-file scripts you can write functions to call (and be called from) other Matlab toolboxes (including Simulink). Again there is nothing ready out of the box for this so you would have to do the implementation work yourself. The public FEATool Matlab function API is listed in the link below:

https://www.featool.com/doc/files.html
Ok, so I think its possible to create a whole process flowsheet with multiple parts of models
I saw that you can optimize the geometry in FEATool. For example, I've seen that another software can do this too. I would like to optimize the distance between the tubes in the tube bundle reactor so that the flow of the cooling medium is low, but the conversion of the reaction localizes its optimum. In another software this is only possible in a 2D simulation. In Star CCM + you can do this via the Design Manager. Can such cases also be dealt with in FEATool?

I am currently looking for a suitable CFD software for my PhD that can cover these cases and would not like to spend so much money "for free" now.

Thanks for your help.

CFD2D

PS: Please delete the another post (its written my real name, thanks ;-))
Reply | Threaded
Open this post in threaded view
|

Re: Modeling a Multi Tubular Membrane Reactor!

Precise Simulation
Administrator
CFD2D wrote
I was thinking more of an Ergun equation. But if you can create equations yourself, that's great!
Yes, you can define your own PDEs or modify the pre-defined physics modes, see for example

https://www.featool.com/doc/physics.html#phys_ce

CFD2D wrote
Such problems have already been dealt with in OpenFoam and if you can use all OpenFoam solvers, you can also tinker one yourself together. Or do I get the basic concept wrong?
Currently you can not use _all_ OpenFOAM solvers as it would involve far too much work to write custom interfaces for them all. There are built-in interfaces for laminar and turbulent single phase flow, as well as compressible Euler equations which correspond to the simpleFoam, pimpleFoam, and rhoCentralFoam solvers. If you need to use another solver you could possibly use FEATool to set up/export mesh and case files, run your custom solver externally, and re-import the solutions for postprocessing/visualization.

CFD2D wrote
Ok, so I think its possible to create a whole process flowsheet with multiple parts of models
I saw that you can optimize the geometry in FEATool. I would like to optimize the distance between the tubes in the tube bundle reactor so that the flow of the cooling medium is low, but the conversion of the reaction localizes its optimum. In Star CCM + you can do this via the Design Manager. Can such cases also be dealt with in FEATool?
There is not built-in functionality for optimization, but you can certainly use the FEATool functions with the MATLAB Optimization toolbox as has been done by Prof. Yamazaki (note that there is no in-house expertise to help with optimization of this type)

https://www.featool.com/model-showcase/03_structural_mechanics_07_topology_optimization1

or parameter minimization and root finding with the fminbnd and fzero functions

https://www.featool.com/tutorial/2019/02/11/parameter-minimization-and-potential-flow-over-wing-profile.html
https://www.featool.com/tutorial/2019/01/14/inverse-fea-modeling-and-parameter-search-using-matlab-functions.html

or just setting up simple parametric runs

https://www.featool.com/tutorial/2017/11/13/cad-import-and-parametric-stress-displacement-simulation
https://www.featool.com/tutorial/2015/09/09/parametric-studies-with-featool-m-script-model-files

Note, that there is currently no GUI functionality for setting up and running parametric or optimization studies (like I assume StarCCM+ Design Manager is) so everything would have do be done I m-script file.
Reply | Threaded
Open this post in threaded view
|

Re: Modeling a Multi Tubular Membrane Reactor!

CFD2D
Precise Simulation wrote
CFD2D wrote
I was thinking more of an Ergun equation. But if you can create equations yourself, that's great!
Yes, you can define your own PDEs or modify the pre-defined physics modes, see for example

https://www.featool.com/doc/physics.html#phys_ce
But can i couple more than one Equation? I need ergun for pressure drop.. than i need convection and Diffusion.. than i need NS.. and I have to Custom all Equation about mixing rules and and and..

Precise Simulation wrote
CFD2D wrote
Such problems have already been dealt with in OpenFoam and if you can use all OpenFoam solvers, you can also tinker one yourself together. Or do I get the basic concept wrong?
Currently you can not use _all_ OpenFOAM solvers as it would involve far too much work to write custom interfaces for them all. There are built-in interfaces for laminar and turbulent single phase flow, as well as compressible Euler equations which correspond to the simpleFoam, pimpleFoam, and rhoCentralFoam solvers. If you need to use another solver you could possibly use FEATool to set up/export mesh and case files, run your custom solver externally, and re-import the solutions for postprocessing/visualization.
Ok But i need to couple Solver like reactingfoam and multiphasefoam.. But than i can directly use Openfoam I think

Precise Simulation wrote
CFD2D wrote
Ok, so I think its possible to create a whole process flowsheet with multiple parts of models
I saw that you can optimize the geometry in FEATool. I would like to optimize the distance between the tubes in the tube bundle reactor so that the flow of the cooling medium is low, but the conversion of the reaction localizes its optimum. In Star CCM + you can do this via the Design Manager. Can such cases also be dealt with in FEATool?
There is not built-in functionality for optimization, but you can certainly use the FEATool functions with the MATLAB Optimization toolbox as has been done by Prof. Yamazaki (note that there is no in-house expertise to help with optimization of this type)

https://www.featool.com/model-showcase/03_structural_mechanics_07_topology_optimization1

or parameter minimization and root finding with the fminbnd and fzero functions

https://www.featool.com/tutorial/2019/02/11/parameter-minimization-and-potential-flow-over-wing-profile.html
https://www.featool.com/tutorial/2019/01/14/inverse-fea-modeling-and-parameter-search-using-matlab-functions.html

or just setting up simple parametric runs

https://www.featool.com/tutorial/2017/11/13/cad-import-and-parametric-stress-displacement-simulation
https://www.featool.com/tutorial/2015/09/09/parametric-studies-with-featool-m-script-model-files

Note, that there is currently no GUI functionality for setting up and running parametric or optimization studies (like I assume StarCCM+ Design Manager is) so everything would have do be done I m-script file.


I know that is any GUI but it’s possible to optimise the Shape in Matlab is saw :)

CFD2D
Reply | Threaded
Open this post in threaded view
|

Re: Modeling a Multi Tubular Membrane Reactor!

CFD2D
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Modeling a Multi Tubular Membrane Reactor!

Precise Simulation
Administrator
CFD2D wrote
 But can i couple more than one Equation? I need ergun for pressure drop.. than i need convection and Diffusion.. than i need NS.. and I have to Custom all Equation about mixing rules and and and..
Yes, you can couple any number of equations, but be aware that the more couplings you have the more non-linear the problem might be and become more difficult and take longer to solve.

CFD2D wrote
Ok But i need to couple Solver like reactingfoam and multiphasefoam.. But than i can directly use
Openfoam I think
The reactingfoam and multiphasefoam OpenFOAM solvers are not available, but you could maybe use the GUI to set up and export mesh and case files

https://www.featool.com/doc/openfoam.html#of_edit
Reply | Threaded
Open this post in threaded view
|

Re: Modeling a Multi Tubular Membrane Reactor!

CFD2D
Precise Simulation wrote
CFD2D wrote
 But can i couple more than one Equation? I need ergun for pressure drop.. than i need convection and Diffusion.. than i need NS.. and I have to Custom all Equation about mixing rules and and and..
Yes, you can couple any number of equations, but be aware that the more couplings you have the more non-linear the problem might be and become more difficult and take longer to solve.
I have 48 cores and i have some time for do this :-)
But than I will need another solver for example to solve my membran probem.. is it possible to run a simulation on variable Cores?

Precise Simulation wrote
CFD2D wrote
Ok But i need to couple Solver like reactingfoam and multiphasefoam.. But than i can directly use
Openfoam I think
The reactingfoam and multiphasefoam OpenFOAM solvers are not available, but you could maybe use the GUI to set up and export mesh and case files

https://www.featool.com/doc/openfoam.html#of_edit
I read this fast but I understood that i can export my FEA Simulation to run it in Openfoam with the Openfoam Solver? But than maybe its better to use directly OpenFoam? Hmmm
If FEA implement all OpenFoam Solver and if it possible to couple the Solver than FEATool I think one of the best CFD Software.. I have a vision :-D

CFD2D
Reply | Threaded
Open this post in threaded view
|

Re: Modeling a Multi Tubular Membrane Reactor!

Precise Simulation
Administrator
CFD2D wrote
I have 48 cores and i have some time for do this :-)
But than I will need another solver for example to solve my membran probem.. is it possible to run a simulation on variable Cores?
Due to MATLAB not being very parallelizable FEATool and the built-in solvers only run in serial mode. But you can directly convert FEATool models to FEniCS FEA models which was designed around MPI parallelization so you can solve multiphysics models using FEniCS in parallel mode (FEATool and FEniCS uses the same FEM discretization so the solutions should be identical independent of which solver you use).

https://www.featool.com/tags/fenics
Reply | Threaded
Open this post in threaded view
|

Re: Modeling a Multi Tubular Membrane Reactor!

CFD2D
Precise Simulation wrote
CFD2D wrote
I have 48 cores and i have some time for do this :-)
But than I will need another solver for example to solve my membran probem.. is it possible to run a simulation on variable Cores?
Due to MATLAB not being very parallelizable FEATool and the built-in solvers only run in serial mode. But you can directly convert FEATool models to FEniCS FEA models which was designed around MPI parallelization so you can solve multiphysics models using FEniCS in parallel mode (FEATool and FEniCS uses the same FEM discretization so the solutions should be identical independent of which solver you use).

https://www.featool.com/tags/fenics
Hmmm ok but I need my own OpenFoam Solver.. so I think that i cant use FEATool for my cases :-(. I hope in the Future it will have more functionality about the solver