mapstp


Namemapstp JSON
Version 0.3.11 PyPI version JSON
download
home_pagehttps://github.com/MC-kit/map-stp
SummaryTransfers meta information from STP to MCNP
upload_time2023-08-04 12:38:23
maintainer
docs_urlNone
authordvp
requires_python>=3.9,<4.0
licenseMIT
keywords stp mcnp supermc spaceclaim
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==========================================================
*mapstp*: link STP and MCNP models
==========================================================

|Maintained| |License| |Versions| |PyPI| |Docs|


.. contents::


Description
-----------

Problem #1
~~~~~~~~~~

You are an MCNP model developer. You have created simplified 3D CAD model using SpaceClaim, saved it to STP file, then converted
it using SuperMC to an MCNP model. At this moment the MCNP model doesn't have any information on relation of the MCNP
came from cells to the CAD components, there's no materials and densities in the cell specifications.
The SuperMC (for the time of writing this) doesn't transfer this information on exporting to MCNP model.

Problem #2
~~~~~~~~~~

You have to provide results of neutron analysis in correspondence with 3D CAD model
components. For example, you have to create a table describing activation of every component.
To do this, you need some tools to associate CAD component with corresponding MCNP cells.
Using this table the results of computation for MCNP cells can be aggregated to values for
corresponding CAD component.


Solution
~~~~~~~~

Using SpaceClaim you can add additional properties to components directly in STP file.
The properties include: used material, density correction factor, classification tag.
The properties are specified as a special label, which you can add to the components names.
The properties are propagated over the CAD tree hierarchy from top to down and can be overridden
on lower levels with more specific values. Using SpaceClaim for this is rather intuitive.

The using *mapstp* you can transfer this information from STP to MCNP:
The  *mapstp*:

* sets material numbers and densities in all the cells, where it was specified
* adds $-comment after each cell denoting its path in STP, with tag "stp:",this lines can be easily removed later, if not needed
* adds materials specifications, if they are available for *mapstp*
* creates separate accompanying excel file with list of cells, applied materials, densities and correction factors, classification tag, and paths in STP


Installation
------------

Documentation
-------------

Contributing
------------

.. image:: https://github.com/MC-kit/map-stp/workflows/Tests/badge.svg
   :target: https://github.com/MC-kit/map-stp/actions
   :alt: Tests
.. image:: https://codecov.io/gh/MC-kit/map-stp/branch/master/graph/badge.svg?token=wlqoa368k8
  :target: https://codecov.io/gh/MC-kit/map-stp
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
.. image:: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336
   :target: https://pycqa.github.io/isort/
.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
   :target: https://github.com/pre-commit/pre-commit
   :alt: pre-commit
.. image:: https://img.shields.io/badge/try%2Fexcept%20style-tryceratops%20%F0%9F%A6%96%E2%9C%A8-black
   :target: https://github.com/guilatrova/tryceratops
   :alt: try/except style: tryceratops

.. .. image:: https://img.shields.io/badge/security-bandit-yellow.svg
    :target: https://github.com/PyCQA/bandit
    :alt: Security Status

.. Substitutions

.. |Maintained| image:: https://img.shields.io/badge/Maintained%3F-yes-green.svg
   :target: https://github.com/MC-kit/map-stp/graphs/commit-activity
.. |Tests| image:: https://github.com/MC-kit/map-stp/workflows/Tests/badge.svg
   :target: https://github.com/MC-kit/map-stp/actions?workflow=Tests
   :alt: Tests
.. |License| image:: https://img.shields.io/github/license/MC-kit/map-stp
   :target: https://github.com/MC-kit/map-stp
.. |Versions| image:: https://img.shields.io/pypi/pyversions/mapstp
   :alt: PyPI - Python Version
.. |PyPI| image:: https://img.shields.io/pypi/v/mapstp
   :target: https://pypi.org/project/mapstp/
   :alt: PyPI
.. |Docs| image:: https://readthedocs.org/projects/mapstp/badge/?version=latest
   :target: https://mapstp.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/MC-kit/map-stp",
    "name": "mapstp",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "STP,MCNP,SuperMC,SpaceClaim",
    "author": "dvp",
    "author_email": "dmitri_portnov@yahoo.com",
    "download_url": "https://files.pythonhosted.org/packages/62/82/6f5ce9a37239edc790f5e2d0157ec52d46ed699c79fd7943c6864afcd3fa/mapstp-0.3.11.tar.gz",
    "platform": null,
    "description": "==========================================================\n*mapstp*: link STP and MCNP models\n==========================================================\n\n|Maintained| |License| |Versions| |PyPI| |Docs|\n\n\n.. contents::\n\n\nDescription\n-----------\n\nProblem #1\n~~~~~~~~~~\n\nYou are an MCNP model developer. You have created simplified 3D CAD model using SpaceClaim, saved it to STP file, then converted\nit using SuperMC to an MCNP model. At this moment the MCNP model doesn't have any information on relation of the MCNP\ncame from cells to the CAD components, there's no materials and densities in the cell specifications.\nThe SuperMC (for the time of writing this) doesn't transfer this information on exporting to MCNP model.\n\nProblem #2\n~~~~~~~~~~\n\nYou have to provide results of neutron analysis in correspondence with 3D CAD model\ncomponents. For example, you have to create a table describing activation of every component.\nTo do this, you need some tools to associate CAD component with corresponding MCNP cells.\nUsing this table the results of computation for MCNP cells can be aggregated to values for\ncorresponding CAD component.\n\n\nSolution\n~~~~~~~~\n\nUsing SpaceClaim you can add additional properties to components directly in STP file.\nThe properties include: used material, density correction factor, classification tag.\nThe properties are specified as a special label, which you can add to the components names.\nThe properties are propagated over the CAD tree hierarchy from top to down and can be overridden\non lower levels with more specific values. Using SpaceClaim for this is rather intuitive.\n\nThe using *mapstp* you can transfer this information from STP to MCNP:\nThe  *mapstp*:\n\n* sets material numbers and densities in all the cells, where it was specified\n* adds $-comment after each cell denoting its path in STP, with tag \"stp:\",this lines can be easily removed later, if not needed\n* adds materials specifications, if they are available for *mapstp*\n* creates separate accompanying excel file with list of cells, applied materials, densities and correction factors, classification tag, and paths in STP\n\n\nInstallation\n------------\n\nDocumentation\n-------------\n\nContributing\n------------\n\n.. image:: https://github.com/MC-kit/map-stp/workflows/Tests/badge.svg\n   :target: https://github.com/MC-kit/map-stp/actions\n   :alt: Tests\n.. image:: https://codecov.io/gh/MC-kit/map-stp/branch/master/graph/badge.svg?token=wlqoa368k8\n  :target: https://codecov.io/gh/MC-kit/map-stp\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n   :target: https://github.com/psf/black\n.. image:: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336\n   :target: https://pycqa.github.io/isort/\n.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white\n   :target: https://github.com/pre-commit/pre-commit\n   :alt: pre-commit\n.. image:: https://img.shields.io/badge/try%2Fexcept%20style-tryceratops%20%F0%9F%A6%96%E2%9C%A8-black\n   :target: https://github.com/guilatrova/tryceratops\n   :alt: try/except style: tryceratops\n\n.. .. image:: https://img.shields.io/badge/security-bandit-yellow.svg\n    :target: https://github.com/PyCQA/bandit\n    :alt: Security Status\n\n.. Substitutions\n\n.. |Maintained| image:: https://img.shields.io/badge/Maintained%3F-yes-green.svg\n   :target: https://github.com/MC-kit/map-stp/graphs/commit-activity\n.. |Tests| image:: https://github.com/MC-kit/map-stp/workflows/Tests/badge.svg\n   :target: https://github.com/MC-kit/map-stp/actions?workflow=Tests\n   :alt: Tests\n.. |License| image:: https://img.shields.io/github/license/MC-kit/map-stp\n   :target: https://github.com/MC-kit/map-stp\n.. |Versions| image:: https://img.shields.io/pypi/pyversions/mapstp\n   :alt: PyPI - Python Version\n.. |PyPI| image:: https://img.shields.io/pypi/v/mapstp\n   :target: https://pypi.org/project/mapstp/\n   :alt: PyPI\n.. |Docs| image:: https://readthedocs.org/projects/mapstp/badge/?version=latest\n   :target: https://mapstp.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Transfers meta information from STP to MCNP",
    "version": "0.3.11",
    "project_urls": {
        "Chnagelog": "https://github.com/MC-kit/mapstp/releases",
        "Homepage": "https://github.com/MC-kit/map-stp",
        "Repository": "https://github.com/MC-kit/map-stp",
        "documentation": "https://mapstp.readthedocs.io"
    },
    "split_keywords": [
        "stp",
        "mcnp",
        "supermc",
        "spaceclaim"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c6d93199e9bb371b7a479bf9f36d06cc0ae50429c69acf7fe7e9681b38a55d3",
                "md5": "a0e527e63bf5d63e2bba0dfdf9182817",
                "sha256": "17664c4ccd9a62e22148c288a4983163963a1289b5ca8c5b5017c4b3c53443a7"
            },
            "downloads": -1,
            "filename": "mapstp-0.3.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a0e527e63bf5d63e2bba0dfdf9182817",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 207309,
            "upload_time": "2023-08-04T12:38:21",
            "upload_time_iso_8601": "2023-08-04T12:38:21.817008Z",
            "url": "https://files.pythonhosted.org/packages/2c/6d/93199e9bb371b7a479bf9f36d06cc0ae50429c69acf7fe7e9681b38a55d3/mapstp-0.3.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "62826f5ce9a37239edc790f5e2d0157ec52d46ed699c79fd7943c6864afcd3fa",
                "md5": "667b869a356c2b6fb01d424a87008887",
                "sha256": "6f3a02cfc24cde497583676c1c22a210cb078edff24243263934e353a5ad4bc5"
            },
            "downloads": -1,
            "filename": "mapstp-0.3.11.tar.gz",
            "has_sig": false,
            "md5_digest": "667b869a356c2b6fb01d424a87008887",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 210559,
            "upload_time": "2023-08-04T12:38:23",
            "upload_time_iso_8601": "2023-08-04T12:38:23.928522Z",
            "url": "https://files.pythonhosted.org/packages/62/82/6f5ce9a37239edc790f5e2d0157ec52d46ed699c79fd7943c6864afcd3fa/mapstp-0.3.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-04 12:38:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MC-kit",
    "github_project": "map-stp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mapstp"
}
        
dvp
Elapsed time: 0.12460s