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 
Administrator

> Is it possible to simulate a porous zone in FeaTool?
Yes, FEATool comes with predefined 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 predefined and builtin 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 predefined 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 mfile 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 
This post was updated on .
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? That also sounds very promising. 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 ;)) 
Administrator

Yes, you can define your own PDEs or modify the predefined physics modes, see for example https://www.featool.com/doc/physics.html#phys_ce 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 builtin 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 reimport the solutions for postprocessing/visualization. There is not builtin 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 inhouse expertise to help with optimization of this type) https://www.featool.com/modelshowcase/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/parameterminimizationandpotentialflowoverwingprofile.html https://www.featool.com/tutorial/2019/01/14/inversefeamodelingandparametersearchusingmatlabfunctions.html or just setting up simple parametric runs https://www.featool.com/tutorial/2017/11/13/cadimportandparametricstressdisplacementsimulation https://www.featool.com/tutorial/2015/09/09/parametricstudieswithfeatoolmscriptmodelfiles 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 mscript file. 
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.. Ok But i need to couple Solver like reactingfoam and multiphasefoam.. But than i can directly use Openfoam I think
I know that is any GUI but itâ€™s possible to optimise the Shape in Matlab is saw :) CFD2D 
This post was updated on .
CONTENTS DELETED
The author has deleted this message.

Administrator

Yes, you can couple any number of equations, but be aware that the more couplings you have the more nonlinear the problem might be and become more difficult and take longer to solve. 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 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? 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 
Administrator

Due to MATLAB not being very parallelizable FEATool and the builtin 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 
Free forum by Nabble  Edit this page 