|
[Sponsors] |
April 7, 2014, 23:05 |
can OpenFOAM calculate definite integral?
|
#1 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18 |
||
April 7, 2014, 23:15 |
|
#2 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13 |
What sort of object is f(e)?
I mean, for example, if phi is a surfaceScalarField and U is a volVectorField etc. |
|
April 7, 2014, 23:21 |
|
#3 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18 |
||
April 8, 2014, 00:03 |
|
#4 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13 |
So I took a few swings at this but I think you're going to wind up with a Gamma function in your integrated quantity here.
http://reference.wolfram.com/mathematica/ref/Gamma.html https://www.wolframalpha.com/input/?...8a%20x%29&lk=2 I'm not sure how you'd want to implement that in OpenFOAM :/ You can presumably get somewhere by just summing up over a set of values of but I don't know how horribly inaccurate that will become. You have all of the fields you're going to need reasonably easily accessible, but I'm not sure how to get a better answer than writing out some sort of for loop, or a functor - which would require you to write a class afaict. |
|
April 8, 2014, 00:05 |
|
#5 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13 |
||
April 8, 2014, 00:17 |
|
#6 | |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18 |
Quote:
Actually Im tring to implant PBM into Foam, the RHS of the equation is luo breakage kernel~. Right now Im stuck here. I will try your loop method and keep this thread update. However, I dont know if it would be accurate, but its a good start I think. Thanks very much. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculate aerodynamic coefficients with openfoam using only opensource programs | Xwang | OpenFOAM | 20 | May 20, 2016 12:26 |
OpenFOAM Foundation releases OpenFOAM 2.2.2 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | October 14, 2013 08:18 |
ESI-OpenCFD Releases OpenFOAM v2.2.0 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 13 | March 30, 2013 17:52 |
[Gmsh] gmsh 2.6.0 conversion to OpenFoam 160 | rosswin | OpenFOAM Meshing & Mesh Conversion | 0 | March 5, 2013 08:34 |
calculate integral in UDF | ypchen | FLUENT | 4 | January 4, 2012 08:53 |