René's URL Explorer Experiment


Title: Determining Number of Grains and Grain Boundary Length/Area · kip-hart/MicroStructPy · Discussion #79 · GitHub

Open Graph Title: Determining Number of Grains and Grain Boundary Length/Area · kip-hart/MicroStructPy · Discussion #79

X Title: Determining Number of Grains and Grain Boundary Length/Area · kip-hart/MicroStructPy · Discussion #79

Description: Determining Number of Grains and Grain Boundary Length/Area

Open Graph Description: When generating large enough domains I see that some seeds are removed with the following error: "RuntimeWarning: Seeds were removed from the seed list during positioning. Their data has been writt...

X Description: When generating large enough domains I see that some seeds are removed with the following error: "RuntimeWarning: Seeds were removed from the seed list during positioning. Their data has been ...

Opengraph URL: https://github.com/kip-hart/MicroStructPy/discussions/79

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Determining Number of Grains and Grain Boundary Length/Area","text":"\u003cp dir=\"auto\"\u003eWhen generating large enough domains I see that some seeds are removed with the following error: \"RuntimeWarning: Seeds were removed from the seed list during positioning. Their data has been written to seed_position_reject.log and their indices were [891, 895, 900, 970, 953, 955, 958, 963, 967, 968, 929, 938, 930, 931, 933, 935, 937, 941, 942, 944, 945, 946, 947].\" Is this because there is a minimum size where the grains are deleted due to overlap of seeds? It would then seem that len(seeds) is not representative of the total number of grains in the final image. When I tried to access the data from seed_position_reject it stated NameError: name 'seed_position_reject' is not defined. Is there a more straightforward way to access this information?\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAdditionally, I eventually want to determine the total length of the grain boundaries or perhaps just the area of the grain boundaries . Any thoughts on the best approach to this?\u003c/p\u003e","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eHi \u003ca class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/dpd5121/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/dpd5121\"\u003e@dpd5121\u003c/a\u003e That warning comes up when not every seed can be positioned in a domain. There's a heuristic that determines how many seeds to sample, then those seeds are positioned in the domain from largest to smallest volume. If the positioning algorithm tries over 10k times to place a seed but fails, it moves on to the next seed. These rejected seeds get added to a file called \u003ccode class=\"notranslate\"\u003eseed_position_reject.log\u003c/code\u003e in the working directory.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFor the length (2D) and area (3D) of grain boundaries, I would start with the facet list. The facets associated with the domain boundaries could be filtered out (neighbor = -1) as well as the facets internal to grains (same seed number on both sides). The 2D length of each facet can be found from differencing the positions of the endpoints and taking the norm. For 3D it gets a bit more interesting. The facets are ordered lists of points, so from the first three points in the facet you can define a plane. The set of points can then be mapped to 2D points in that plane (first point is the origin, second point is on the x-axis for example). From there, there's an algorithm to determine the area enclosed by a polygon in 2D based on the (x,y) coordinates of the vertices.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe last step would be to check if a grain boundary has multiple facets. All the lengths/areas of facets between grain i and grain j should be summed up to get the grain boundary length/area. From there you can sum over all grain boundaries, take statistics on min/mean/max grain boundary, etc.\u003c/p\u003e","upvoteCount":1,"url":"https://github.com/kip-hart/MicroStructPy/discussions/79#discussioncomment-4195423"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:e3765396-b76a-53ea-b69e-4097bc102e5d
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idC65C:C3FF9:D00E27:12E5F67:6A4B9EDA
html-safe-nonce631c9d7ae33c364f0f39d26e4fe94030a7a84f8810afcc4cae03b5f78a0dcb53
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjVDOkMzRkY5OkQwMEUyNzoxMkU1RjY3OjZBNEI5RURBIiwidmlzaXRvcl9pZCI6Ijg2ODM0NDk3NDg4MTMwMDE4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac493453652c110b5905caca229352cf45fdeb2fd14c0822cff59b27f95b2fedeb
hovercard-subject-tagdiscussion:4556263
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/kip-hart/MicroStructPy/79/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/9aba051b2be7ed16524f103652e72f50c7a5b253349a9c4a91c46dd8b7184834/kip-hart/MicroStructPy/discussions/79
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9aba051b2be7ed16524f103652e72f50c7a5b253349a9c4a91c46dd8b7184834/kip-hart/MicroStructPy/discussions/79
og:image:altWhen generating large enough domains I see that some seeds are removed with the following error: "RuntimeWarning: Seeds were removed from the seed list during positioning. Their data has been writt...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea7e470aeb8fedd833ae331b0a162f6c5a72c09b899dd94a7cd531e5e0e3a93d5
turbo-cache-controlno-preview
go-importgithub.com/kip-hart/MicroStructPy git https://github.com/kip-hart/MicroStructPy.git
octolytics-dimension-user_id41959581
octolytics-dimension-user_loginkip-hart
octolytics-dimension-repository_id206468500
octolytics-dimension-repository_nwokip-hart/MicroStructPy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id206468500
octolytics-dimension-repository_network_root_nwokip-hart/MicroStructPy
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ad79fae8b165db9a62b2142d969fa7b21eedcf
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/kip-hart/MicroStructPy/discussions/79#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fkip-hart%2FMicroStructPy%2Fdiscussions%2F79
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fkip-hart%2FMicroStructPy%2Fdiscussions%2F79
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=kip-hart%2FMicroStructPy
Reloadhttps://github.com/kip-hart/MicroStructPy/discussions/79
Reloadhttps://github.com/kip-hart/MicroStructPy/discussions/79
Reloadhttps://github.com/kip-hart/MicroStructPy/discussions/79
kip-hart https://github.com/kip-hart
MicroStructPyhttps://github.com/kip-hart/MicroStructPy
Please reload this pagehttps://github.com/kip-hart/MicroStructPy/discussions/79
Notifications https://github.com/login?return_to=%2Fkip-hart%2FMicroStructPy
Fork 22 https://github.com/login?return_to=%2Fkip-hart%2FMicroStructPy
Star 99 https://github.com/login?return_to=%2Fkip-hart%2FMicroStructPy
Code https://github.com/kip-hart/MicroStructPy
Issues 1 https://github.com/kip-hart/MicroStructPy/issues
Pull requests 6 https://github.com/kip-hart/MicroStructPy/pulls
Discussions https://github.com/kip-hart/MicroStructPy/discussions
Actions https://github.com/kip-hart/MicroStructPy/actions
Projects https://github.com/kip-hart/MicroStructPy/projects
Security and quality 0 https://github.com/kip-hart/MicroStructPy/security
Insights https://github.com/kip-hart/MicroStructPy/pulse
Code https://github.com/kip-hart/MicroStructPy
Issues https://github.com/kip-hart/MicroStructPy/issues
Pull requests https://github.com/kip-hart/MicroStructPy/pulls
Discussions https://github.com/kip-hart/MicroStructPy/discussions
Actions https://github.com/kip-hart/MicroStructPy/actions
Projects https://github.com/kip-hart/MicroStructPy/projects
Security and quality https://github.com/kip-hart/MicroStructPy/security
Insights https://github.com/kip-hart/MicroStructPy/pulse
Answered https://github.com/kip-hart/MicroStructPy/discussions/79#discussioncomment-4195423
kip-harthttps://github.com/kip-hart
dpd5121 https://github.com/dpd5121
Q&Ahttps://github.com/kip-hart/MicroStructPy/discussions/categories/q-a
Determining Number of Grains and Grain Boundary Length/Area https://github.com/kip-hart/MicroStructPy/discussions/79#top
dpd5121 https://github.com/dpd5121
Answered https://github.com/kip-hart/MicroStructPy/discussions/79#discussioncomment-4195423
kip-harthttps://github.com/kip-hart
Return to tophttps://github.com/kip-hart/MicroStructPy/discussions/79#top
Please reload this pagehttps://github.com/kip-hart/MicroStructPy/discussions/79
https://github.com/kip-hart/MicroStructPy/discussions/79
dpd5121 https://github.com/dpd5121
Nov 10, 2022 https://github.com/kip-hart/MicroStructPy/discussions/79#discussion-4556263
Give feedback.https://github.com/kip-hart/MicroStructPy/discussions/79
kip-hart https://github.com/kip-hart
Nov 21, 2022 https://github.com/kip-hart/MicroStructPy/discussions/79#discussioncomment-4195423
@dpd5121https://github.com/dpd5121
View full answer https://github.com/kip-hart/MicroStructPy/discussions/79#discussioncomment-4195423
Oldest https://github.com/kip-hart/MicroStructPy/discussions/79?sort=old
Newest https://github.com/kip-hart/MicroStructPy/discussions/79?sort=new
Top https://github.com/kip-hart/MicroStructPy/discussions/79?sort=top
Please reload this pagehttps://github.com/kip-hart/MicroStructPy/discussions/79
https://github.com/kip-hart/MicroStructPy/discussions/79
kip-hart https://github.com/kip-hart
Nov 21, 2022 https://github.com/kip-hart/MicroStructPy/discussions/79#discussioncomment-4195423
@dpd5121https://github.com/dpd5121
Give feedback.https://github.com/kip-hart/MicroStructPy/discussions/79
https://github.com/dpd5121
Please reload this pagehttps://github.com/kip-hart/MicroStructPy/discussions/79
https://github.com/kip-hart/MicroStructPy/discussions/79
dpd5121https://github.com/dpd5121
Nov 21, 2022 https://github.com/kip-hart/MicroStructPy/discussions/79#discussioncomment-4197748
Give feedback.https://github.com/kip-hart/MicroStructPy/discussions/79
kip-harthttps://github.com/kip-hart
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fkip-hart%2FMicroStructPy%2Fdiscussions%2F79
🙏 Q&A https://github.com/kip-hart/MicroStructPy/discussions/categories/q-a
https://github.com/dpd5121
https://github.com/kip-hart
https://github.com/kip-hart/MicroStructPy/discussions/79
https://github.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.