does a periodic boundary condition for u implement inflow u (boundary1) = outflow u (boundary2) in newer comsol versions as well? (periodic boundary condition for the flux)

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   8 Replies   Last post: January 19, 2013 11:38pm UTC
Sabine

Sabine

January 17, 2013 7:59pm UTC

does a periodic boundary condition for u implement inflow u (boundary1) = outflow u (boundary2) in newer comsol versions as well? (periodic boundary condition for the flux)

Dear everyone,

I have a question about the implementation of periodic boundary conditions for fluxes, so that the inflow through one boundary equals the outflow through the other. In comsol 3.5, this condition was 'automatically' implemented when chosing periodic boundary conditions for a dependent variable with Neumann boundary conditions (no flux). Is this the same in the newer versions? (And if not, how can i implement this instead? I am working with the matlab live link, but any hint is highly appreciated) I cannot find any information about this neither in the manuals nor in internet ressources, so if you know the answer, PLEASE let me know, it won't take you ong to write a line, but help me a lot :)

All best,
Sabine

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg

January 17, 2013 8:20pm UTC in response to Sabine

Re: does a periodic boundary condition for u implement inflow u (boundary1) = outflow u (boundary2) in newer comsol versions as well? (periodic boundary condition for the flux)

Hi

check the "equation" tab of your periodic boundary condition node, for me it's written out fully thereunder (the tab is closed by default, except if you have enabled the default showin of the equations).
I find it useful to regularly check the equations it helps understanding whree you are and what you need to do, possibly help you identify errors in solvers, particularly for multi-physics since all physics do not accept all solver combinations

--
Good luck
Ivar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Sabine

Sabine

January 18, 2013 9:41am UTC in response to Ivar Kjelberg

Re: does a periodic boundary condition for u implement inflow u (boundary1) = outflow u (boundary2) in newer comsol versions as well? (periodic boundary condition for the flux)

Hey Ivar and everybody,
thx for the reply. I had checked the equation view, but there it says only that the continuity or antiperiodicity condition, respectively, corresponds to var_source=+/- var_destination -- thats clear so far, but does not help me in knowing about any consequences for the flux of var or how to implement inflow=outflow if it is not already included :(
Sabine

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg

January 18, 2013 9:55am UTC in response to Sabine

Re: does a periodic boundary condition for u implement inflow u (boundary1) = outflow u (boundary2) in newer comsol versions as well? (periodic boundary condition for the flux)

Here is what I see

--
Good luck
Ivar

Attachments:   Capture.JPG  

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Sabine

Sabine

January 18, 2013 10:03am UTC in response to Ivar Kjelberg

Re: does a periodic boundary condition for u implement inflow u (boundary1) = outflow u (boundary2) in newer comsol versions as well? (periodic boundary condition for the flux)

Ah, ok, but youre using the fluid flow physics! We have it as well, but so far I have my problem implemented in the PDE mode and are generally quite happy with it. And there only usource=udestination appears as equation, so nothing said about the derivatives, right? So in tha PDE mode, I could just define myself a second periodic boundary condition, where I type as expression the flux by hand, no?

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Sabine

Sabine

January 18, 2013 10:14am UTC in response to Sabine

Re: does a periodic boundary condition for u implement inflow u (boundary1) = outflow u (boundary2) in newer comsol versions as well? (periodic boundary condition for the flux)

oh no, I dont know how to do that, since there is no field where to type in the expression, I can only aplly the condition to the dependent variables by klicking on them ->?

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg

January 18, 2013 1:54pm UTC in response to Sabine

Re: does a periodic boundary condition for u implement inflow u (boundary1) = outflow u (boundary2) in newer comsol versions as well? (periodic boundary condition for the flux)

Hi

in PDE view you have the option for continuity or symmetric, and antisymmetric periodic conditions (4.3a), which means you flip the sign of the flow over the boundaries. This does NOT show up in the equation that remains static, but if you dig into the under-laying COMSOL equations you will see that you have a "-u" instead of "+u"

--
Good luck
Ivar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Sabine

Sabine

January 19, 2013 12:45pm UTC in response to Ivar Kjelberg

Re: does a periodic boundary condition for u implement inflow u (boundary1) = outflow u (boundary2) in newer comsol versions as well? (periodic boundary condition for the flux)

hey ivar, last comment to make sure i got you right - so the continuity/antisymmetry setting is for the FLOW, not for the dep. variable, i.e. the u in the equation ("-u" instead of "+u) does NOT stand for the dep. varialbe itself? (but usually this is the meaning of u, no? so it is not very intuitive then :( ) so whether i choose continutity or antisymmetry, for my variable say c it is always c_source=c_destination, but the flow is then flow_c_source=+flow_c_destination (continuity) or flow_c_source=-flow_c_destination (antisymmetry), respectively?
(and do you know if there has been any change in this from v.4.1 to the v.4.3a?)
thanks a lot for your time :) sabine

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg

January 19, 2013 11:38pm UTC in response to Sabine

Re: does a periodic boundary condition for u implement inflow u (boundary1) = outflow u (boundary2) in newer comsol versions as well? (periodic boundary condition for the flux)

Hi

by default COMSOL proposes "u" as dependent variable for a new PDE physics, but depending on how you rename it it might have anoher name.

Turn on the preferences equatin views andlook at the COMSOL equations

I know many persons prefer to click to link in phenomena but stll , often it's worth to take a look at the equations generated

in SPF I agree, you do not have the symmetry/antisymmetry condition as an option, then use rather inlet and outlet and a coupling variable

--
Good luck
Ivar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines