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.

Boundary condition is a PDE, rather than a constant!

Please login with a confirmed email address before reporting spam

Dear all:

In my model for fluid flow in porous media, I want to set gas pressure as boundary condition at one end of the soil specimen. In the experiment, the gas pressure is applied on the specimen by compressing a certain amount of gas, just like a syringe. At the same time the gas will flow through the specimen following Darcy's law.

According to the condition, I derived a differential equation to solve the gas pressure, but I have no ideas how to applied it on the specimen in Comsol. The equation is like: d(PV)=APv, where P is the gas pressure, V is the gas volume, A is the area of the cross-section of the specimen, v is the Darcy's velocity, which is v=k*grad(P). This seems complicated to apply it on the boundary. If you have any ideas or any experience about such a problem, could you please share them with me? I really appreciate your assistance and time.

Thank you!


1 Reply Last Post 2017年3月30日 GMT-4 14:28
COMSOL Moderator

Hello Guanlong Guo

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.


Please login with a confirmed email address before reporting spam

Posted: 7 years ago 2017年3月30日 GMT-4 14:28
Guanlong
I'm not sure if you are still seeking to an answer.
Anyway, I think you need to define a separate differential equation physics which is solved simultaneously with your flow field. For this purpose, you may add a coefficient form PDE to your model and name the variable whatever you want, let's say Pg.
Then add a pressure boundary condition to the flow physics and in the pressure field, type Pg. This should work.
Amin,
Guanlong I'm not sure if you are still seeking to an answer. Anyway, I think you need to define a separate differential equation physics which is solved simultaneously with your flow field. For this purpose, you may add a coefficient form PDE to your model and name the variable whatever you want, let's say Pg. Then add a pressure boundary condition to the flow physics and in the pressure field, type Pg. This should work. Amin,

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.