Adding source term to existing classic examples

12 views
Skip to first unread message

Kadir Çar

unread,
Sep 25, 2024, 3:29:43 PM9/25/24
to claw-...@googlegroups.com
Dear colleagues, I want to ask about how to add source terms which may or not have the first or second derivatives of the unknown function. For example an existing example of linear advection equation, can I add source terms to classical solutions of the advection,if I can should I add that source terms in setrun.py file or should I create a file like qinit.f90 or how? I gave the linear advection as an example because I also want to add the source term to the amrclaw solution as well? Thanks in advance 

Kyle Mandli

unread,
Sep 28, 2024, 11:09:18 PM9/28/24
to claw-...@googlegroups.com
Source term/operator splitting is what you are looking for.  You can find more about that at

http://www.clawpack.org/wp_algorithms.html#source-terms

and

http://www.clawpack.org/user_routines.html#user-src

Kyle
On Sep 25, 2024 at 3:29 PM -0400, Kadir Çar <kadir...@gmail.com>, wrote:
Dear colleagues, I want to ask about how to add source terms which may or not have the first or second derivatives of the unknown function. For example an existing example of linear advection equation, can I add source terms to classical solutions of the advection,if I can should I add that source terms in setrun.py file or should I create a file like qinit.f90 or how? I gave the linear advection as an example because I also want to add the source term to the amrclaw solution as well? Thanks in advance 

--
You received this message because you are subscribed to the Google Groups "claw-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to claw-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/claw-users/CAPjjdoHFAnMtv%2Bu-k3xGgb9RJu37f7by%2B0sU0EE%3DOBg1VDdSmg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages