July 25, 2023 at 3:47 ammmia1SubscriberHiI have generated pipe and elbow .k file using MATLAB. Have some confusion how to calculate the projected area of the element of pipe and elbow. For instance, if water is flowing in Z direction, elements of pipe1 and pipe 3 will not experience any pressure and force, while pipe 2, elbow 1 and elbow 2 will experience water pressure and corresponsidng forces. I was told that I have to calculate projected length and width and multiply to get projected area. This area will be such that when water is flowing in Z direction, corresponding area of pipe 1 and pipe 3 will be zero and there would be area for the remaining parts.My code was as follows:%% element area pipe 1for m = 1:size(element_num_shell_1_1,2) % size(element_num_shell_1_1,2) = 840, total number of elements of pipe 1if mod(m,n_ele_circum-1)~= 0 % n_ele_circum = number of elements around the circumference = 15P1 = node_coord_list(m,[2:4]); %Q1 = node_coord_list(m+1,[2:4]);R1 = node_coord_list(m+(n_ele_circum-1),[2:4]);elseP1 = node_coord_list(m,[2:4]);Q1 = node_coord_list(m-(n_ele_circum-2),[2:4]);R1 = node_coord_list(m+(n_ele_circum-1),[2:4]);endif flow_direction == 1 % flow_direction =1 means flow paralle to + Z axisl = abs(P1(1)-Q1(1)); % lengthw = abs(P1(2)-R1(2)); % widthelseif flow_direction == 2 % flow_direction =2 means flow paralle to + X axisl = abs(P1(3)-Q1(3)); % lengthw = abs(P1(2)-R1(2)); % widthendArea_ele(m) = l*w;endHere, P1, Q1 and R1 are as follows:The problem is that, for pipe 1 and pipe 3, I got zero area, however, for pipe 2 and elbow also I got zero projected area. Can anyone help me in this regards? Thanks.
July 27, 2023 at 12:54 pmFederico Alzamora PrevitaliSubscriber
this seems like a Matlab question. Do you have a Fluids question?
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- License Error
- Error with workbench SceneGraphChart
- Sizing on Ansys Workbench 19.2
- Workbench not opening
- Error: Exception of type ‘Ansys.Fluent.Cortex.Cortex not availableException’ was thrown
- Workbench error
- how to open DesignModeler
- FlexNet Licensing – Not running
- Problem with FlexNet Licensing
- An error occurred when the post processor attempted to load a specific result.
© 2023 Copyright ANSYS, Inc. All rights reserved.