


{"id":52382,"date":"2021-02-18T16:11:03","date_gmt":"2021-02-18T16:11:03","guid":{"rendered":"\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/"},"modified":"2021-02-18T16:11:03","modified_gmt":"2021-02-18T16:11:03","slug":"how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/","title":{"rendered":"How to access solution data from a user material subroutine (UserMat or UserMatTh)?"},"content":{"rendered":"<p>I am using the user routines UserMat and UserMAtTh for material modelling. Out of the routine, I want to access user state variables for an element other than the current one (other than the one the user routine has been called for). I expected that this can be done by the provided subroutine (API) get_ElmData (kchar, elemId, kMatRecPt, ncomp, vect). However, this subroutine seems to work only for the current element, not for other elements. The element number elemId specified as input for the subroutine is ignored. The output contains always data for the integration points of the current element. Does someone have an idea how to access user state variables of other elements? n<\/p>\n","protected":false},"template":"","class_list":["post-52382","topic","type-topic","status-closed","hentry","topic-tag-upf","topic-tag-usermat"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"I am using the user routines UserMat and UserMAtTh for material modelling. Out of the routine, I want to access user state variables for an element other than the current one (other than the one the user routine has been called for). I expected that this can be done by the provided subroutine (API) get_ElmData\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to access solution data from a user material subroutine (UserMat or UserMatTh)? | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"I am using the user routines UserMat and UserMAtTh for material modelling. Out of the routine, I want to access user state variables for an element other than the current one (other than the one the user routine has been called for). I expected that this can be done by the provided subroutine (API) get_ElmData\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-02-18T16:11:03+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-02-18T16:11:03+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to access solution data from a user material subroutine (UserMat or UserMatTh)? | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I am using the user routines UserMat and UserMAtTh for material modelling. Out of the routine, I want to access user state variables for an element other than the current one (other than the one the user routine has been called for). I expected that this can be done by the provided subroutine (API) get_ElmData\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/upf\\\/#listItem\",\"name\":\"upf\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/upf\\\/#listItem\",\"position\":3,\"name\":\"upf\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/upf\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\\\/#listItem\",\"name\":\"How to access solution data from a user material subroutine (UserMat or UserMatTh)?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\\\/#listItem\",\"position\":4,\"name\":\"How to access solution data from a user material subroutine (UserMat or UserMatTh)?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/upf\\\/#listItem\",\"name\":\"upf\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\\\/\",\"name\":\"How to access solution data from a user material subroutine (UserMat or UserMatTh)? | Ansys Learning Forum\",\"description\":\"I am using the user routines UserMat and UserMAtTh for material modelling. Out of the routine, I want to access user state variables for an element other than the current one (other than the one the user routine has been called for). I expected that this can be done by the provided subroutine (API) get_ElmData\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\\\/#breadcrumblist\"},\"datePublished\":\"2021-02-18T16:11:03+00:00\",\"dateModified\":\"2021-02-18T16:11:03+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to access solution data from a user material subroutine (UserMat or UserMatTh)? | Ansys Learning Forum","description":"I am using the user routines UserMat and UserMAtTh for material modelling. Out of the routine, I want to access user state variables for an element other than the current one (other than the one the user routine has been called for). I expected that this can be done by the provided subroutine (API) get_ElmData","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/upf\/#listItem","name":"upf"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/upf\/#listItem","position":3,"name":"upf","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/upf\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/#listItem","name":"How to access solution data from a user material subroutine (UserMat or UserMatTh)?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/#listItem","position":4,"name":"How to access solution data from a user material subroutine (UserMat or UserMatTh)?","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/upf\/#listItem","name":"upf"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/","name":"How to access solution data from a user material subroutine (UserMat or UserMatTh)? | Ansys Learning Forum","description":"I am using the user routines UserMat and UserMAtTh for material modelling. Out of the routine, I want to access user state variables for an element other than the current one (other than the one the user routine has been called for). I expected that this can be done by the provided subroutine (API) get_ElmData","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/#breadcrumblist"},"datePublished":"2021-02-18T16:11:03+00:00","dateModified":"2021-02-18T16:11:03+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"How to access solution data from a user material subroutine (UserMat or UserMatTh)? | Ansys Learning Forum","og:description":"I am using the user routines UserMat and UserMAtTh for material modelling. Out of the routine, I want to access user state variables for an element other than the current one (other than the one the user routine has been called for). I expected that this can be done by the provided subroutine (API) get_ElmData","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/","article:published_time":"2021-02-18T16:11:03+00:00","article:modified_time":"2021-02-18T16:11:03+00:00","twitter:card":"summary_large_image","twitter:title":"How to access solution data from a user material subroutine (UserMat or UserMatTh)? | Ansys Learning Forum","twitter:description":"I am using the user routines UserMat and UserMAtTh for material modelling. Out of the routine, I want to access user state variables for an element other than the current one (other than the one the user routine has been called for). I expected that this can be done by the provided subroutine (API) get_ElmData"},"aioseo_meta_data":{"post_id":"52382","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 22:54:33","updated":"2024-10-28 22:54:33","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/upf\/\" title=\"upf\">upf<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to access solution data from a user material subroutine (UserMat or UserMatTh)?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"upf","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/upf\/"},{"label":"How to access solution data from a user material subroutine (UserMat or UserMatTh)?","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-access-solution-data-from-a-user-material-subroutine-usermat-or-usermatth\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["24672"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":["?9Z\u001c"],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["1"],"_btv_view_count":["1120"],"_bbp_subscription":["232813","242037"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["52382"],"_bbp_forum_id":["27815"],"_bbp_engagement":["157520","186309","242037"],"_bbp_voice_count":["3"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["222965"],"_bbp_last_active_id":["222965"],"_bbp_last_active_time":["2022-08-02 01:04:51"]},"test":"volker_slowik"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/52382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/52382\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=52382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}