Dear Felix,

you are using DuMuX 2.12, if I remember correctly. In DuMuX 2.12, you could
overwrite the *preTimeStep()* method in your problem file, see for example *2p/implicit/lensproblem.hh.* In this method,  you could call some*updateLaws(args) *function from the spatialParams class. This function gets all arguments *args*, e.g. time, problem, etc., that are needed to calculate your parameters.

I hope this helps.

Best regards,
Martin




On 03/28/2019 07:50 AM, Felix Feldmann wrote:

Dear DuMux community,

Thank you very much again for helping me on my “GravityAtPosition” problem earlier this year. Unfortunately, I am facing a new problem.

I am trying to invoke a value inside my fluidmatrixinteraction.file which is defined by my problemspatialparams.file

*_Dumux provides several examples in which this is done for (constant) Scalar values. For example:_*

const MaterialLawParams& materialLawParams(const Element &element, const FVElementGeometry &fvGeometry, const int scvIdx) const

    {   const GlobalPosition &globalPos = fvGeometry.subContVol[scvIdx].global;

            if (isOutletMaterial_(globalPos))

             return outletMaterialParams_;

            else

           return coreMaterialParams_; }

*_Where the parameters can be defined as following_*

CorefloodProblemSpatialParams(const GridView &gridView)

        : ParentType(gridView)

    {

                   outletMaterialParams_.settest(1);

                   coreMaterialParams_.settest(2);

    }

This is quite clear to me - However, I am wondering if this also possible for properties which change in time and spatial orientation? In my very specific case, I would liketo invoke a fluid component concentration inside my fluidmatrixinteraction.

Do you have any suggestions?

Thank you and best regards,

Felix



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


--
M.Sc. Martin Schneider
University of Stuttgart
Institute for Modelling Hydraulic and Environmental Systems
Department of Hydromechanics and Modelling of Hydrosystems
Pfaffenwaldring 61
D-70569 Stuttgart
Tel: (+49) 0711/ 685-69159
Fax: (+49) 0711/ 685-60430
E-Mail: [email protected]

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

Reply via email to