CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   foam fatal error cannot dereference nullptr at index 1 in range [0,1) (https://www.cfd-online.com/Forums/openfoam/254500-foam-fatal-error-cannot-dereference-nullptr-index-1-range-0-1-a.html)

Ibrahim1 February 15, 2024 00:04

foam fatal error cannot dereference nullptr at index 1 in range [0,1)
 
I was ruuning a case with 2 fluid region, and 2 solid region
Now I have removed one fluid region so my regionproperties file of constant folder changed from

regions
(
fluid (gas1 gas2)
solid (Solid1 Solid2)
);

to

regions
(
fluid (gas1)
solid (Solid1 Solid2)
);
As I run with these condition I gets an error "foam fatal error cannot dereference nullptr at index 1 in range [0,1)"
this is happening as i have removed the gas2 region from region properties of fluid

regions
(
fluid (gas1)
solid (Solid1 Solid2)
);

If i change this to

regions
(
fluid (gas1 gas1)
solid (Solid1 Solid2)
);

its working fine, but it solves gas region twice which is not correct,
Anyone know how to solve such issue
Thanks!


All times are GMT -4. The time now is 07:11.