Hi Nikolai,
this is technically impossible at the moment. The number of components
is used to determine the size of the
primary variable arrays stored in the solution vectors (like ([p, x1,
x2])_i for a 3 component system, where i denotes the index of a degree
of freedom - a cell center for instance). This is all done at compile time.
I'm not sure if the dune solvers we rely on would accept vectors with
variables sizes (that could change on runtime).
Best wishes
Kilian
On 01/21/2019 05:53 PM, Nikolai Andrianov wrote:
Dear DuMuX experts,
Is there a way to set up a variable number of components in an .input
file?
So that the .input file could look like this:
[Components]
NumberOfComponents = 10
Component1.Name = c1
Component1. molarMass = 2e-3
Component2.Name = H20
Component3. molarMass = 18e-3
…
and in my problem.hh file I could refer to components’ properties
using something like FluidSystem::Oil::molarMass().
Thanks,
Nikolai
_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Kilian Weishaupt M.Sc.
Institut für Wasser- und Umweltsystemmodellierung (IWS)
Lehrstuhl für Hydromechanik und Hydrosystemmodellierung
Universität Stuttgart, Pfaffenwaldring 61, 70569 Stuttgart
Email: [email protected]
Telefon: 0049 711 685-60461 ** fax: 0049-711-685-60430
http://www.hydrosys.uni-stuttgart.de
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux