Dear Lorenzo,

there are tests where random permeability values are assigned to the cells. See for example
*/test/porousmediumflow/1p/implicit/isothermal/spatialparams.hh*
where gstat ist used to generate a random field which is physically meaningful.

Regards,
Martin

On 4/22/19 5:33 PM, lc wrote:
Dear Dumux developers,


how can I assign a random permeability value for each cell?

I asa thinking something like this but I need to loop over all cell ...

Scalar RandPerm = 0.;
        for (int i = 0; i < dim; i++) {
                RandPerm = rand() % 5 + 98;
                RandPerm *= 9.86923266716E-16;
                K_[i][i] = RandPerm;
                std::cout << K_[i][i] << std::endl;

Kind regards,

Lorenzo

_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to