Menu

Executive Programs

Workshops

Projects

Blogs

Careers

Placements

Student Reviews


For Business


More

Academic Training

Informative Articles

Find Jobs

We are Hiring!


All Courses

Choose a category

Mechanical

Electrical

Civil

Computer Science

Electronics

Offline Program

All Courses

All Courses

logo

CHOOSE A CATEGORY

Mechanical

Electrical

Civil

Computer Science

Electronics

Offline Program

Top Job Leading Courses

Automotive

CFD

FEA

Design

MBD

Med Tech

Courses by Software

Design

Solver

Automation

Vehicle Dynamics

CFD Solver

Preprocessor

Courses by Semester

First Year

Second Year

Third Year

Fourth Year

Courses by Domain

Automotive

CFD

Design

FEA

Tool-focused Courses

Design

Solver

Automation

Preprocessor

CFD Solver

Vehicle Dynamics

Machine learning

Machine Learning and AI

POPULAR COURSES

coursePost Graduate Program in Hybrid Electric Vehicle Design and Analysis
coursePost Graduate Program in Computational Fluid Dynamics
coursePost Graduate Program in CAD
coursePost Graduate Program in CAE
coursePost Graduate Program in Manufacturing Design
coursePost Graduate Program in Computational Design and Pre-processing
coursePost Graduate Program in Complete Passenger Car Design & Product Development
Executive Programs
Workshops
For Business

Success Stories

Placements

Student Reviews

More

Projects

Blogs

Academic Training

Find Jobs

Informative Articles

We're Hiring!

phone+91 9342691281Log in
  1. Home/
  2. dinesh reddy/
  3. Week - 9 - Reflecting the geometry

Week - 9 - Reflecting the geometry

Objective: To create a code to reflect elements for similar components and create components for them and properties depending on solver type Procedure: 1. Provide the name for reflected components elements 2. Select source geometry  3. Select reflect to geometry 4. Select fe of components to be reflected 5. get centroid…

    • dinesh reddy

      updated on 22 Mar 2023

    Objective: To create a code to reflect elements for similar components and create components for them and properties depending on solver type

    Procedure:

    1. Provide the name for reflected components elements

    2. Select source geometry 

    3. Select reflect to geometry

    4. Select fe of components to be reflected

    5. get centroid for both geomentry and create mid node of cog

    6. Copy elements for duplicated components

    6. Using mid node creating plane with distance for vector for reflecting elements

     

    CodE:

    proc nastran {n t} {
    *createentity comps includeid=0 name=$n$t
    set cid [hm_getvalue component name=$n$t dataname=id]
    *createentity props cardimage=PSHELL includeid=0 name=$n$t
    set pid [hm_getvalue property name=$n$t dataname=id]
    *setvalue props id=$pid STATUS=1 95=$t
    *setvalue comps id=$cid propertyid={props $pid}
    *autocolor components
    }

    proc radioss {n t} {
    *createentity comps cardimage=part includeid=0 name=$n$t
    set cid [hm_getvalue component name=$n$t dataname=id]
    *createentity props cardimage=P1_SHELL includeid=0 name=$n$t
    set pid [hm_getvalue property name=$n$t dataname=id]
    *setvalue props id=$pid STATUS=1 431=$t
    *setvalue comps id=$cid propertyid={props $pid}
    *autocolor components
    }
    # proc reflect {} {
    set name [hm_getstring components Name "Enter name of destination components for FE"]
    *createmarkpanel components 1 "Select the Source geometry"
    set S_geom [hm_getmark comps 1]
    *createmarkpanel components 1 "Select the destination geometry"
    set D_geom [hm_getmark comps 1]
    *createmarkpanel components 1 "Select the Source FE"
    set S_fea [hm_getmark comps 1]

    set profile [hm_info templatetype]
    foreach i $S_fea {
    set thick [hm_getthickness components $i]
    set old [hm_getcollectorname comps $i]
    set n $name$thick
    $profile $name $thick
    *createmark elements 1 $old
    *copymark elements 1 $n
    *displaycollectorwithfilter comps off $old 1 0
    }
    *createmark comps 2 "displayed"
    *autocolorwithmark comps 2

    *createmark surfaces 1 "bycollector" $S_geom
    set S_cog [hm_getcentroid surfaces 1]
    *createnode [lindex $S_cog 0] [lindex $S_cog 1] [lindex $S_cog 1]
    *createmark node 2 -1
    set S_node [hm_getmark node 2]
    *clearmarkall 1;*clearmarkall 2;
    *createmark surfaces 1 "bycollector" $D_geom
    set D_cog [hm_getcentroid surfaces 1]
    *createnode [lindex $D_cog 0] [lindex $D_cog 1] [lindex $D_cog 1]
    *createmark node 2 -1
    set D_node [hm_getmark node 2]
    *clearmarkall 1;*clearmarkall 2;
    *createnodesbetweennodes $S_node $D_node 1
    *createmark node 2 -1
    set m_node [hm_getmark node 2]
    set m_node_coord [hm_getnodeinitialcoords $m_node]

    set dist [hm_getdistance nodes $S_node $D_node 0]
    *createmark elements 1 "displayed"
    *createplane 1 [lindex $dist 1] [lindex $dist 2] [lindex $dist 3] [lindex $m_node_coord 0 0] [lindex $m_node_coord 0 1] [lindex $m_node_coord 0 2]
    *reflectmark elements 1 1

    *createmark elements 1 "displayed"
    *equivalence elements 1 0.1 1 0 0
    # }

    # reflect;

     Conclusion:

    Reflected components:

     

    Leave a comment

    Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.

    Please  login to add a comment

    Other comments...

    No comments yet!
    Be the first to add a comment

    Read more Projects by dinesh reddy (17)

    Week - 11 - Element quality check

    Objective:

    Objective: To create a code to show the failed elements based on quality criteria Procedure: 1. create tk gui to get the quality criteria 2. using the criteria get failed elements and add temp node to highlight them verifying Code: # need to add a way to display number of failed elementsset a .windowcatch {destroy $a}toplevel…

    calendar

    23 Mar 2023 09:06 AM IST

      Read more

      Week - 9 - Reflecting the geometry

      Objective:

      Objective: To create a code to reflect elements for similar components and create components for them and properties depending on solver type Procedure: 1. Provide the name for reflected components elements 2. Select source geometry  3. Select reflect to geometry 4. Select fe of components to be reflected 5. get centroid…

      calendar

      22 Mar 2023 03:30 PM IST

        Read more

        Week - 10 - Creating the midline and spot weld

        Objective:

        Objective: To create code for creating midline and combine the line. Create spotweld for given set of node Procedure: MIDLINE: 1. Create a set for storing first set of lines 2. Create a set for storing second set of lines 3. creating midline for every pair of lines 4. combining lines to single line Code: *createlistbypathpanel…

        calendar

        18 Mar 2023 05:44 PM IST

          Read more

          Week - 8 - Creating component and property

          Objective:

          Objective: To create code to create collector of component and property with thickness given by user and assign it to component based on solver type Procedure: 1. Get the user input of component type and thickness from tk window 2. create a component and property with user given name and assign property to given component…

          calendar

          18 Mar 2023 01:26 PM IST

            Read more

            Schedule a counselling session

            Please enter your name
            Please enter a valid email
            Please enter a valid number

            Related Courses

            coursecard

            Design loads considered on bridges

            Recently launched

            10 Hours of Content

            coursecard

            Design of Steel Superstructure in Bridges

            Recently launched

            16 Hours of Content

            coursecard

            Design for Manufacturability (DFM)

            Recently launched

            11 Hours of Content

            coursecard

            CATIA for Medical Product Design

            Recently launched

            5 Hours of Content

            coursecardcoursetype

            Accelerated Career Program in Embedded Systems (On-Campus) Courseware Partner: IT-ITes SSC nasscom

            Recently launched

            0 Hours of Content

            Schedule a counselling session

            Please enter your name
            Please enter a valid email
            Please enter a valid number

            logo

            Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.

            https://d27yxarlh48w6q.cloudfront.net/web/v1/images/facebook.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/insta.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/twitter.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/youtube.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/linkedin.svg

            Our Company

            News & EventsBlogCareersGrievance RedressalSkill-Lync ReviewsTermsPrivacy PolicyBecome an Affiliate
            map
            EpowerX Learning Technologies Pvt Ltd.
            4th Floor, BLOCK-B, Velachery - Tambaram Main Rd, Ram Nagar South, Madipakkam, Chennai, Tamil Nadu 600042.
            mail
            info@skill-lync.com
            mail
            ITgrievance@skill-lync.com

            Top Individual Courses

            Computational Combustion Using Python and CanteraIntroduction to Physical Modeling using SimscapeIntroduction to Structural Analysis using ANSYS WorkbenchIntroduction to Structural Analysis using ANSYS Workbench

            Top PG Programs

            Post Graduate Program in Hybrid Electric Vehicle Design and AnalysisPost Graduate Program in Computational Fluid DynamicsPost Graduate Program in CADPost Graduate Program in Electric Vehicle Design & Development

            Skill-Lync Plus

            Executive Program in Electric Vehicle Embedded SoftwareExecutive Program in Electric Vehicle DesignExecutive Program in Cybersecurity

            Trending Blogs

            Heat Transfer Principles in Energy-Efficient Refrigerators and Air Conditioners Advanced Modeling and Result Visualization in Simscape Exploring Simulink and Library Browser in Simscape Advanced Simulink Tools and Libraries in SimscapeExploring Simulink Basics in Simscape

            © 2025 Skill-Lync Inc. All Rights Reserved.

                        Do You Want To Showcase Your Technical Skills?
                        Sign-Up for our projects.