# How to Create Line Location along Elbow Centerline?

• 729 Views
• Last Post 16 April 2018
• Topic Is Solved
Ido Yudhatama posted this 03 April 2018

I'm in the last stage of my last project. For deeper analyze, I have to create the graph which has information erosion rate along 90 degrees elbow centerline like the figure below. I just found Line Location in CFD post which requires two points for creating a line, but it only can create the straight line, not same as the figure below. Thank you in advance

Source: https://doi.org/10.1016/j.wear.2015.04.017

Source: https://doi.org/10.1016/j.jngse.2017.01.034

raul.raghav posted this 03 April 2018

I'll apologize ahead of time if there is an easier way to do this in CFD-Post. But the following method definitely works:

1. In Spaceclaim, create a centerline along the curved path in plan/sketch mode. In the 3D mode, pull the centerline equidistant on both side by a specified distance. Copy the newly created surface into to a new design and save it as a "stl" file.

2. (i) In CFD-Post, Location --> User Surface --> Method: From STL File and locate the file (make sure your units are correct!).

(ii) Now create a contour at the User Surface created and choose the appropriate dimensional variable (X or Y or Z, whichever direction you pulled your geometry in Spaceclaim).

(iii) Now Location --> Polyline --> Method: From Contour with the created contour name with the appropriate contour level.

This is just the method to create the centerline. You would have to write an equation to find the angle theta, so thay you can plot the centerline data with theta (degrees). You can play around with these options and plot all the graphs show above.

Another way is to create a session file with points along the centerline. You can use the session file to insert a certain number of plots along the elbow cenerline and plot it with the angles. This shouldn't be difficult too, but would require some trial and error.

Good luck!

Rahul

Ido Yudhatama posted this 04 April 2018

Dear Rahul,

After applied contour at the User Surface, nothing changed, the image result is like below.

I'm sorry I really beginner in CFD-Post. I don't know which part I've made mistake.

Thank you.

raul.raghav posted this 04 April 2018

No, you are doing fine . Make sure you hide the pipe wall and create the midplane of the actual geometry so it easier to visualize the steps.

1. So in the contour variable, instead of the erosion rate, use the Y (the stl would have been extruded in the Y-axis, rite). Make sure the # of contours is 11.

2. Now in the Polyline, select "Method: From Contour" and the use a contour level of 6, to get the centerline as you want.

If you still have trouble with this step, upload the workbench archive file and I can show these final steps.

Rahul

• Liked by
Ido Yudhatama posted this 04 April 2018

Just like this image below Rahul, I did all your step above.

I can't upload my wbpz file on this site, maybe it's too large (almost 500 MB). So I uploaded to Drive

raul.raghav posted this 06 April 2018

Unfortunately, I don't have access to Ansys v19.0. I've attached a workbench archive file which has the steps I mentioned above. See if you understand by looking at the file I've attached. I'm in the process of installing v19.0, so if you're not able to figure it out I'll look into your files.

Rahul

Attached Files

• Liked by
Raef.Kobeissi posted this 07 April 2018

Ido can you attach your file?

Raef Kobeissi

• Liked by
Ido Yudhatama posted this 08 April 2018

Yes, I think I understand while I looked at your files Rahul, but I still confused why there's different, even though I did the same as you.

Here is the STL file looking,

And this, when I compared to your files.

I'm sorry I'm still not able to figure it out

Ido

Ido Yudhatama posted this 08 April 2018

This is the response when I try to upload my file in this site Raef, so I try to upload the file in Final Project Folder .wbpz

Ido

raul.raghav posted this 08 April 2018

Ido, I'm not sure why it isn't working for you. I'll look into the file you uploaded tomorrow and I'll get back to you about it.

Rahul

• Liked by
Ido Yudhatama posted this 09 April 2018

Thank you very much Rahul, I'll be waiting for you

raul.raghav posted this 09 April 2018

I didn't touch any of your exisiting workbench tabs. I added tabs to show the STL generation in the "Geometry" tab and added a new "Results" tab to show the steps I mentioned above. And when you export the STL file make sure you export it in ASCII format and NOT the default binary formary. See image below.

Hope this helps you. Good luck!

Rahul

• Liked by
Ido Yudhatama posted this 10 April 2018

Thank you Rahul, it works for me. Only change export to ASCII format.

But, It will be better if I could show deeper analysis of erosion analysis in angle theta elbow (0 degrees - 90 degrees) like the image below.

I couldn't find any source or example to do this, ANSYS Help Viewer is too general after I learn from it. Is there any source like book or videos to make this graph Rahul? To find erosion rate in angle theta direction like the image above? Thank you

Ido

raul.raghav posted this 11 April 2018

Ido, it would be a little difficult to explain all the steps involved. In short, I created a session file where I generated 90 points (1 to 91) which represent angles 0-90 deg. I've attached the workbench file with the "Results" tab which has all the information you had requested for. I've also attached a zip file with the session files if you want to edit it and work on other things like instead of 1 deg gap between two points, you can create a 0.5 deg gap between the points. Go through it and let me know if you have any specific questions. Look at the images below to get an idea:

Rahul

Attached Files

• Liked by
Ido Yudhatama posted this 11 April 2018

Thank you Rahul, but I still confuse how you determine the coordinate value of point location very precision along centerline? Is there any calculation or it just using probe to get that coordinate?

And by the way, erosion occurs along the pipe wall. Should I create line again along pipe wall like this below?

raul.raghav posted this 12 April 2018

Hi Ido, you can download the latest workbench archive file here: https://goo.gl/GoA3MN

So I showed the process of creating the innerWall, outerWall and MidLine in a much easier way than what I mentioned earlier. So the basis for creating the lines was the radius of the lines from the center of the curved region (marked in the figure below). Since the global coordinates and the coordinate location of the center of the curved region were different, I used the expression as shown below. It should be straightforward to understand. Attached figures show the process:

You would still have to create the points based on the session file I attached earlier, so that you can extract information in terms of theta. The equations for the coordinates of the points were based on some basic equations which you can see by opening the session file in notepad++ or notepad. For some reason the coordinates are messed up when you double click the Point and look at the information. However, you can probe the value of X/Y/Z on the created the point and it'll show you the right coordinate location. Let me know if this helps.

Rahul

• Liked by
Ido Yudhatama posted this 13 April 2018

Hi Rahul, thank you for your help thus far. I've done with radian expression.

I was looking for a way to create midline, innerline, or outerline as you show above. But sorry for that, I didn't find a way to create that line and geometry of isoclip.

By the way Rahul, your workbench file still same like before, there is no different. Could you please upload your updated workbench file containing new commands to create line and isoclip above? It will be easier for me to understand.

Thank you

raul.raghav posted this 13 April 2018

Ido, the “rad” expression I created was to represent the radius of the curved lines (InnerWall, MidLine and OuterLine) from the center of the curved region as shown in the first image of my previous post. And the workbench file I attached is the updated one. Refer to the figure below:

Rahul

• Liked by
Ido Yudhatama posted this 14 April 2018

Thank you for your help Rahul, I did it. And the rest is about creating the graph. Probably, I will create this in excel. This my workbench file

• Liked by
raul.raghav posted this 16 April 2018

Ido, I'm glad it worked out. Take a look at the session files I had sent you as they will be immensely useful once you understand them. It will make the generation of the points so easy and you can extract the generated point data in a tabular form, using which you can make plots either in Excel or any graphing software. Feel free to ask any questions that you might have. Good luck!

Rahul