Writing Integral with Bessel Function
1 Attachment(s)
Hi,
Bessel function seem to have been implemented in OpenFOAM library. As mentioned in the programmer's guide, Type 1 Bessel function of zeroth order in OF is j0(S) and first order is j1(S). Then how do I write to calculate this bessel function. Can someone please help? All the notations are known but I don't know how to write it in OF. Thanks in advance! |
Try the following:
Code:
Foam::jn(0, s) |
Hi CFD_10,
Thanks. Do you know what is lambda in the equation? All the other notations are process parameters but lambda must come from Bessel function. It is not mentioned in the literature what is lambda. I am completely new to this equation. Thanks again! |
Quote:
What is the reference of that equation? |
Initially developed by the authors in reference
https://link.springer.com/content/pd...BF02815302.pdf It has since been used by several authors like Eq. 32 in https://www.sciencedirect.com/scienc...17931019319295 Eq. 3a in https://www.researchgate.net/publica...ng_arc_welding Regards, |
Quote:
My guess is that is an eigenvalue of the Laplacian operator. In this case, it looks like it has dimension of 1/length. But I think you don't have to care about it since it is just an integration variable. |
You can use your favorite numerical integration method to compute that integral (Simpson, Romberg, Gauss quadratures, etc.).
You have: You can change the limits of the integral to make it easy (over a finite interval): I think you can declare Jze as volScalarField and loop over all the cells, and compute the integral for each cell. That's my opinion take it with a grain of salt. |
Thank You CFD_10. I was able to do it by computing the integral using Trapezoid rule and looping over the entire cell in the domain.
Regards, |
help
Quote:
How many intervals did you use to integrate with the Trapezoid rule? |
All times are GMT -4. The time now is 11:34. |