Point sources in CBC
Asked by
Yaakoub El Khamra
I have a general question about point/line/surface sources/sinks in CBC. At the moment I am doing something close to:
class Qw_Expression(
def eval(self, values, x):
c=[0.5, 0.5]
if (CalcDistance2D
return -12.0
Qw = Qw_Expression()
and adding Qw*v*dx in the variational form. How does this compare against Point/PointSource in dolfin? Should I switch to the Point/PointSource class in dolfin? Do I have to do anything special to use it in CBC besides apply it? Also how do I apply a point source to a PDESys?
Slight aside: I can create a similar expression to add line/surface sources/sinks. Is it fine if I do that or should I be doing something else?
Regards
Yaakoub
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- CBC.PDESys Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mikael Mortensen
- Solved:
- Last query:
- Last reply:
To post a message you must log in.