Discussion Forum

Subdomain Settings - Equation system

Topics: 3.5a

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

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   13 Replies   Last post: January 10, 2011 9:46am UTC
Leendert van der Tempel

Leendert van der Tempel

September 1, 2010 9:44am UTC

Subdomain Settings - Equation system

When I double Telegraph Equation Model Gallery #28 for voltage and for current,
I notice TWO ways to input Coefficients of the equations that do not necessarily match but may be contradictory:

1 F8 Via Physics - Subdomain settings - Coefficients
2 CTRL+F8 Via Physics - Equation system - Subdomain settings

What is the right or prevalent place?
What is the risk of contradictions between both Coefficient sets?

Attachments:   Spark.mph  

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

Ivar Kjelberg

Ivar Kjelberg
Moderator

September 1, 2010 12:19pm UTC in response to Leendert van der Tempel

Re: Subdomain Settings - Equation system

Hi

For me I understand this that they are the same but you are at two different levels of COMSOL interiours:

Normal user entry is your:
1 F8 Via Physics - Subdomain settings - Coefficients
Because her you input your values and COMSOL has strict rules (physics/application mode rules) how to handle them and how to adapt the equations when you change physics settings

One level deeper is your:
2 CTRL+F8 Via Physics - Equation system - Subdomain settings
COMSOl will "lock" the equations you touch because your are "below" its "physics /application mode interpreter and you can do things that COMSOL cannot link to the physics, so it cannot adapt or change it. You are at the raw equation level.
You can always reset the equations to the COMSOL default (this level is also awailable in V4, turn on "lower node level" by "options preferences equations")
I use this level typically in structural to disable some DoFs in the default weak equations for special load cases, but this can apply to any physics/application mode.

Conclusion: use 1) for normal work, use 2) to understand the deeper functioning, to search for internal variable names (unfortunately the sort column does not work, neither the cut/copy names, would be nice ;), or to really tweak the physics equations

Comsol is really applying physics fully out, that's why I'm having so fun Comsoling, hope you too
--
Good luck
Ivar


--
Good luck
Ivar

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

Leendert van der Tempel

Leendert van der Tempel

September 1, 2010 1:59pm UTC in response to Ivar Kjelberg

Re: Subdomain Settings - Equation system

Thank you Ivar for your explanation.
I now find out that option 1 fills most of what you see in option 2, and that I can overwrite or complete it using option 2.
Fine.
My next question then is:
How to impose correctly a resistor boundary condition V=I*R ?

1 The paper of Shmelev 2005 suggests to put -V+R*I as r-coefficient without mentioning the h-coefficient. If h =1 this seems wrong, or should h=0?
2 Using option 1 : Put for the voltage h=1 and r=I*R and for the current h=1 and r=V/R
3 Using option 2 : Put a h-matrix [0 0] [-1/R 1] and a r-vector [0] [0] ??

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

Ivar Kjelberg

Ivar Kjelberg
Moderator

September 1, 2010 10:03pm UTC in response to Leendert van der Tempel

Re: Subdomain Settings - Equation system

Hi

as I do not have access to COMSOL from where I'm just now, I cannot check, but from memory: 2 and 3 should be the same, the easiest is to fill in your case 2, and "apply" then go to the "physics equation settings ..." and check what COMSOL has defined as h&r

From my earlier reply what you fill in under "F8" (higher normal user level) will analyse and fill in the values under "CNTRL-F8" (lower level) while the opposite is not true

Now imposing relations on boundaries can be done in different ways, and which depends aso on the dependent variables you have and what equation(s) you want. You can also define your own variables and impose combination of these. (i.e. see the example of applying a moment on an axis on the structural v3.5a doc)

--
Good luck
Ivar

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

LE HUY TOAN

LE HUY TOAN

January 4, 2011 12:40am UTC in response to Ivar Kjelberg

Re: Subdomain Settings - Equation system

Hi,

Actually, i treat a structural problem where the equation of mouvement is general. The components of tensor of stiffness depend on spacials variables. So the physic of material is changed (properties of material depend on coordinates).

I add these equations in Physics - Equation system - Subdomain settings but i see that it don't work. I must always define the material like in library. So how i can active my equations?

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

Ivar Kjelberg

Ivar Kjelberg
Moderator

January 4, 2011 10:04am UTC in response to LE HUY TOAN

Re: Subdomain Settings - Equation system

Hi

in which version, 3.5 ?

in v4.1 I can easily write for the Young modulus

E = (0.1+Param*1*(Len-y[1/m]))*1E9[Pa]

and do a param sweep from 0 to 1 and see that by Len long solid beam deflects differently, so my E is E(y) jsut by writing out he equation

--
Good luck
Ivar

Attachments:   varEbeamv41_1ikj.mph  

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

LE HUY TOAN

LE HUY TOAN

January 4, 2011 1:51pm UTC in response to Ivar Kjelberg

Re: Subdomain Settings - Equation system

hi,

thank u for your fast answer.
Your material is always elastic isotropic where properties of material is characteristic by E and v. If it is anisotropic, how can i define it?

In fact, my equation of movement is written as:

nabla x (-c nabla x u) + beta nabla x u = 0

where u is vector of displacement, c and beta depend on z.

I can write it in subdomain setting but i d'ont understand why it isn't actived in computing?

-------
Toan

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

Ivar Kjelberg

Ivar Kjelberg
Moderator

January 4, 2011 8:06pm UTC in response to LE HUY TOAN

Re: Subdomain Settings - Equation system

Hi

Indeed I did no switch on the anisotropic elastic material proerties in the linear elastic node, because then I need to define the full tensor.
But there is a line in the GUI node to select "isotropic", "orthotropic" or fully "anisotropic" material, and then if you select "user defined" you can set up the full tensor, with equations at your will. Note it's limited to the default cartesian coordinate, so you must take care of any coordinate transforms yourself

--
Good luck
Ivar

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

LE HUY TOAN

LE HUY TOAN

January 5, 2011 9:54am UTC in response to Ivar Kjelberg

Re: Subdomain Settings - Equation system

thank u very much

Toan

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

Leendert van der Tempel

Leendert van der Tempel

January 6, 2011 8:28am UTC in response to Ivar Kjelberg

Re: Subdomain Settings - Equation system

BOUNDARY CONDITION IMPLEMENTATION
Ivar's two suggestions to implement the resistance boundary condition are indeed equivalent; the easiest is to fill in the first:
• Via Physics - Subdomain settings -Coefficients (F8) put
for the voltage h=1 and r=I*Rs
for the current h=1 and r=V/Rs where Rs is the closing spark resistance
• Via Physics - Equation system - Subdomain settings (Ctrl+F8) put
h=[[1 -Rs] [-1/Rs 1]] and r=[[0] [0]]

PROBLEM WITH TELEGRAPHER'S EQUATION AND SOLUTION
However no boundary condition imposes the telegrapher’s equations there, hence the telegrapher equations are violated if the closing spark resistance is time dependent.
Impose similarly the telegrapher’s equation 2pi ri·dV/dr = µl·dI/dt+R#·I at the inner boundary
via Physics - Equation system - Boundary settings (Ctrl+F8) put:
q=[[0 -R#/2pi ri] [0 0]] and g=[[µlIt#/2pi ri] [0]] and h=[[1 -Rs] [-1/Rs 1]] and r=[[0] [0]]

REMAINING PROBLEM
The other telegrapher's equation is not imposed there, hence violated if the closing spark resistance is time dependent.
It may be imposed similarly, but how to impose it while imposing I=V/Rs when only 2 bc are available in ComSol??

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

LE HUY TOAN

LE HUY TOAN

January 9, 2011 3:01pm UTC in response to Leendert van der Tempel

Re: Subdomain Settings - Equation system

Hi,

Can i define a component of tensor stiffness like: E = int(u,dy) (1)
where u is the displacement on Ox.

And what is the correct expression of (1) which i can add in comsole?

Toan

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

Ivar Kjelberg

Ivar Kjelberg
Moderator

January 10, 2011 8:42am UTC in response to LE HUY TOAN

Re: Subdomain Settings - Equation system

Hi

you can add in complex equations based on integration etc, so long you are not making circular references. But, youoften make the solution highly non-linear, sometimes you must specify it in the solver settings, and take care of scaling manually, but try first with the COMSOl default values, often it detects things Okby itself ;)

For the integration, use the coupling operatos, or create a global expression

--
Good luck
Ivar

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

LE HUY TOAN

LE HUY TOAN

January 10, 2011 9:11am UTC in response to Ivar Kjelberg

Re: Subdomain Settings - Equation system

Hi,


I don't understand why the function int or integration is always "unknown function" when i define the antiderivative of u.

What is the correct syntax?

Best regard

Toan

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

Ivar Kjelberg

Ivar Kjelberg
Moderator

January 10, 2011 9:46am UTC in response to LE HUY TOAN

Re: Subdomain Settings - Equation system

Hi

I'm not sure I understand what you are doing, often its easier to upload a simple model to allow us to better understand

--
Good luck
Ivar

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


Rules and guidelines