Layson
April 30, 2025, 2:51pm
1
I am currently using PreProMax_v2.3.0 to visualize some .inp files set by CGX and encounter the same error, described as the title, so I am reporting it using one .inp file for example.
The .inp file and its include files have been zipped and shared through the link perpendicular-flap.zip . I think it a bug because
*END STEP
looks so normal. Thank you for your advice~
As explained in previous threads (including this recent one: Error and definition lost when import "inp" file that exported by PrePoMax - #4 by Matej ), the .inp file importer is not up-to-date and stays behind the exporter. In this case, the problem is occuring likely because you have a dynamic step defined and support for dynamic analyses was added not so long ago.
Cean
May 1, 2025, 12:11pm
3
I have added support for *DYNAMIC in InpFileReader.cs
else if (keyword == "*DYNAMIC") step = GetDynamicStep(dataSet);
else if (keyword == "*FREQUENCY") step = GetFrequencyStep(dataSet);
GetDynamicStep function is:
private static DynamicStep GetDynamicStep(string[] dataSet)
{
string[] record1 = dataSet[0].Split(_splitterComma, StringSplitOptions.RemoveEmptyEntries);
string[] record2;
DynamicStep DynamicStep = new DynamicStep("Dynamic");
//*DYNAMIC, ALPHA=0.0, DIRECT
//1.E - 2, 5.0
for (int i = 1; i < record1.Length; i++)
{
record2 = record1[i].Split(_splitterEqual, StringSplitOptions.RemoveEmptyEntries);
if (record2.Length == 2)
{
if (record2[0].Trim().ToUpper() == "ALPHA")
{
DynamicStep.Alpha = double.Parse(record2[1]);
}
}
else if (record2.Length == 1)
{
if (record2[0].Trim().ToUpper() == "DIRECT") DynamicStep.Direct = true;
}
}
if (dataSet.Length == 2)
{
record2 = dataSet[1].Split(_splitterComma, StringSplitOptions.RemoveEmptyEntries);
//
if (record2.Length > 0)
{
DynamicStep.InitialTimeIncrement = double.Parse(record2[0]);
DynamicStep.TimePeriod = double.Parse(record2[1]);
}
}
//
return DynamicStep;
}
Matej
May 1, 2025, 3:41pm
5
The Nall is a Calculix built in node set for all nodes. This node set does not exist in PrePoMax.
Cean
May 1, 2025, 10:37pm
6
Does PPM generates a Disp BC for any node set? Need to avoid generating one for Nall.
Cean
May 1, 2025, 10:39pm
7
Nall could be ignored, but shouldn’t be changed to NFIX1.
Matej
May 5, 2025, 1:47pm
8
I do not understand the last two comments.
Thank you for your help. I will try it
Nall is set in all.msh, and not changed to Nfix1. I also ran into such problem.
Cean
May 6, 2025, 10:36pm
11
From This msg. Change to captial is understandable, but to a different name is weird.
Layson
May 7, 2025, 12:51am
13
Using ppm compiled from the original source code didn’t raise such error. It only failed to recognize Nall and set that BC though.
Cean
May 7, 2025, 2:39am
14
Only when you double click the red disp-2 BC. This BC should not be created.
Matej
May 16, 2025, 9:25am
15
I have added support for dynamic step and for node sets defined with *Node keyword. The .inp file you shared can be imported now with no errors.
I will close this topic.
1 Like