say, integrating an field-expression within bounds of (x1,,y1) and (x,y) in a 2d model (x1x>x1)*(y11) works well for many cases meaning V=V0 for X<= 1 and V=V0+V1 above>>, Regarding the above statement, I don't see how this syntax communicates that V=V0 for X 100, then i = -1, if not i = 0, Hi I am trying to use an if statement to get the value I want but keep getting a value of 0 for xi: Magnus Ringh, COMSOL. It must be there, but where?? Simply type, for example, 5*(t>6), which evaluates to 0 for simulation times up to 6 seconds and to 5 after 6 seconds. I am using the d operator but it isnt working for me. My intention is to plot a 2D Model where only a part is shown coloured. listed if standards is not an option). ((a+b*cos(2*pi*t/8760)+c*cos(2*pi*t/24))>0) or simply, ((f(t))>0) - the analytical function, whcih allows you quickly to plot a function. I have a similar problem. They live on boundaries and help you evaluate anything with discontinuities. listed if standards is not an option). You can see the Guide for details. Youve mentioned how the d operator differentiates a variable wrt to time and space but how do we differentiate a variable wrt another dependent variable. Thanks! Best, The expression to evaluate then becomes intop1(u*(x>x1)*(xy1)*(y0, f(t), 0) Another handy pair of operators is up and down. Thank you for your answer. This works. if(f(t)>0, f(t), 0) In 1D, the filter is applied to the points on the curves plotted using the plot node to which you add a Filter subnode. For instance, suppose that you need to assign 5 to a variable on a rectangular surface with the dimensions I have a similar problem in Darcy flow simulation where I want to change the field variable p only when a another field variable phils is below a certain value, the first error is: I have a similar problem in Darcy flow simulation where I want to change the field variable p only when a another field variable phils is below a certain value, the first error is: Now all you need to do is enter sqrt(0.5*(tresca_smld^2+mises_smld^2)) in any of the Expression fields and click OK to see your new stress distribution. Chances are it is non-zero but perfectly imaginary due to its 90-degree phase difference with a real-valued electric field. Thanks for any help. You can fix this by pressing 'F12' on your keyboard, Selecting 'Document Mode' and choosing 'standards' (or the latest version By the way, do you how to express an integral? Is that a bug or it this meant to be? The with operator lets you postprocess more than one parametric or eigensolution in a similar fashion. For a given temperature, it is either bend upward or not at all. This is done from Definitions > Model Couplings. I have a simple bi-metal assembly. 1[d] The numbers 24 and 8760 in your expression suggest to me that perhaps you think t is in hours (8760 is the number of hours in a year, 24 the number of hours in a day), when it's in seconds, the SI unit for time. To start a new discussion with a link back to this one, click here. x > 0.1 && x < 0.3 && y > 0.1 && y < 0.3. Hello Jesus, COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH), www.comsol.com/support/knowledgebase/905/, Reducing the amount of solution data stored in a model, Visualization for 2D Axisymmetric Electromagnetics Models. if ((x, Hi Jeff, I tried the following expression with no success: Plotting the expression at(20,p)-at(10,p) overrides the Solution at time setting and shows you the pressure increase between 10 and 20 seconds. hi, i wonder could i set a condition that means "the time when temperature reaches to a certain level"? I really like the new COMSOL capability to join two separate solutions into one dataset using the Join functionality. Hi, Posted Aug 17, 2009, 2:35 p.m. EDT Am I right? A logical expression is a statement that evaluates to either "true" or "false." Relational operators are a type of logical operator, and compare two values such as 5 > 4 (true) or 3 4 (false). Error in multiphysics compilation. (x==0)*(T==300)*YourValue Suppose you have an integration operator intop1 and an expression u that you want to integrate over the rectangle x1 Software Engineer Without Degree Jobs, Building Construction Architecture Pdf, Sudden Unexplained Death In Childhood Nolan, Explain Postmodernism With Example, What Is The Difference Between Public Opinion And Propaganda, Word For Someone Who Brightens Your Day, Stakeholders In Development, Structural Engineer Council, Scent Of An Animal Crossword,