-
-
August 17, 2023 at 6:56 am
Robert Mehlig
SubscriberHi,
I am simulating lamb waves in CFRP plates/structures. For a 500x500x2mm plate I wanted to do a series of measurement at points placed every 0.5mm in a line. The motivation is doing a 2D FFT from (x, t) -> (k, f) to see which modes are present and if it fits with analytical & experimental results. I am running into a problem though:
I only want to store the timeseries for the required points. I therefore add all the points to a named selection so that I can see which nodes they correspond to. They happened to be 436 points, corresponding to nodes 1587 to 2022, see below:
/com,*********** Send Named Selection as Node Component ***********
CMBLOCK,FFT_2D_436POINTS,NODE, 436
(8i10)
1587 1588 1589 1590 1591 1592 1593 1594
1595 1596 1597 1598 1599 1600 1601 1602
1603 1604 1605 1606 1607 1608 1609 1610
1611 1612 1613 1614 1615 1616 1617 1618
1619 1620 1621 1622 1623 1624 1625 1626
1627 1628 1629 1630 1631 1632 1633 1634
1635 1636 1637 1638 1639 1640 1641 1642
1643 1644 1645 1646 1647 1648 1649 1650
1651 1652 1653 1654 1655 1656 1657 1658
1659 1660 1661 1662 1663 1664 1665 1666
1667 1668 1669 1670 1671 1672 1673 1674
1675 1676 1677 1678 1679 1680 1681 1682
1683 1684 1685 1686 1687 1688 1689 1690
1691 1692 1693 1694 1695 1696 1697 1698
1699 1700 1701 1702 1703 1704 1705 1706
1707 1708 1709 1710 1711 1712 1713 1714
1715 1716 1717 1718 1719 1720 1721 1722
1723 1724 1725 1726 1727 1728 1729 1730
1731 1732 1733 1734 1735 1736 1737 1738
1739 1740 1741 1742 1743 1744 1745 1746
1747 1748 1749 1750 1751 1752 1753 1754
1755 1756 1757 1758 1759 1760 1761 1762
1763 1764 1765 1766 1767 1768 1769 1770
1771 1772 1773 1774 1775 1776 1777 1778
1779 1780 1781 1782 1783 1784 1785 1786
1787 1788 1789 1790 1791 1792 1793 1794
1795 1796 1797 1798 1799 1800 1801 1802
1803 1804 1805 1806 1807 1808 1809 1810
1811 1812 1813 1814 1815 1816 1817 1818
1819 1820 1821 1822 1823 1824 1825 1826
1827 1828 1829 1830 1831 1832 1833 1834
1835 1836 1837 1838 1839 1840 1841 1842
1843 1844 1845 1846 1847 1848 1849 1850
1851 1852 1853 1854 1855 1856 1857 1858
1859 1860 1861 1862 1863 1864 1865 1866
1867 1868 1869 1870 1871 1872 1873 1874
1875 1876 1877 1878 1879 1880 1881 1882
1883 1884 1885 1886 1887 1888 1889 1890
1891 1892 1893 1894 1895 1896 1897 1898
1899 1900 1901 1902 1903 1904 1905 1906
1907 1908 1909 1910 1911 1912 1913 1914
1915 1916 1917 1918 1919 1920 1921 1922
1923 1924 1925 1926 1927 1928 1929 1930
1931 1932 1933 1934 1935 1936 1937 1938
1939 1940 1941 1942 1943 1944 1945 1946
1947 1948 1949 1950 1951 1952 1953 1954
1955 1956 1957 1958 1959 1960 1961 1962
1963 1964 1965 1966 1967 1968 1969 1970
1971 1972 1973 1974 1975 1976 1977 1978
1979 1980 1981 1982 1983 1984 1985 1986
1987 1988 1989 1990 1991 1992 1993 1994
1995 1996 1997 1998 1999 2000 2001 2002
2003 2004 2005 2006 2007 2008 2009 2010
2011 2012 2013 2014 2015 2016 2017 2018
2019 2020 2021 2022My next thought was to add them seperately as named selections so that I can call them in "Outres" later. This was done as such (ChatGPT was a great help here...?),
/com,*********** Send Named Selection as Node Component ***********
CMBLOCK,P0,NODE, 1
(8i10)
1587
CMBLOCK,P1,NODE, 1
(8i10)
1588
CMBLOCK,P2,NODE, 1
(8i10)
1589
CMBLOCK,P3,NODE, 1
(8i10)
1590
...
CMBLOCK,P432,NODE, 1
(8i10)
2019
CMBLOCK,P433,NODE, 1
(8i10)
2020
CMBLOCK,P434,NODE, 1
(8i10)
2021
CMBLOCK,P435,NODE, 1
(8i10)
2022Then I call them in Outres as,
outres,erase
outres,all,none
outres,nsol,all,P0
outres,nsol,all,P1
outres,nsol,all,P2
outres,nsol,all,P3
...However, in the output file it reads:
*** WARNING *** CP = 459.450 TIME= 16:49:28
The number of output control specifications exceeds the maximum
allotted number of 50. The OUTRES command is ignored.Any idea how I can circumvent this?
I extract the data from the ".rst" file using the "ansys.dpf" Python3 module. The code is as follows:
from ansys.dpf import post
from matplotlib import pyplot as plt
simulation_file = rf'C:\Users\rmehlig\Desktop\HPC_simulations\Simulation_files\{sim_identifier}_pwd\{sim_identifier}.rst'
simulation = post.load_simulation(simulation_file, simulation_type='transient mechanical')
P0 = simulation.displacement(all_sets=True, components=["Z"], named_selections=["P0"])
P1 = simulation.displacement(all_sets=True, components=["Z"], named_selections=["P1"])
...
plt.plot(P0)Thanks in advance,
Robert
-
August 17, 2023 at 11:26 am
Chandra Sekaran
Ansys EmployeeThe outres command can be issued only 50 times "You can issue up to 50 output-control commands for OUTRES, OUTPR, OUTGEOM in an analysis. "
For all components you seem to have set 'outre,nsol,all' . So why not combine all that into one outres command. You can use CMSEL to select all the components; create a new combined component and then issue one OUTRES like below?
cmsel,s,p0
cmsel,a,p1
cmsel,a,p2
...
cmsel,a,p435
CM,COMBINED,node
OUTRES,NSOL,ALL,COMBINED
-
August 17, 2023 at 1:36 pm
Robert Mehlig
SubscriberThank you, I will try this if the following doesn't work. I thought since I know the node ID's I can simply call these instead of the named selection. I do however not want to save all nodal solutions, therefore I access this through defining a named selection of all wanted points:
/com,*********** Send Named Selection as Node Component ***********
CMBLOCK,FFT_2D_436POINTS,NODE, 436
(8i10)
1587 1588 1589 1590 1591 1592 1593 1594
1595 1596 1597 1598 1599 1600 1601 1602
1603 1604 1605 1606 1607 1608 1609 1610
1611 1612 1613 1614 1615 1616 1617 1618
1619 1620 1621 1622 1623 1624 1625 1626
1627 1628 1629 1630 1631 1632 1633 1634
1635 1636 1637 1638 1639 1640 1641 1642
1643 1644 1645 1646 1647 1648 1649 1650
1651 1652 1653 1654 1655 1656 1657 1658
1659 1660 1661 1662 1663 1664 1665 1666
1667 1668 1669 1670 1671 1672 1673 1674
1675 1676 1677 1678 1679 1680 1681 1682
1683 1684 1685 1686 1687 1688 1689 1690
1691 1692 1693 1694 1695 1696 1697 1698
1699 1700 1701 1702 1703 1704 1705 1706
1707 1708 1709 1710 1711 1712 1713 1714
1715 1716 1717 1718 1719 1720 1721 1722
1723 1724 1725 1726 1727 1728 1729 1730
1731 1732 1733 1734 1735 1736 1737 1738
1739 1740 1741 1742 1743 1744 1745 1746
1747 1748 1749 1750 1751 1752 1753 1754
1755 1756 1757 1758 1759 1760 1761 1762
1763 1764 1765 1766 1767 1768 1769 1770
1771 1772 1773 1774 1775 1776 1777 1778
1779 1780 1781 1782 1783 1784 1785 1786
1787 1788 1789 1790 1791 1792 1793 1794
1795 1796 1797 1798 1799 1800 1801 1802
1803 1804 1805 1806 1807 1808 1809 1810
1811 1812 1813 1814 1815 1816 1817 1818
1819 1820 1821 1822 1823 1824 1825 1826
1827 1828 1829 1830 1831 1832 1833 1834
1835 1836 1837 1838 1839 1840 1841 1842
1843 1844 1845 1846 1847 1848 1849 1850
1851 1852 1853 1854 1855 1856 1857 1858
1859 1860 1861 1862 1863 1864 1865 1866
1867 1868 1869 1870 1871 1872 1873 1874
1875 1876 1877 1878 1879 1880 1881 1882
1883 1884 1885 1886 1887 1888 1889 1890
1891 1892 1893 1894 1895 1896 1897 1898
1899 1900 1901 1902 1903 1904 1905 1906
1907 1908 1909 1910 1911 1912 1913 1914
1915 1916 1917 1918 1919 1920 1921 1922
1923 1924 1925 1926 1927 1928 1929 1930
1931 1932 1933 1934 1935 1936 1937 1938
1939 1940 1941 1942 1943 1944 1945 1946
1947 1948 1949 1950 1951 1952 1953 1954
1955 1956 1957 1958 1959 1960 1961 1962
1963 1964 1965 1966 1967 1968 1969 1970
1971 1972 1973 1974 1975 1976 1977 1978
1979 1980 1981 1982 1983 1984 1985 1986
1987 1988 1989 1990 1991 1992 1993 1994
1995 1996 1997 1998 1999 2000 2001 2002
2003 2004 2005 2006 2007 2008 2009 2010
2011 2012 2013 2014 2015 2016 2017 2018
2019 2020 2021 2022Then I call it in the "outres" command:
outres,erase
outres,all,none
outres,nsol,all,FFT_2D_436POINTSSince they nodes are defined I might be able to call them later. I just hope the node index doesn't change in the result file...
-
August 21, 2023 at 2:37 pm
Robert Mehlig
SubscriberDear Chandra Sekaran,
My idea did not work, neither did yours. Yours produces the error message:
*** WARNING *** CP = 29.724 TIME= 16:32:22
Node 312 on element 1 is unselected.
…
*** WARNING *** CP = 29.730 TIME= 16:32:22
Node 248242 on element 25 is unselected.
************************************************************************
The number of ERROR and WARNING messages exceeds 200.
Additional messages suppressed. See (
/home/rmehlig/ANSYS_sim/T1_40Waveplate_v4_2023-08-21_16-31-57_pwd/T1_40
0Waveplate_v4_2023-08-21_16-31-57_0.err ) for suppressed messages.
************************************************************************
ALL CURRENT MAPDL DATA WRITTEN TO FILE NAME= ansabort.db
FOR POSSIBLE RESUME FROM THIS POINT
************************************************************************
The number of ERROR and WARNING messages exceeds 10000.
Use the /NERR command to increase the number of messages.
The ANSYS run is terminated by this error.
************************************************************************Any idea? Thanks in advance,
Robert
-
August 21, 2023 at 5:19 pm
Chandra Sekaran
Ansys EmployeeIt looks like not all nodes are selected when you issue solve command. Add a ALLSEL command like below at the very end.
cmsel,s,p0
cmsel,a,p1
cmsel,a,p2
...
cmsel,a,p435
CM,COMBINED,node
OUTRES,NSOL,ALL,COMBINED
ALLSEL
-
August 22, 2023 at 7:46 am
Robert Mehlig
SubscriberThis means that it solves for all nodes, but only stores the nodes in the "COMBINED" group?
-
August 22, 2023 at 7:46 am
Robert Mehlig
SubscriberDoes capitalization matter when calling the named selections?
-
August 22, 2023 at 10:39 am
Robert Mehlig
SubscriberSo like this?
...
cmsel,a,P425
cmsel,a,P426
cmsel,a,P427
cmsel,a,P428
cmsel,a,P429
cmsel,a,P430
cmsel,a,P431
cmsel,a,P432
cmsel,a,P433
cmsel,a,P434
cmsel,a,P435
CM,POINTS_COMBINED,node
outres,erase
outres,all,none
outres,nsol,all,POINTS_COMBINED
ALLSEL
! *********** WB SOLVE COMMAND ***********
! check interactive state
*get,ANSINTER_,active,,int
*if,ANSINTER_,ne,0,then
/eof
*endif
solve
/com *************** Write FE CONNECTORS *********
CEWRITE,file,ce,,INTE
/com,****************************************************
/com,*************** FINISHED SOLVE FOR LS 1 *************
/com,****************************************************
/com,******************* SOLVE FOR LS 2 OF 2 ****************
/com,*********** Set Force Without Surface Effect Elements "T1 Pin" ***********
sfedel,_CM187_3,3,pres,all
sfedel,_CM187_4,4,pres,all
sfedel,_CM187_5,5,pres,all
sfedel,_CM187_6,6,pres,all
nsel,all
esel,all
/nopr
/gopr
autots,off ! User turned off automatic time stepping
deltim,8.333e-007,8.333e-007,8.333e-007
time,7.5e-004
timint,on ! Turn on time integration effects
outres,erase
outres,all,none
outres,nsol,all,POINTS_COMBINED
ALLSEL
solve
/com,****************************************************
/com,************ FINISHED SOLVE FOR LS 2 ********** -
August 22, 2023 at 1:33 pm
Chandra Sekaran
Ansys Employeeyes
-
August 22, 2023 at 1:40 pm
Chandra Sekaran
Ansys EmployeeThis means that it solves for all nodes, but only stores the nodes in the "COMBINED" group?
Yes, solves the entire model but writes results only for the component specified in OUTRES command
Does capitalization matter when calling the named selections?
No, capitalization does not matter. CMSEL,S,COMP1 is same as CMSEL,S,comp1
-
- The topic ‘APDL Outres Limitations’ is closed to new replies.
-
6445
-
1906
-
1457
-
1308
-
1022
© 2026 Copyright ANSYS, Inc. All rights reserved.