Solve a cubic equation for initial conditions

Please login with a confirmed email address before reporting spam

Hi,

I need to find my initial conditions before I solve my equation. The initial conditions at every point in the grid is found by solving a cubic equation where the coefficients are functions of the spatial coordinates and other known parameters. Is there a way of doing this in COMSOL? Can someone explain this to me clearly and simply?

Thanks in advance. Richard


1 Reply Last Post Aug 2, 2022, 1:52 p.m. EDT
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 week ago Aug 2, 2022, 1:52 p.m. EDT
Updated: 1 week ago Aug 3, 2022, 9:33 a.m. EDT

Hello Richard,

Yes, you can do this in COMSOL. I am attaching to this post a toy model that solves the equation using the "Domain ODEs and DAEs" interface and then uses the solution of that equation as the initial temperature for a transient thermal conduction problem. Note the use of two study steps in the Study branch, each used to solve one equation.

Best,

Jeff

-------------------
Jeff Hiller
Hello Richard, Yes, you can do this in COMSOL. I am attaching to this post a toy model that solves the equation (1+x+y)*u^3=5 using the "Domain ODEs and DAEs" interface and then uses the solution of that equation as the initial temperature for a transient thermal conduction problem. Note the use of two study steps in the Study branch, each used to solve one equation. Best, Jeff

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.