MRFSimpleFoam simulate centrifugal pump
Hi foamers
I meet some questions about simulation of centrifugal pump ,I can not output its head and efficiency. Who's gonna send me this program? thank you jack |
Hello jack,
I do this by using swak4Foam and an the built-in forces function. Once you have installed the swak4Foam add these lines to your controlDict: Code:
libs If you already have already finished you simulation, add the lines above to your controlDict and run one more time-step to get the output. Also, if you do not have swak4Foam or don't want to install it for some reason you could also grep the data from result fields manually or by creating a script. Though, the method above is a much simpler approach. P.S. There might be typos as I did not test it. Also remember to replace the patch names. I hope this helps you, Antti |
Thank you,Antti. I see.
I have some other questions. I want to monitor the inlet and outlet pressure during the simulation. What should I do?May I use "foamCalc"? thank you for much. jack |
Hello jack,
To get proper monitors at every time step you can just change the Himpeller function from the previous post to two separate functions: Code:
Hinlet Another point is that you need to calculate mass averaged value which reduces to volumetric average for incompressible flows which means that you have to combine two different fields which is exactly what the above function does with swak4Foam. Antti |
Hi Antti,
I am using swak4Foam,thank you for your help! Jack |
Hi,
is it possible to use swak4foam also for taking the flow rate through a ggi patch and through a desired section? Thank you |
Hi saleriCAE,
Although this is a bit off-topic I will give you a simple answer. I assume that by 'taking the flow rate' you mean monitoring the flow rate through a certain patch. If so, yes, it is possible and very simple. swak4Foam is a very useful tool to learn that makes implementing all kinds of monitors possible. You could do this for example with this function: Code:
Qmonitor Hope this helps, Antti |
Hi Antti,
thank you for your reply. What if I want to take the flow rate through an arbitrary section of the model? Let us assume I have a pipe from z=0 (patch inlet) to z=100 (patch outlet) and I want to take the flow rate at z=50 (where I have no patch defined). Is it possible with swak4foam? Thank you very much. |
Hello saleriCAE,
yes that is at least somewhat possible. I have done this once over a year ago by creating an stl-surface file and used a swak4Foam function with some modifications. There should be an option that uses face zones/sets, when you would have to define the zone/set, but I am not familiar with it. Other options might exist as well but I haven't used them. Also, unfortunately I cannot remember how to set up the function from the top of my head and I don't have time now to research the issue. I suggest that you search swak4Foam guides and examples, for instance here http://openfoamwiki.net/index.php/Contrib/swak4Foam Antti |
All times are GMT -4. The time now is 14:57. |