Desperately seeking a fitting function

  • Thread starter Clausius2
  • Start date
  • #1
Clausius2
Science Advisor
Gold Member
1,435
5
I am seeking a function [tex]r=r(\eta)[/tex] for a computational mesh. It has to have the same shape as the one shown in the figure attached. This figure has been achieved via polinomical approximation, but it doesn't give me many chances to change parameters of contractions. Maybe there is an analytical function which can behave as it is shown in the figure.

It has to check:

[tex] r(\eta=0)=0[/tex]
[tex] r'(\eta=0)\sim 0[/tex]
[tex] r(\eta=\eta_o)=1[/tex]
[tex] r'(\eta=\eta_o)\sim 0[/tex]
[tex] r''(\eta=\eta_o)\sim 0[/tex]
[tex] r(\eta=\eta_{max})=r_{max}[/tex]

Do you know some function (apart of a polinomical one) which behaves as the one shown in the figure?. The data is [tex]r_{max},\eta_{max}[/tex] and I must be able to vary successfully [tex] \eta_o[/tex].

Please Help!
Thanks!
 

Attachments

  • Curva.jpg
    Curva.jpg
    9.9 KB · Views: 383

Answers and Replies

  • #2
14,784
12,176
Except from the start, where one could use a trig function, it looks as if ##x^{2n+1}## for some ##n## and appropriately shifted would do the job.
 

Related Threads on Desperately seeking a fitting function

  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
2
Views
2K
Replies
3
Views
11K
  • Last Post
Replies
4
Views
940
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
5
Views
755
Replies
1
Views
4K
  • Last Post
Replies
4
Views
4K
  • Last Post
Replies
3
Views
2K
Top