CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

foam fatal error cannot dereference nullptr at index 1 in range [0,1)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2024, 01:04
Default foam fatal error cannot dereference nullptr at index 1 in range [0,1)
  #1
New Member
 
Ibrahim
Join Date: Aug 2023
Posts: 2
Rep Power: 0
Ibrahim1 is on a distinguished road
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!
Ibrahim1 is offline   Reply With Quote

Reply

Tags
openfoam2.1.x


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] Problem with Mesh conversion from FLUENT Meshing to OpenFOAM mn17jyf OpenFOAM Meshing & Mesh Conversion 3 November 1, 2023 10:49
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 08:15
[mesh manipulation] refineMesh Error mohsen.boojari OpenFOAM Meshing & Mesh Conversion 3 March 1, 2018 23:07
Index out of range fatal error Rahand OpenFOAM Programming & Development 1 April 13, 2016 14:35
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27


All times are GMT -4. The time now is 20:54.