Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

PDE solver with variables at different points

Please login with a confirmed email address before reporting spam

Dear All,

I am trying to solve a PDE where two terms contain variables at different points, something such as:

u"(x) + u'(L-x)=f(x)

This is a sample though, maybe there is no solution to this, but my point is how we can use the function u(x) at different points? The model is 1D with length equal to L.

I appreciate any help,

Best,
Hossein

3 Replies Last Post 15 ago 2014, 12:42 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 15 ago 2014, 05:24 GMT-4
Hello,
That's a non-local PDE. I think on something like this:
f-comp1.at1(L-x,ut)
to be written in the source term of your coefficient-form PDE (of course, you only have to set the term in utt). Note that I have used 'spatial at' operator for dimension 1 (the example you give). Of course, ut is the derivative of u with respect to time at that point.
But I'm not sure if it does what you want, please check if you think it can work.
If that does not work, perhaps you could integrate (in x) twice, and compute the non-local integral of u(L-x) easily by means of integration operator.
Bye.
Jesus.
Hello, That's a non-local PDE. I think on something like this: f-comp1.at1(L-x,ut) to be written in the source term of your coefficient-form PDE (of course, you only have to set the term in utt). Note that I have used 'spatial at' operator for dimension 1 (the example you give). Of course, ut is the derivative of u with respect to time at that point. But I'm not sure if it does what you want, please check if you think it can work. If that does not work, perhaps you could integrate (in x) twice, and compute the non-local integral of u(L-x) easily by means of integration operator. Bye. Jesus.

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 15 ago 2014, 05:27 GMT-4
This expression does what you state:
f=utt-at1(L-x,ut)
'at1(coordinate,expression)' evaluates 'expression' at 'coordinate' in a 1D model. There are similar at2 and at3 functions for 2D and 3D models.
This expression does what you state: f=utt-at1(L-x,ut) 'at1(coordinate,expression)' evaluates 'expression' at 'coordinate' in a 1D model. There are similar at2 and at3 functions for 2D and 3D models.

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 15 ago 2014, 12:42 GMT-4
Thank you guys! Almost solved my problem!
Thank you guys! Almost solved my problem!

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.