Desperately seeking a fitting function

  • Thread starter Clausius2
  • Start date
  • #1
Clausius2
Science Advisor
Gold Member
1,440
6
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: 415

Answers and Replies

  • #2
fresh_42
Mentor
Insights Author
2021 Award
17,227
17,209
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.
 

Suggested for: Desperately seeking a fitting function

Replies
11
Views
369
  • Last Post
Replies
28
Views
1K
Replies
16
Views
523
  • Last Post
Replies
4
Views
651
Replies
14
Views
435
  • Last Post
Replies
2
Views
544
Replies
12
Views
1K
Replies
10
Views
874
Top