Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Results.JointDispl 1

Status
Not open for further replies.

Jonnathan

Civil/Environmental
Feb 2, 2024
2
Hello everybody

I do not know how to use this function:

ret = SapModel.Results.JointDispl("ALL", GroupElm, NumberResults, Obj, Elm, LoadCase, StepType, StepNum, U1, U2, U3, R1, R2, R3)

Could somebody explain the use?

 
Replies continue below

Recommended for you

Hello friend

I have write the code below:

public void JointDisplacement()
{
int numberofresult = 0;
string [] loadCases = Enumerable.Repeat("TH 01", numberofresult).ToArray();
string[] stepTypes = Enumerable.Repeat("Time", numberofresult).ToArray();
double[] stepNumbers = new double[numberofresult];
for (int i = 0; i <= numberofresult - 1 ; i++)
{
stepNumbers = i;
}
string[] elementNames = Enumerable.Repeat("231", numberofresult).ToArray();
string[] objectNames = Enumerable.Repeat("231", numberofresult).ToArray();

double[] U1 = new double[numberofresult];
double[] U2 = new double[numberofresult];
double[] U3 = new double[numberofresult];
double[] R1 = new double[numberofresult];
double[] R2 = new double[numberofresult];
double[] R3 = new double[numberofresult];

ret = SapModel.Results.Setup.DeselectAllCasesAndCombosForOutput();

ret = SapModel.Results.Setup.SetCaseSelectedForOutput("TH 01");

ret = SapModel.Results.JointDispl("231",
eItemTypeElm.Element,
ref numberofresult,
ref objectNames,
ref elementNames,
ref loadCases,
ref stepTypes,
ref stepNumbers,
ref U1,
ref U2,
ref U3,
ref R1,
ref R2,
ref R3);


for (int i = 0; i < numberofresult; i++)
{
Console.WriteLine(U1);
}
Console.ReadKey();

}

1_k6enpk.png


My goal is having the plotted function in a .txt file in order of achivieng a wrote the code.

Any suggestions of how can i achieve that?
 
I have uploaded an example to my github to retrieve time history displacements as well as the support .edb file.


I access the results through the database tables. I did my data retrieval in Python, but plotted in excel. For some reason matplotlib was plotting oddly for me.

timehistvalues_jcxxfg.png


S&T -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor