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.

How to assign a 2D random function as porous matrix property (porosity)

Please login with a confirmed email address before reporting spam

Good morning,

I really need your help, because I can't find anything in the help files.
I have a model using the the Brinkman Equations module for 2 dimensional porous media flow.
I want the porosity of the matrix to variate around the mean value of 0.5, so I defined a 2 dimensional random function named rn1 to describe this.

Now my problem is, that I can't define the porosity in the porous matrix properties as this rn function. I suspect, there is some kind of special "term" I have to use.
It would be great if you could help me!

Thank's a lot!

Jaques

4 Replies Last Post 2017年7月4日 GMT-4 09:23

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年7月4日 GMT-4 02:11
It would be great, if someone helps me with this problem. I'm stuck for about 2 days now.
It would be great, if someone helps me with this problem. I'm stuck for about 2 days now.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2013年5月31日 GMT-4 15:05
Hi Jaques,

I have the same exact problem. I'm trying to simulate a random distribution of Quantum Dots in a dielectric material.
It looks like the graphics objects don't want to work with externally defined functions.

Did you ever solve it?
Hi Jaques, I have the same exact problem. I'm trying to simulate a random distribution of Quantum Dots in a dielectric material. It looks like the graphics objects don't want to work with externally defined functions. Did you ever solve it?

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 2017年7月4日 GMT-4 07:17
Hi Tal,

Did you solve the problem?
I met the same problem with now.
Thanks
Hi Tal, Did you solve the problem? I met the same problem with now. Thanks

Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 2017年7月4日 GMT-4 09:23
Hi,

It works, if you call it using "component syntax" in the text field for a user-defined porosity, such as

comp1.rn1(x[1/m],y[1/m])

if you have added a Random function called rn1 in Component 1 (comp1). The [1/m] syntax is used to make the input arguments dimensionless and hence avoid a warning about an unexpected unit of input.

Best regards,
Magnus Ringh, COMSOL
Hi, It works, if you call it using "component syntax" in the text field for a user-defined porosity, such as comp1.rn1(x[1/m],y[1/m]) if you have added a Random function called rn1 in Component 1 (comp1). The [1/m] syntax is used to make the input arguments dimensionless and hence avoid a warning about an unexpected unit of input. Best regards, Magnus Ringh, COMSOL

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.