# Discussion Forum

## Solve a PDE with a 1D domain with several equations that must be satisfied

Hi Jeff,

Thank you very much.

Most of the variations of my problem with respect to the one I present are coefficients, with 1 appearing or a constant "beta" appearing as it does not affect the implementation. But it is true that P as a function of c changes enough that we cannot explicitly put c as a function of P and this makes the direct resolution of the PDE impossible.

In summary, my problem, without considering coefficients, would be the following:

Thank you very much!

Best, Andres

5 Replies Last Post 2024/06/24 16:10 GMT-4

Posted: 2 months ago
Updated: 2 months ago

Hi Andres,

It seems that you need at least one more equation to define C.

Also, I note that the initial value of P is inconsistent with the boundary conditions. Are you trying to make P ramp up quickly at one end and drop at the other at t=0 (If so, you could use one of the available functions to achieve that effect)? Something else?

Jeff

-------------------
Jeff Hiller

Posted: 2 months ago
Updated: 2 months ago

Hi Jeff,

Thank you for your quick response.

It is true that I am generating a "shock" by imposing boundary conditions that are different from the initial condition. But this is something I'm looking for. I know that numerically it could cause problems but in that case I will introduce a function to smooth the relationship between the initial condition and the boundary conditions. Anyway, this part doesn't worry me.

What I'm looking for is how to solve this PDE with the multiple functions that establish relationships between variables. The case I present is a very simplified version of my problem. But if there was a way to implement this PDE with these functions in COMSOL, it would be very useful to me. I think the problem is well defined. I'm going to rewrite it trying to make almost everything explicit in P which is the variable I'm trying to resolve:

We substitute U and V into the differential equation and it remains:

Substituting n into the differential equation we get an equation like this:

We almost have the PDE in the form of an explicit expression in P. This way it would be easy to solve it with COMSOL, but the problem is that in my real case I can't really solve for c in terms of P (here I could). And in any case the idea is that given an EDP with a series of functions that establish relationships between variables, how can they be implemented in COMSOL? Jeff, you have to excuse me because I think what caused you confusion is the C that I capitalized. It is incorrect. Thank you very much for your attention and I would appreciate any suggestions and help to solve an equation like this.

Sincerely, Andres

Posted: 2 months ago

Hello Andres,

It seem sthat with the equations you picked, you also have c=n=P/(1+P), and you could indeed express the PDE in terms of P only, leading hopefully to a relatively quick set up and solution in COMSOL.

But since you expressed that your real problem is more complex, perhaps you should discuss it directly - otherwise you may be given advice that does not carry over to your actual problem.

Best,

Jeff

-------------------
Jeff Hiller

Posted: 2 months ago

Hi Jeff,

Thank you very much.

Most of the variations of my problem with respect to the one I present are coefficients, with 1 appearing or a constant "beta" appearing as it does not affect the implementation. But it is true that P as a function of c changes enough that we cannot explicitly put c as a function of P and this makes the direct resolution of the PDE impossible.

In summary, my problem, without considering coefficients, would be the following:

Thank you very much!

Best, Andres

Posted: 1 month ago

Hi,

I'm still not able to solve the problem I started this thread with.

As Jeff recommended, I have outlined the exact problem I want to solve. In this problem the dependent variable is P (physically a pressure), and the independent variables are time (t) and a geometric dimension (z). The problem is 1D.

The boundary and initial conditions would be those indicated.

Everything other than P, z or t are constants that depend on the physics of the problem.

Thank you very much for your help.

All the best Andres