Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2575
| From | Oliver Ruebenkoenig <ruebenko@wolfram.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: NDSolve with NIntegrate for a PDE where the unknown function is integrated wrt its variables |
| Date | 2011-05-21 10:50 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ir85co$big$1@smc.vnet.net> (permalink) |
On Fri, 20 May 2011, ValeX wrote:
> Hello, i know that this issue has been raised many times, but i cannot
> find an answer in the previous posts.
>
> I tried to reformulate my problem in a simple way:
>
> NDSolve[{Derivative[0, 1][Yg][r, t]==NIntegrate[A[r1] Yg[r1, t] , {r1,
> 1, r}] + B[r]/Yg[r, t], Yg[r, 0] == r}, {Yg}, {r, 1, 10}, {t, 0, 0.3}]
>
> where A and B are some functions, for example:
>
> A[r_] = r^-1; B[r_] = r + 10;
>
> Please help!
>
>
Perhaps like this
A[r_] = r^-1; B[r_] = r + 10;
ClearAll[f]
f[t_, y_, r_?NumberQ] := NIntegrate[A[r1] *y, {r1, 1, r}]
NDSolve[{
Derivative[0, 1][Yg][r, t] == B[r]/Yg[r, t] + f[t, Yg[r, t], r],
Yg[r, 0] == r,
Yg[1, t] == 1,
Yg[10, t] == 10
}, Yg, {r, 1, 10}, {t, 0, 0.3}, SolveDelayed -> True]
You'd need to add the right boundary conditions.
Oliver
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: NDSolve with NIntegrate for a PDE where the unknown function is integrated wrt its variables Oliver Ruebenkoenig <ruebenko@wolfram.com> - 2011-05-21 10:50 +0000
csiph-web