Hi Suzon, I’m answering to the mailing list so others can see the answers too. I hope this is ok.
If the vtu file is not too big maybe you can attach it? Paraview might crash if there is NaNs in the file. I’ve also seen issue with locale settings (numbers written German/French style with commas as floating point separators instead of points can also mess up things). Then setting locale to English settings in the terminal should help. Maybe in this case it also helps switching to binary output (not sure). Ascii is the default. Where you have something like vtkWriter.write(timeLoop->time()); You could try vtkWriter.write(timeLoop->time(), Dune::VTK::OutputType::appendedraw); Finally, there can be crashes, if the file is otherwise corrupt, e.g. less numbers written out for cell data than elements, But that would usually only occur if you modified something significant in the way output is written and did something wrong there. Best, Timo ——————————————————— Timo Koch, Postdoctoral MSC fellow (Scientia II fellows) Mechanics section, Department of Mathematics, University of Oslo, Norway https://www.mn.uio.no/math/personer/vit/timokoch/index.html https://timokoch.github.io/ On 2 Aug 2024, at 17:37, Suzon Jammes <[email protected]> wrote: Hi Timo, Thank you for your help. I changed my properties.hh file (see below) and now the code compiles. It also runs correctly but I can’t open the results file in paraview. So there is still a problem somewhere. Paraview crashs when I try to load the results file. Do you know what can create this type of problem ? ————————————————————————————— Suzon Jammes Researcher & Consultant M&U sas, Geology by Research www.mandu-geology.fr<http://www.mandu-geology.fr/> [email protected]<mailto:[email protected]> / +33(0)768692934 Ce message est confidentiel. Son contenu ne représente en aucun cas un engagement de la part de M&U SAS sous reserve de tout accord conclu par écrit avec la société. Toute publication, utilisation ou diffusion, meme partielle, doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce message, merci d'en avertir immédiatement l'expéditeur ou par email :[email protected]<mailto:[email protected]>. This message is confidential. Its contents do not constitute a commitment by M&U SAS except where provided for in a written agreement with the company. Any unauthorised disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient, please notify the sender immediately or with the following email: [email protected]<mailto:[email protected]> On 2 Aug 2024, at 13:15, Timo Koch <[email protected]> wrote: Hi Suzon, the error looks like the program is confusing the Policy and the CO2Tables. Your class “H2ON2O2CO2CH4H2” has three template arguments: Scalar, CO2Tables, Policy. I’m suspecting that when you set the type via the property system you might have forgotten the second argument? How does your FluidSystem property setter look like? That is, what template arguments do you use for the template type H2ON2O2CO2CH4H2? Best wishes Timo ——————————————————— Timo Koch, Postdoctoral MSC fellow (Scientia II fellows) Mechanics section, Department of Mathematics, University of Oslo, Norway https://www.mn.uio.no/math/personer/vit/timokoch/index.html https://timokoch.github.io/ On 2 Aug 2024, at 13:00, Suzon Jammes <[email protected]> wrote: Hi all, I am still working on the exercices with fractures. I made lot of progress since the course and I was able to run 2PNCNI models with 3 components (H20 H2,CH4). I would like to add more components so I used the fluids systems presented in the Ahmadi et al 2021 paper (see below) and available on the dumux repository. I just added H2 in the gas mix. The fluid systems that I am using is attached to this email. When I try to compile I get the following error. In file included from /Users/suzon/Desktop/Numerical_Model/dumux/dumux/dumux/material/fluidsystems/h2on2o2co2ch4h2.hh:41: /Users/suzon/Desktop/Numerical_Model/dumux/dumux/dumux/material/components/co2.hh:160:24: error: no member named 'tabulatedEnthalpy' in 'Dumux::FluidSystems::H2ON2O2CO2CH4H2DefaultPolicy<true>' CO2Tables::tabulatedEnthalpy.at(temperature, pressure); ~~~~~~~~~~~^ /Users/suzon/Desktop/Numerical_Model/dumux/dumux/dumux/material/fluidsystems/h2on2o2co2ch4h2.hh:839:24: note: in instantiation of member function 'Dumux::Components::CO2<double, Dumux::FluidSystems::H2ON2O2CO2CH4H2DefaultPolicy<true>>::gasEnthalpy' requested here * CO2::gasEnthalpy(T,p); ^ /Users/suzon/Desktop/Numerical_Model/dumux/dumux/dumux/material/fluidsystems/base.hh:377:32: note: in instantiation of function template specialization 'Dumux::FluidSystems::H2ON2O2CO2CH4H2<double, Dumux::FluidSystems::H2ON2O2CO2CH4H2DefaultPolicy<true>>::enthalpy<Dumux::CompositionalFluidState<double, Dumux::FluidSystems::H2ON2O2CO2CH4H2<double, Dumux::FluidSystems::H2ON2O2CO2CH4H2DefaultPolicy<true>>>>' requested here return Implementation::enthalpy(fluidState, phaseIdx); ^ /Users/suzon/Desktop/Numerical_Model/dumux/dumux/dumux/porousmediumflow/nonisothermal/volumevariables.hh:355:29: note: in instantiation of function template specialization 'Dumux::FluidSystems::Base<double, Dumux::FluidSystems::H2ON2O2CO2CH4H2<double, Dumux::FluidSystems::H2ON2O2CO2CH4H2DefaultPolicy<true>>>::enthalpy<Dumux::CompositionalFluidState<double, Dumux::FluidSystems::H2ON2O2CO2CH4H2<double, Dumux::FluidSystems::H2ON2O2CO2CH4H2DefaultPolicy<true>>>>' requested here return FluidSystem::enthalpy(fluidState, paramCache, phaseIdx); Do you know, how I can correct this error ? Thank you for your help, Suzon Ahmadi, N., Heck, K., Rolle, M., Helmig, R., & Mosthaf, K. (2021). On multicomponent gas diffusion and coupling concepts for porous media and free flow: a benchmark study. Computational Geosciences, 25, 1493–1507. https://doi.org/10.1007/s10596-021-10057-y————————————————————————————— ————————————————————————————— Suzon Jammes Researcher & Consultant M&U sas, Geology by Research www.mandu-geology.fr [email protected] / +33(0)768692934 Ce message est confidentiel. Son contenu ne représente en aucun cas un engagement de la part de M&U SAS sous reserve de tout accord conclu par écrit avec la société. Toute publication, utilisation ou diffusion, meme partielle, doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce message, merci d'en avertir immédiatement l'expéditeur ou par email :[email protected]. This message is confidential. Its contents do not constitute a commitment by M&U SAS except where provided for in a written agreement with the company. Any unauthorised disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient, please notify the sender immediately or with the following email: [email protected] <h2on2o2co2ch4h2.hh><M&U LOGO-25.tif>
properties.hh
Description: properties.hh
_______________________________________________ DuMux mailing list [email protected] https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
