Posted on April 27, 2017, by: Ted HarrisBy using the power of ANSYS SpaceClaim to quickly modify geometry, you can set up your surface models in ANSYS Mechanical to easily be connected. Take a look in this How-To slide deck to see how easy it is to extend geometry and intersect surfaces. PADT-ANSYS-Connecting-Shells-SpaceClaim-Mechanical
Posted on April 26, 2017, by: Stephen TheronThe below example demontrates how to couple Flownex and ANSYS mechanical using the Mechanical Generic Interface component.
For those that don't know, Flownex is a thermal-fluid system modeling tool that is great for modeling heat, flow, pressure, etc... in systems. At PADT we often connect it to ANSYS Mechanical to do more detailed component level simulation when needed.Why the need for the link in the fist place?
- It is an automated workflow to couple Flownex and ANSYS through direct mapping of Flownex results (HTC and bulk temperatures) as boundary condition to an ANSYS thermal analysis.
- Represents a conjugate heat transfer model with fluid calculations handled in Flownex
- Allows one to easily/quickly investigate fluid flow and heat transfer properties under a wide range operating conditions.
- External BC
- HTC 100 w/m2K
- Bulk Temperature 22C
- Internal BC
- HTC 1500 w/m2K
- Bulk Temperature will be supplied by Flownex
- Flownex modifies the ds.dat file
- Flownex executes the modified ds.dat file
- The modified ds.dat file generates the d_result.txt file
- Flownex reads the d_result.txt file
- Flownex executes an iteration, using value from d_result.txt
- Repeat untill solutions are converged.
C:\Program Files\ANSYS Inc\v180\ansys\bin\winx64\Ansys180.exe
This is the path to ANSYS executable. Pay particular attention to the version number (eg 180, 172), as this will be different depending on the version of ANSYS you have installed.2) Command line parameters
-b -i ModifiedData.dat -o results
Flownex will launch ANSYS, and execute the ModifiedData.dat Mechanical APDL batch file from the command line, using the above command a detailed description of command line options can be found in another blog post here.3) Project files folder, Data file name and Modified data file name
Here we specify location of the Mechanical APDL batch files4) Inputs Here we will define where in ModifiedData.dat the value from Flownex, fluid temperature in this case, will be placed. This is done by determining what the boundary condition variable and ID is, and finding the prefix before the boundary condition value in the ds.dat file. Typically the variable for temperature is _loadvari and for HTC it is _convari. It is possible to know the boundary condition ID by activating the appearance of Beta options in WB. 5) Outputs
Here we will specify the location of the d_result.txt that ANSYS generates. It should appear in the same folder as the Mechanical APDL batch files after successful execution.Flownex and ANSYS will pass data back and forth every time step of a transient Flownex run. The simulation should continue to run up to, and beyond the point where the Flownex and ANSYS simulation have converged. If we plot out the heat input or temperature value vs time we should be able to visualize convergence, akin to residual plots when running a CFD simulation, and then manually stop the simulation after values have stabilized. Below we increase the fluid inlet temperature form 500˚C to 1000˚C after 10 iterations, and observed a increase in heat flow from ~1.4kW to ~2.8kW.
Making Thermal Contact Conductance a Parameter in ANSYS Mechanical 18.0 and Earlier with an APDL Command Object
Posted on April 6, 2017, by: Ted HarrisA support request from one of our customers recently was for the ability to make Thermal Contact Conductance, which is sort of a reciprocal of thermal resistance at the contact interface, a parameter so it can be varied in a parametric study. Unfortunately, this property of contact regions is not exposed as a parameter in the ANSYS Mechanical window like many other quantities are. Fortunately, with ANSYS there is almost always a way……in this case we use the capability of an APDL (ANSYS Parametric Design Language) command object within ANSYS Mechanical. This allows us to access additional functionality that isn’t exposed in the Mechanical menus. This is a rare occurrence in the recent versions of ANSYS, but I thought this was a good example to explain how it is done including verifying that it works. A key capability is that user-defined parameters within a command object have a ‘magic’ set of parameter names. These names are ARG1, ARG2, ARG3, etc. Eric Miller of PADT explained their use in a good PADT Focus blog posting back in 2013 In this application, we want to be able to vary the value of thermal contact conductance. A low value means less heat will flow across the boundary between parts, while a high value means more heat will flow. The default value is a calculated high value of conductance, meaning there is little to no resistance to heat flow across the contact boundary. In order to make this work, we need to know how the thermal contact conductance is applied. In fact, it is a property of the contact elements. A quick look at the ANSYS Help for the CONTA174 or similar contact elements shows that the 14th field in the Real Constants is the defined value of TCC, the thermal contact conductance. Real Constants are properties of elements that may need to be defined or may be optional values that can be defined. Knowing that TCC is the 14th field in the real constant set, we can now build our APDL command object. This is what the command object looks like, including some explanatory comments. Everything after a “!” is a comment:
Posted on April 4, 2017, by: Clinton SmithOne of the cool new features in CFX 18 is the ability to actively review results while the calculation is running. It is supported for steady state and transient calculations, and now includes support for rotating reference frames as well. What follows are some tutorial-esque steps to get you started. crm_10275-active-solution-monitoring-CFDPostR18
Posted on April 3, 2017, by: Dhruv Bhate, PhDWHY did nature evolve cellular structures? In a previous post, I laid out a structural classification of cellular structures in nature, proposing that they fall into 6 categories. I argued that it is not always apparent to a designer what the best unit cell choice for a given application is. While most mechanical engineers have a feel for what structure to use for high stiffness or energy absorption, we cannot easily address multi-objective problems or apply these to complex geometries with spatially varying requirements (and therefore locally optimum cellular designs). However, nature is full of examples where cellular structures possess multi-objective functionality: bone is one such well-known example. To be able to assign structure to a specific function requires us to connect the two, and to do that, we must identify all the functions in play. In this post, I attempt to do just that and develop a classification of the functions of cellular structures. Any discussion of structure in nature has to contend with a range of drivers and constraints that are typically not part of an engineer's concern. In my discussions with biologists (including my biochemist wife), I quickly run into justified skepticism about whether generalized models associating structure and function can address the diversity and nuance in nature - and I (tend to) agree. However, my attempt here is not to be biologically accurate - it is merely to construct something that is useful and relevant enough for an engineer to use in design. But we must begin with a few caveats to ensure our assessments consider the correct biological context.
1. Uniquely Biological ConsiderationsBefore I attempt to propose a structure-function model, there are some legitimate concerns many have made in the literature that I wish to recap in the context of cellular structures. Three of these in particular are relevant to this discussion and I list them below.
1.1 Design for GrowthEngineers are familiar with "design for manufacturing" where design considers not just the final product but also aspects of its manufacturing, which often place constraints on said design. Nature's "manufacturing" method involves (at the global level of structure), highly complex growth - these natural growth mechanisms have no parallel in most manufacturing processes. Take for example the flower stalk in Fig 1, which is from a Yucca tree that I found in a parking lot in Arizona. At first glance, this looks like a good example of overlapping surfaces, one of the 6 categories of cellular structures I covered before. But when you pause for a moment and query the function of this packing of cells (WHY this shape, size, packing?), you realize there is a powerful growth motive for this design. A few weeks later when I returned to the parking lot, I found many of the Yucca stems simultaneously in various stages of bloom - and captured them in a collage shown in Fig 2. This is a staggering level of structural complexity, including integration with the environment (sunlight, temperature, pollinators) that is both wondrous and for an engineer, very humbling. The lesson here is to recognize growth as a strong driver in every natural structure - the tricky part is determining when the design is constrained by growth as the primary force and when can growth be treated as incidental to achieving an optimum functional objective.
1.2 Multi-functionalityEven setting aside the growth driver mentioned previously, structure in nature is often serving multiple functions at once - and this is true of cellular structures as well. Consider the tessellation of "scutes" on the alligator. If you were tasked with designing armor for a structure, you may be tempted to mimic the alligator skin as shown in Fig. 3. As you begin to study the skin, you see it is comprised of multiple scutes that have varying shape, size and cross-sections - see Fig 4 for a close-up. The pattern varies spatially, but you notice some trends: there exists a pattern on the top but it is different from the sides and the bottom (not pictured here). The only way to make sense of this variation is to ask what functions do these scutes serve? Luckily for us, biologists have given this a great deal of thought and it turns out there are several: bio-protection, thermoregulation, fluid loss mitigation and unrestricted mobility are some of the functions discussed in the literature [1, 2]. So whereas you were initially concerned only with protection (armor), the alligator seeks to accomplish much more - this means the designer either needs to de-confound the various functional aspects spatially and/or expand the search to other examples of natural armor to develop a common principle that emerges independent of multi-functionality specific to each species.
1.3 Sub-Optimal DesignThis is an aspect for which I have not found an example in the field of cellular structures (yet), so I will borrow a well-known (and somewhat controversial) example  to make this point, and that has to do with the giraffe's Recurrent Laryngeal Nerve (RLN), which connects the Vagus Nerve to the larynx as shown in Figure 5, which it is argued, takes an unnecessarily long circuitous route to connect these two points. We know that from a design standpoint, this is sub-optimal because we have an axiom that states the shortest distance between two points is a straight line. And therefore, the long detour the RLN makes in the giraffe's neck must have some other evolutionary and/or developmental basis (fish do not have this detour) . However, in the case of other entities such as the cellular structures we are focusing on, the complexity of the underlying design principles makes it hard to identify cases where nature has found a sub-optimal design space for the function of interest to us, in favor of other pressing needs determined by selection. What is sufficient for the present moment is to appreciate that such cases may exist and to bear them in mind when studying structure in nature.
2. Classifying FunctionsGiven the above challenges, the engineer may well ask: why even consider natural form in making determinations involving the design of engineering structures? The biomimic responds by reminding us that nature has had 3.8 billion years to develop a "design guide" and we would be wise to learn from it. Importantly, natural and engineering structures both exist in the same environment and are subject to identical physics and further, are both often tasked with performing similar functions. In the context of cellular structures, we may thus ask: what are the functions of interest to engineers and designers that nature has addressed through cellular design? Through my reading [1-4], I have compiled the classification of functions in Figure 6, though this is likely to grow over time. This broad classification into structural and transport may seem a little contrived, but it emerges from an analyst's view of the world. There are two reasons why I propose this separation:
- Structural functions involve the spatial allocation of materials in the construction of the cellular structures, while transport functions involve the structure AND some other entity and their interactions (fluid or light for example) - thus additional physics needs to be comprehended for transport functions
- Secondly, structural performance needs to be comprehended independent of any transport function: a cellular structure must retain its integrity over the intended lifetime in addition to performing any additional function
- Foy (1983), The grand design: Form and colour in animals, Prentice-Hall, 1st edition
- Dawkins (2010), The greatest show on earth: the evidence for evolution, Free Press, Reprint of 1st edition
- Gibson, Ashby, Harley (2010), Cellular Materials in Nature and Medicine, Cambridge University Press; 1st edition
- Ashby, Evans, Fleck, Gibson, Hutchinson, Wadley (2000), Metal Foams: A Design Guide, Butterworth-Heinemann, 1st edition
Posted on March 30, 2017, by: Tom ChadwickOccasionally when solid geometry is imported from CAD into ANSYS SpaceClaim the geometry will come in as solids, but when a mesh is generated on the solids the mesh will appear to “leak” into the surrounding space. Below is an assembly that was imported from CAD into SpaceClaim. In the SpaceClaim Structure Window all of the parts can be seen to be solid components. When the mesh is generated in ANSYS Mechanical it appears like the assembly has been successfully meshed. However, when you look at the mesh a little closer, the mesh can be missing from some of the surfaces and not displayed correctly on others. Additionally, if you create a cross-section through the mesh, the mesh on some of the parts will “leak” outside of the part boundaries and will look like the image below. Based on the mesh color, the mesh of the part in the center of the assembly has grown outside of the surfaces of the part. To repair the part you need to go back to SpaceClaim and rebuild it. First you need to hide the rest of the parts. Next, create a sketch plane that passes through the problem part. In the sketch mode create a rectangle that surrounds the part. When you return to 3D mode in SpaceClaim, that rectangle will become a surface that passes through the part. Now use the Pull tool in SpaceClaim to turn that surface into a part that completely surrounds the part to be repaired, making sure to turn on the “No Merge” option for the pull before you begin. After you have pulled the surface into a solid, it should like the image below where the original part is completely buried inside the new part. Now you will use the Combine tool to divide the box with the original part. Select Combine from the Tool Bar, then select the box that you created in the previous step. The cutter will be activated and you will move the cursor around until the original part is highlighted inside the box. Select it with the left mouse button. The Combine tool will then give you the option to select the part of the box that you want to remove. Select the part that surrounds the original part. After it is finished, close the combine tool and the Structure Tree and 3D window will now look like the following: Now move the new solid that was created with the Combine tool into the location of the original part and turn off the original one and re-activate the other parts of the assembly. The assembly and Structure Tree should now look like the pictures below. Now save the project, re-open the meshing tool, and re-generate the mesh. The mesh should now be correct and not “leaking” beyond the part boundaries.
Posted on March 28, 2017, by: Dhruv Bhate, PhDWhat types of cellular designs do we find in nature? Cellular structures are an important area of research in Additive Manufacturing (AM), including work we are doing here at PADT. As I described in a previous blog post, the research landscape can be broadly classified into four categories: application, design, modeling and manufacturing. In the context of design, most of the work today is primarily driven by software that represent complex cellular structures efficiently as well as analysis tools that enable optimization of these structures in response to environmental conditions and some desired objective. In most of these software, the designer is given a choice of selecting a specific unit cell to construct the entity being designed. However, it is not always apparent what the best unit cell choice is, and this is where I think a biomimetic approach can add much value. As with most biomimetic approaches, the first step is to frame a question and observe nature as a student. And the first question I asked is the one described at the start of this post: what types of cellular designs do we find in the natural world around us? In this post, I summarize my findings.
Design StrategiesIn a previous post, I classified cellular structures into 4 categories. However, this only addressed "volumetric" structures where the objective of the cellular structure is to fill three-dimensional space. Since then, I have decided to frame things a bit differently based on my studies of cellular structures in nature and the mechanics around these structures. First is the need to allow for the discretization of surfaces as well: nature does this often (animal armor or the wings of a dragonfly, for example). Secondly, a simple but important distinction from a modeling standpoint is whether the cellular structure in question uses beam- or shell-type elements in its construction (or a combination of the two). This has led me to expand my 4 categories into 6, which I now present in Figure 1 below. Setting aside the "why" of these structures for a future post, here I wish to only present these 6 strategies from a structural design standpoint.
- Volumetric - Beam: These are cellular structures that fill space predominantly with beam-like elements. Two sub-categories may be further defined:
- Honeycomb: Honeycombs are prismatic, 2-dimensional cellular designs extruded in the 3rd dimension, like the well-known hexagonal honeycomb shown in Fig 1. All cross-sections through the 3rd dimension are thus identical. Though the hexagonal honeycomb is most well known, the term applies to all designs that have this prismatic property, including square and triangular honeycombs.
- Lattice and Open Cell Foam: Freeing up the prismatic requirement on the honeycomb brings us to a fully 3-dimensional lattice or open-cell foam. Lattice designs tend to embody higher stiffness levels while open cell foams enable energy absorption, which is why these may be further separated, as I have argued before. Nature tends to employ both strategies at different levels. One example of a predominantly lattice based strategy is the Venus flower basket sea sponge shown in Fig 1, trabecular bone is another example.
- Volumetric - Shell:
- Closed Cell Foam: Closed cell foams are open-cell foams with enclosed cells. This typically involves a membrane like structure that may be of varying thickness from the strut-like structures. Plant sections often reveal a closed cell foam, such as the douglas fir wood structure shown in Fig 1.
- Periodic Surface: Periodic surfaces are fascinating mathematical structures that often have multiple orders of symmetry similar to crystalline groups (but on a macro-scale) that make them strong candidates for design of stiff engineering structures and for packing high surface areas in a given volume while promoting flow or exchange. In nature, these are less commonly observed, but seen for example in sea urchin skeletal plates.
- Tessellation: Tessellation describes covering a surface with non-overlapping cells (as we do with tiles on a floor). Examples of tessellation in nature include the armored shells of several animals including the extinct glyptodon shown in Fig 1 and the pineapple and turtle shell shown in Fig 2 below.
- Overlapping Surface: Overlapping surfaces are a variation on tessellation where the cells are allowed to overlap (as we do with tiles on a roof). The most obvious example of this in nature is scales - including those of the pangolin shown in Fig 1.
What about Function then?This separation into 6 categories is driven from a designer's and an analyst's perspective - designers tend to think in volumes and surfaces and the analyst investigates how these are modeled (beam- and shell-elements are at the first level of classification used here). However, this is not sufficient since it ignores the function of the cellular design, which both designer and analyst need to also consider. In the case of tessellation on the skin of an alligator for example as shown in Fig 3, was it selected for protection, easy of motion or for controlling temperature and fluid loss? In a future post, I will attempt to develop an approach to classifying cellular structures that derives not from its structure or mechanics as I have here, but from its function, with the ultimate goal of attempting to reconcile the two approaches. This is not a trivial undertaking since it involves de-confounding multiple functional requirements, accounting for growth (nature's "design for manufacturing") and unwrapping what is often termed as "evolutionary baggage," where the optimum solution may have been sidestepped by natural selection in favor of other, more pressing needs. Despite these challenges, I believe some first-order themes can be discerned that can in turn be of use to the designer in selecting a particular design strategy for a specific application.
ReferencesThis is by no means the first attempt at a classification of cellular structures in nature and while the specific 6 part separation proposed in this post was developed by me, it combines ideas from a lot of previous work, and three of the best that I strongly recommend as further reading on this subject are listed below.
- Gibson, Ashby, Harley (2010), Cellular Materials in Nature and Medicine, Cambridge University Press; 1st edition
- Naleway, Porter, McKittrick, Meyers (2015), Structural Design Elements in Biological Materials: Application to Bioinspiration. Advanced Materials, 27(37), 5455-5476
- Pearce (1980), Structure in Nature is a Strategy for Design, The MIT Press; Reprint edition
Posted on March 14, 2017, by: Manoj MahendranRemember the good old days of having to peruse through hundreds and thousands of lines of text in multiple files to see ANSYS license usage information? Trying to hit Ctrl+F and search for license names. Well those days were only about a couple months ago and they are over…well for the most part. With the ANSYS License Manager Release 18.0, we have some pretty nifty built in license reporting tools that help to extract information from the log files so the administrator can see anything from current license usage to peak usage and even any license denials that occur. Let’s take a look at how to do this: First thing is to open up the License Management Center:
- In Windows you can find this by going to Start>Programs>ANSYS Inc License Manager>ANSYS License Management Center
- On Linux you can find this in the ansys directory /ansys_inc/shared_files/licensing/start_lmcenter
License Management Center at Release 18.0
License Reporting OptionsVIEW CURRENT LICENSE USAGE As the title says, this is where you’ll go to see a breakdown of the current license usage. What is great is that you can see all the licenses that you have on the server, how many licenses of each are being used and who is using them (through the color of the bars). Please note that PADT has access to several ANSYS Licenses. Your list will only include the licenses available for use on your server.
Scrolling page that shows Current License Usage and Color Coded UsernamesYou can also click on Show Tabular Data to see a table view that you can then export to excel if you wanted to do your own manipulation of the data.
Tabular Data of Current License Usage – easy to exportVIEW LICENSE USAGE HISTORY In this section you will be able to not only isolate the license usage to a specific time period, you can also filter by license type as well. You can use the first drop down to define a time range, whether that is the previous 1 month, 1 year, all available or even your own custom time range
Isolate License Usage to Specific Time PeriodOnce you hit Generate you will be able to then isolate by license name as shown below. I’ve outlined some examples below as well. The axis on the left shows number of licenses used.
Filter Time History by License Name
1 month history of ANSYS Mechanical Enterprise
1 month history of ANSYS CFD
Custom Date Range history of ANSYS SpaceClaim Direct ModelerVIEW PEAK LICENSE USAGE This section will allow you to see what the peak usage of a particular license during a particular time period and filter it based on data range. First step is to isolate to a date range as before, for example 1 month. Then you can select which month you want to look at data for.
Selecting specific month to look at Peak License UsageThen you can isolate the data to whether or not you want to look at an operational period of 24/7, Monday to Friday 24/5 or even Monday to Friday 9am-5pm. This way you can isolate license usage between every day of the week, working week or normal working hours in a week. Again, axis on left shows number of licenses.
Isolating data to 24/7, Weekdays or Weekday Working Hours
Peak License Usage in March 2017 of ANSYS Mechanical Enterprise (24/7)
Peak License Usage in February 2017 of ANSYS CFD (Weekdays Only)VIEW LICENSE DENIALS If any of the users who are accessing the License Manager get license denials due to insufficient licenses or for any other reason, this will be displayed in this section. Since PADT rarely, if ever, gets License Denials, this section is blank for us. The procedure is identical to the above sections – it involves isolating the data to a time period and filtering the data to your interested quantities.
Isolate data with Time Period as other sectionsAlthough these 4 options doesn’t include every conceivable filtering method, this should allow managers and administrators to filter through the license usage in many different ways without needing to manually go through all the log files. This is a very convenient and easy set of options to extract the information. Please let us know if you have any questions on this or anything else with ANSYS.
Posted on March 14, 2017, by: Eric MillerConsidered the “largest gathering of chip, board, and systems designers in the country,” with over 5,000 attendees this year and over 150 technical presentations and workshops, DesignCon exhibits state of the art trends in high-speed communications and semiconductor communities. Here are the top 5 trends I noticed while attending DesignCon 2017:
1. Higher data rates and power efficiency.This is of course a continuing trend and the most obvious. Still, I like to see this trend alive and well because I think this gets a bit trickier every year. Aiming towards 400 Gbps solutions, many vendors and papers were demonstrating 56 Gbps and 112 Gbps channels, with no less than 19 sessions with 56 Gbps or more in the title. While IC manufacturers continue to develop low-power chips, connector manufacturers are offering more vented housings as well as integrated sinks to address thermal challenges.
2. More conductor-based signaling.PAM4 was everywhere on the exhibition floor and there were 11 sessions with PAM4 in the title. Shielded twinaxial cables was the predominant conductor-based technology such as Samtec’s Twinax Flyover and Molex’s BiPass. A touted feature of twinax is the ability to route over components and free up PCB real estate (but there is still concern for enclosing the cabling). My DesignCon 2017 session, titled Replacing High-Speed Bottlenecks with PCB Superhighways, would also fall into this category. Instead of using twinax, I explored the idea of using rectangular waveguides (along with coax feeds), which you can read more about here. I also offered a modular concept that reflects similar routing and real estate advantages.
3. Less optical-based signaling.Don’t get me wrong, optical-based signaling is still a strong solution for high-speed channels. Many of the twinax solutions are being designed to be compatible with fiber connections and, as Teledyne put it in their QPHY-56G-PAM4 option release at DesignCon, Optical Internetworking Forum (OIF) and IEEE are both rapidly standardizing PAM4-based interfaces. Still, the focus from the vendors was on lower cost conductor-based solutions. So, I think the question of when a full optical transition will be necessary still stands. With that in mind, this trend is relative to what I saw only a couple years back. At DesignCon 2015, it looked as if the path forward was going to be fully embracing optical-based signaling. This year, I saw only one session on fiber and, as far as I could tell, none on photonic devices. That’s compared to DesignCon 2015 with at least 5 sessions on fiber and photonics, as well as a keynote session on silicon photonics from Intel Fellow Dr. Mario Paniccia.
4. More Physics-based Simulations.As margins continue to shrink, the demand for accurate simulation grows. Dr. Zoltan Cendes, founder of Ansoft, shared the difficulties of electromagnetic simulation over the past 40+ years and how Ansoft (now ANSYS) has improved accuracy, simplified the simulation process, and significantly reduced simulation time. To my personal delight, he also had a rectangular waveguide in his presentation (and I think we were the only two). Dr. Cendes sees high-speed electrical design at a transition point, where engineers have been or will ultimately need to place physics-based simulations at the forefront of the design process, or as he put it, “turning signal integrity simulation inside out.” A closer look at Dr. Cendes’ keynote presentation can be found in DesignNews. 5. More Detailed IC Models. This may or may not be a trend yet, but improving IC models (including improved data sheet details) was a popular topic among presenters and attendees alike; so if nothing else it was a trend of comradery. There were 12 sessions with IBIS-AMI in the title. In truth, I don’t typically attend these sessions, but since behavioral models (such as IBIS-AMI) impact everyone at DesignCon, this topic came up in several sessions that I did attend even though they weren’t focused on this topic. Perhaps with continued development of simulation solutions like ANSYS’ Chip-Package-System, Dr. Cende’s prediction will one day make a comprehensive physics-based design (to include IC models) a practical reality. Until then, I would like to share an interesting quote from George E. P. Box that was restated in one of the sessions: “Essentially all models are wrong, but some are useful.” I think this is good advice that I use for clarity in the moment and excitement for the future. By the way, the visual notes shown above were created by Kelly Kingman from kingmanink.com on the spot during presentations. As an engineer, I was blown away by this. I have a tendency to obsess over details but she somehow captured all of the critical points on the fly with great graphics that clearly relay the message. Amazing!
Posted on March 10, 2017, by: David Mastel
How To Update The Firmware Of An Intel® Solid-State Drive DC P3600 in four easy steps!The Dr. says to keep that firmware fresh! so in this How To blog post I illustrate to you how to verify and/or update the firmware on a 1.2TB Intel® Solid-State Drive DC 3600 Series NVMe MLC card.
CUBE Workstation Specifications - The Tester
PADT, Inc. – CUBE w32i Numerical Simulation Workstation
- 2 x 16c @2.6GHz/ea. (INTEL XEON e5-2697A V4 CPU), 40M Cache, 9.6GT, 145 Watt/each
- Dual Socket Super Micro X10DAi motherboard
- 8 x 32GB DDR4-2400MHz ECC REG DIMM
- 1 x NVIDIA QUADRO M2000 - 4GB GDDR5
- 1 x Intel® DC P3600 1.2TB, NVMe PCIe 3.0, MLC AIC 20nm
- Windows 7 Ultimate Edition 64-bit
Step 1: PreppingCheck for and download the latest downloads for the Intel® Solid-State DC 3600 here: https://downloadcenter.intel.com/product/81000/Intel-SSD-DC-P3600-Series You will need the latest downloads of the:
Intel® Solid State Drive Toolbox
Intel® SSD Data Center Tool
Intel® SSD Data Center Family for NVMe Drivers
Step 2: InstallationAfter instaling, the Intel® Solid State Drive Toolbox and the Intel® SSD Data Center Tool reboot the workstation and move on to the next step.
Step 3: Trust But VerifyCheck the status of the 1.2TB NVMe card by running the INTEL SSD DATA Center Tool. Next, I will be using the Windows 7 Ultimate 64-bit version for the operating system. Running the INTEL DATA CENTER TOOLS within an elevated command line prompt. Right-Click --> Run As...Administrator Command Line Text: isdct show –intelssd As the image indicates below the firmware for this 1.2TB NVMe card is happy and it's firmware is up to date! Yay! If you have more than one SSD take note of the Drive Number.
- Pro Tip - In this example the INTEL DC P3600 is Drive number zero. You can gather this information from the output syntax. --> Index : 0
Step 4: Reboot WorkstationThe firmware update process has been completed. shutdown /n
Posted on March 9, 2017, by: Alex GrishinANSYS Mechanical is great at applying tabular loads that vary with an independent variable. Say time or Z. What if you want a tabular load that varies in multiple directions and time. You can use the External Data tool to do just that. You can also create a table with a single variable and modify it in the Command Editor. In the Presentation below, I show how to do all of this in a step-by-step description. PADT-ANSYS-Tabular-Loading-ANSYS-18
You can also download the presentation here.
Posted on March 7, 2017, by: Matt SuttonWith each release of ANSYS the customization toolkit continues to evolve and grow. Recently I developed what I would categorize as a decent sized ACT extension. My purpose in this post is to highlight a few of the techniques and best practices that I learned along the way.
Why I chose C#?Most ACT extensions are written in Python. Python is a wonderfully useful language for quickly prototyping and building applications, frankly of all shapes and sizes. Its weaker type system, plethora of libraries, large ecosystem and native support directly within the ACT console make it a natural choice for most ACT work. So, why choose to move to C#? The primary reasons I chose to use C# instead of python for my ACT work were the following:
- I prefer the slightly stronger type safety afforded by the more strongly typed language. Having a definitive compilation step forces me to show my code first to a compiler. Only if and when the compiler can generate an assembly for my source do I get to move to the next step of trying to run/debug. Bugs caught at compile time are the cheapest and generally easiest bugs to fix. And, by definition, they are the most likely to be fixed. (You’re stuck until you do…)
- The C# development experience is deeply integrated into the Visual Studio developer tool. This affords not only a great editor in which to write the code, but more importantly perhaps the world’s best debugger to figure out when and how things went wrong. While it is possible to both edit and debug python code in Visual Studio, the C# experience is vastly superior.
The Cost of Doing ACT Business in C#Unfortunately, writing an ACT extension in C# does incur some development cost in terms setting up the development environment to support the work. When writing an extension solely in Python you really only need a decent text editor. Once you setup your ACT extension according to the documented directory structure protocol, you can just edit the python script files directly within that directory structure. If you recall, ACT requires an XML file to define the extension and then a directory with the same name that contains all of the assets defining the extension like scripts, images, etc… This “defines” the extension. When it comes to laying out the requisite ACT extension directory structure on disk, C# complicates things a bit. As mentioned earlier, C# involves a compilation step that produces a DLL. This DLL must then somehow be loaded into Mechanical to be used within the extension. To complicate things a little further, Visual Studio uses a predefined project directory structure that places the build products (DLLs, etc…) within specific directories of the project depending on what type of build you are performing. Therefore the compiled DLL may end up in any number of different directories depending on how you decide to build the project. Finally, I have found that the debugging experience within Visual Studio is best served by leaving the DLL located precisely wherever Visual Studio created it. Here is a summary list of the requirements/problems I encountered when building an ACT extension using C#
- I need to somehow load the produced DLL into Mechanical so my extension can use it.
- The DLL that is produced during compilation may end up in any number of different directories on disk.
- An ACT Extension must conform to a predefined structural layout on the filesystem. This layout does not map cleanly to the Visual studio project layout.
- The debugging experience in Visual Studio is best served by leaving the produced DLL exactly where Visual Studio left it.
Loading the Proper DLL into MechanicalAs I mentioned above, even an ACT extension written in C# requires a bit of Python code to bootstrap it into Mechanical. It is within this bit of Python that I chose to tackle the problem of deciding which dll to actually load. The code I came up with looks like the following: Essentially what I am doing above is querying for the presence of a particular environment variable that is on my machine. (The assumption is that it wouldn’t randomly show up on end user’s machine…) If that variable is found and its value is 1, then I determine whether or not to load a debug or release version of the DLL depending on the type of build. I use two additional environment variables to specify where the debug and release directories for my Visual Studio project exist. Finally, if I determine that I’m running on a user’s machine, I simply look for the DLL in the proper location within the extension directory. Setting up my python script in this way enables me to forget about having to edit it once I’m ready to share my extension with someone else. It just works.
Rebuilding the ACT Extension Directory StructureThe final piece of the puzzle involves rebuilding the ACT extension directory structure upon the completion of a successful build. I do this for a few different reasons.
- I always want to have a pristine copy of my extension laid out on disk in a manner that could be easily shared with others.
- I like to store all of the various extension assets, like images, XML files, python files, etc… within the Visual Studio Project. In this way, I can force the project to be out of date and in need of a rebuild if any of these files change. I find this particularly useful for working with the XML definition file for the extension.
- Having all of these files within the Visual Studio Project makes tracking thing within a version control system like SVN or git much easier.
The Synergies of Using Both ApproachesFinally, I will conclude with a note on the synergies you can achieve by using both of the approaches mentioned above. One of the final enhancements I made to my post build script was to allow it to “edit” some of the text based assets that are used to define the ACT extension. A text based asset is something like an XML file or python script. What I came to realize is that certain aspects of the XML file that define the extension need to be different depending upon whether or not I wish to debug the extension locally or release the extension for an end user to consume. Since I didn’t want to have to remember to make those modifications before I “released” the extension for someone else to use, I decided to encode those modifications into my post build script. If the post build script was run after a “debug” build, I coded it to configure the extension for optimal debugging on my local machine. However, if I built a “release” version of the extension, the post build script would slightly alter the XML definition file and the main python file to make it more suitable for running on an end user machine. By automating it in this way, I could easily build for either scenario and confidently know that the resulting extension would be optimally configured for the particular end use.
ConclusionsNow that I have some experience in writing ACT extensions in C# I must honestly say that I prefer it over Python. Much of the “extra plumbing” that one must invest in in order to get a C# extension up and running can be automated using the techniques described within this post. After the requisite automation is setup, the development process is really straightforward. From that point onward, the increased debugging fidelity, added type safety and familiarity a C based language make the development experience that much better! Also, there are some cool things you can do in C# that I’m not 100% sure you can accomplish in Python alone. More on that in later posts! If you have ideas for an ACT extension to better serve your business needs and would like to speak with someone who has developed some extensions, please drop us a line. We’d be happy to help out however we can!
Posted on March 2, 2017, by: Doug OatisYou kids don’t know how good you have it with automatic contact creation in Mechanical. Back in my day, I’d have to use the contact wizard in MAPDL or show off my mastery of the ESURF command to define contacts between parts. Sure, there were some macros somewhere on the interwebs that would go through and loop for surfaces within a particular offset, but for the sake of this stereotypical “old-tyme” rant, I didn’t use them (I actually didn’t, I was just TOO good at using ESURF to need anyone else’s help).
Hey, it gets me from point A to BIn Mechanical contact is automatically generated based on a set of rules contained in the ‘Connection Group’ object: It might look a little over-whelming, but really the only thing you’ll need to play around with is the ‘Tolerance Type’. This can either ‘Slider’ or ‘Value’ (or use sheet thickness if you’re working with shells). What this controls is the face offset value for which Mechanical will automatically build contact. So in the picture shown above faces that are 5.9939E-3in apart will automatically have contact created. You can play around with the slider value to change what the tolerance
Said No One Ever
Sorry...that was bad. I figured in the new alt-fact world with falsely-attributed quotes to historical leaders, I might as well make something up for the oft-overlooked FE-crowd.
So, how do you go about implementing this? Easy, first just delete the default connection group (right-mouse-click on it and select delete). Next, just select a group of bodies and click the ‘Connection Group’ button:
ALL the Connection Groups!
Now that you have all these connection groups, you can fine-tune the auto-detection rules to meet the ‘needs’ of those individual body groups. Just zooming in on one of the groups:
By default, when I generate contact for this group I’ll get two contact pairs:
While this may work, let’s say I don’t want a single contact pair for the two dome-like structures, but 2. That way I can just change the behavior on the outer ‘ring’ to be frictionless and force the top to be bonded:
I modified the auto-detection tolerance to be a user-defined distance (note that when you type in a number and move your mouse over into the graphics window you will see a bulls-eye that indicates the search radius you just defined). Next, I told the auto-detection not to group any auto-detected contacts together. The result is I now get 3 contact pairs defined: