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 Nov 27, 2017, 11:18 a.m. EST
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago Nov 27, 2017, 8:23 a.m. EST
Updated: 7 years ago Nov 27, 2017, 8:31 a.m. EST

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 Nov 27, 2017, 11:18 a.m. EST

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.