Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Custom density of water - rho(time)

Please login with a confirmed email address before reporting spam

Hello everyone,

I'm using Comsol 3.5a. Is it possible to define a time dependent density also at steady-state (chemical engineering module-->momentum transport-->laminar flow-->incompressible Navier-Stokes)? For example, if I define (in expressions--> subdomain expressions):

rho=(1+exp(-t/1[s]))[kg/m^3]

I'll expect that, at steady state (t=+infinity), Comsol'll give me rho=1.

Thank you so much for your time.



2 Replies Last Post 27 nov 2017, 11:18 GMT-5
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 27 nov 2017, 08:23 GMT-5
Updated: 7 years ago 27 nov 2017, 08:31 GMT-5

Hello Federica,

In a steady-state analysis, t does not take the value + infinity. You could assign t=some large number by defining it as a parameter, but it would just be easier to simply replace your expression that depends on t with the value you want. BTW, rho for water should be close to 1000[kg/m^3]¸ not 1[kg/m^3].

Best,

Jeff

-------------------
Jeff Hiller
Hello Federica, In a steady-state analysis, t does not take the value + infinity. You could assign t=some large number by defining it as a parameter, but it would just be easier to simply replace your expression that depends on t with the value you want. BTW, rho for water should be close to 1000[kg/m^3]¸ not 1[kg/m^3]. Best, Jeff

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 27 nov 2017, 11:18 GMT-5

Thank you so much Jeff.

Thank you so much Jeff.

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.