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.

Periodic boundary conditions

Please login with a confirmed email address before reporting spam

Hi,

I'm solving a system of coupled differential equations on a linear mesh with periodic boundary conditions imposed to join the ends.

I am having two problems.

1. I want to define a random spatial distribution as initial condition.

2. I want to apply periodic boundary conditions.

But I am not able to match the two aims.

I try using the MATLAB rand() function to generate randomness, but I am unaware of how to couple this in a functional form with x to lead to a random distribution over the mesh points. After generation of the random distribution I need to ensure the end points match.

Could anyone help me. I am a beginner with COMSOL

Thanks for your help

Sincerely,
More


0 Replies Last Post Oct 29, 2009, 8:34 AM EDT
COMSOL Moderator

Hello More Sushant

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.