- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How is the Dirac Delta Function expressed in visual fortran?
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why do you need it in Fortran? Dirac Delta funtion has no sense inmachine ariphmetic, becausethere is no pointinprecise comparison of floating point numbers and its definition from integration point of view is also meaningless in this case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your prompt reply.
I'm solving the 2D Helmholtz problem on a Cartesian plane. u''(x,y)+q*u(x,y)=f(x,y)
Above governing equation, f(x,y) is external or internal source and Dirac Delta Function.
I want to compare analytical solution with numerical solution.
I have analytical solution.
To obtain numerical solution, Dirac Delta Funtion code is needed.
I know the function can not be expressed directly.
So, in detail, my question is how is the approximated expression of Dirac Delta Function.
Thank you in advance
Soogeun Kim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Am I right that you set delta function as rhs of your Helmholtz equation? And you have solver that provide solution of your problem as smooth function of (x,y)?
With best regards,
Alexander Kalinkin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A general purpose PDE solver is usually not designed to model singularities. When a discretized version of the PDE is solved, near the singularity the solution will be sensitive to the fineness of the mesh in the neighborhood. Some FEM solvers have special elements (e.g. "crack" elements) that patch a local mathematical solution near the singularity to the smooth, bounded, solution away from the singularity.
Singularities make for beautiful mathematical solutions. They are physically incorrect and numerically intractable. It is quite unreasonable to expect a general purpose language such as Fortran to have special features to treat singularities.
Singularities make for beautiful mathematical solutions. They are physically incorrect and numerically intractable. It is quite unreasonable to expect a general purpose language such as Fortran to have special features to treat singularities.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page