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

Reply via email to