Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read the Docs Documentation #950

Draft
wants to merge 31 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
09e4c1b
Initial commit with rtd documentation skeleton
pshriwise Feb 19, 2024
2196135
Adding rtd artifacts to the ignore file
pshriwise Feb 19, 2024
8f6396f
Duplicating a lot of information in usersguide
pshriwise Feb 20, 2024
c82605f
Filling in user's guide, updating docs properties.
pshriwise Feb 23, 2024
b9b1450
Adding start to the file specification
pshriwise Feb 23, 2024
381199a
Cleaning up function signatures a bit.
pshriwise Feb 23, 2024
b7079b1
Adding tables on the MOAB file spec
pshriwise Feb 27, 2024
ba17858
Fixing header
pshriwise Feb 27, 2024
5abb5ab
Restructure
pshriwise Feb 27, 2024
c307f68
Structure updates to fill in the TOC
pshriwise Feb 28, 2024
9f3f49f
Adding intro blurb
pshriwise Feb 28, 2024
93d61eb
Adding image carousel
pshriwise Mar 1, 2024
f3a0098
Reworking landing page a bit.
pshriwise Mar 1, 2024
c4e4c80
Adjusting section headings
pshriwise Mar 1, 2024
f8d960a
Adding gallery
pshriwise Mar 1, 2024
7ac6921
Filing out empty sections, adding contribution guide.
pshriwise Mar 1, 2024
42116de
Update changelog
pshriwise Mar 1, 2024
7e29e65
Adding a section on the Coreform Cubit plugin in preparing solid models.
pshriwise Mar 4, 2024
8e7b4ca
Moving to an introduction to DAGMC section
pshriwise Mar 29, 2024
b488752
Adding some information on the Coreform Cubit workflow for metadata
pshriwise Mar 29, 2024
d5cf2a4
Reference Coreform tutorial for metadata for now
pshriwise Mar 29, 2024
eec1b77
Merge branch 'develop' into rtd
shimwell Apr 25, 2024
05ca90d
Apply suggestions from @gonuke
pshriwise Jun 7, 2024
0a0d2fe
Reverting changes to contribution guide
pshriwise Jun 7, 2024
c89f5ce
Removing gallery manual HTML scripts
pshriwise Jun 7, 2024
8f36251
Updates to include links to the Coreform version and adjust narrative…
pshriwise Jun 7, 2024
bf5cd17
Updating description of the MCNP importer in Coreform Cubit
pshriwise Jul 9, 2024
a500069
Removing redundant groups file
pshriwise Jul 9, 2024
e68dfbb
Correcting varialble name html_baseurl
pshriwise Jul 9, 2024
626378d
Updating notes on mcnp2cad and fixing links.
pshriwise Jul 9, 2024
f08e25a
Updating information on utilizing MCNP2CAD
pshriwise Sep 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ build

#ignore pyne amalgamation
src/pyne/pyne.cpp
src/pyne/pyne.h
src/pyne/pyne.h
docs/Doxyfile
docs/_build
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ if (BUILD_TESTS)
enable_testing()
endif ()

add_subdirectory(docs)
add_subdirectory(src)

dagmc_make_configure_files()
Expand Down
1 change: 1 addition & 0 deletions doc/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Next version
* Simplify Housekeeping Process for DAGMC (#943)
* Allow Double Down v1.1.0 Installation in Dockerfile (#929 #944 #949)
* Inline documentation improvements (#945)
* RTD documentation site (#950)
* Streamline dependencies of docker CI images (#951 #952)

v3.2.3
Expand Down
2 changes: 2 additions & 0 deletions doc/usersguide/codes/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Monte Carlo code-specific steps
===============================

.. _code-specific-steps:

.. toctree::
:maxdepth: 1

Expand Down
35 changes: 33 additions & 2 deletions doc/usersguide/cubit_basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ geometries (on the order of 100 volumes) the process is rather quick.
Grouping volumes and surfaces
-----------------------------

.. note:: Metadata assignment in this section applies to the UW DAGMC plugin, not the native DAGMC exporter provivded in Coreform Cubit (>= version 2023.8).

A DAGMC-based analysis allows a number of attributes of the geometry to be
defined within the geometry file. These characteristics generally relate to the
physical behavior of the volume, for example its material definition or boundary
Expand Down Expand Up @@ -91,10 +93,39 @@ Due to the importance of using the ``group`` command reading the
`CUBIT manual <CUBIT_manual_>`_
section on its full usage is highly recommended.

.. _coreform_metadata:

Assinging Metadata to Volumes and Surfaces: Coreform Cubit
----------------------------------------------------------


Please refer to Coreform's `DAGMC Tutorial
<https://coreform.com/products/coreform-cubit/tutorials/dagmc/tutorial_1/>`_ for
more inform on how to apply DAGMC metadata for the integrated DAGMC export
capability provided in Coreform Cubit (>= version 2023.8).

.. _coreform_export:

Production of the DAGMC Geometry: Coreform Native Export
--------------------------------------------------------

As of version 2023.8, Coreform Cubit has a native DAGMC export capability. This
requires that the model is meshed either with the tetmesh or trimesh schemes
(i.e. that surfaces of the model have triangles associated with them to be
exported.) Faceting/meshing parameters are absent from this command as they are
supplied to the meshing schemes mentioned previously. The export command is as
follows:

::

CUBIT> export cf_dagmc <filename> [overwrite]

**This export option is also available as an export file format** `File -> Export... -> DAGMC (\*.h5m)`.

.. _geom_production:

Production of the DAGMC geometry
--------------------------------
Production of the DAGMC geometry: DAGMC Plugin
----------------------------------------------

Now that the geometry is ready for DAGMC we must export it. Using the
Cubit plugin make this very straightforward, assuming that the user has
Expand Down
39 changes: 37 additions & 2 deletions doc/usersguide/cubit_workflow.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Producing solid models for DAGMC using Cubit
===================================================
============================================

The general workflow for the production of models for analysis using DAGMC
looks like that shown in the Figure below.
Expand Down Expand Up @@ -56,20 +56,55 @@ The general workflow for the production of DAGMC models is the following:
- inspect volumes in pre-imprint model with significant change in volume
- re-check for small areas, curves, volumes
- any problems in these steps repair volumes in pre-imprint model and go back to step 3



7. Facet model
::

CUBIT> export dagmc "geom.h5m" faceting_tolerance 1.0e-4

8. Seal model if possible (use `make_watertight <tools.html#make-watertight>`_)
8. Ensure the model is sealed with the :ref:`check_watertight` tool. If not, attempt to
seal the model if possible using the :ref:`make_watertight` tool.


9. Flood and/or transport particles in model

10. If lost particles or leaky:

- examine lost locations (use `mklostvis.pl <tools.html#mklostvis>`_)
- examine "leaks"/tunneling (can use a mesh tally to locate)
- repair the pre-imprint/merge model (go to step 2)
11. If no lost particles or leaks, then the model is ready for transport

.. _coreform_export:

Using the Coreform Cubit plugin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If using the Coreform Cubit plugin to generate DAGMC models (`export cf_dagmc`)
available since the 2023.8 release, steps 1-6 remain the same.

7. At this point, the model is meshed using either the tetmesher or trimesher.
These models are inherently watertight thanks to the meshing algorithms
applied in Coreform.

8. Export the model using the `export cf_dagmc` command
::

CUBIT> export cf_dagmc "geom.h5m"

Steps 9-11 remain the same as well.

In contrast to the `export dagmc` command, this pathway allows for visualization
of the faceting in Cubit before export and for singe-surface modifications to be
made for fine-tuning the resulting DAGMC model.

Additionally, if a tetmesh is used, the model can be exported as a DAGMC model
with surfaces that are conformal to the boundaries of the tetmesh, which can be
advantageous when preparing a model for multiphysics or for unstructured mesh
tallies in the Monte Carlo simulation.

Preparing solid models
~~~~~~~~~~~~~~~~~~~~~~

Expand Down
18 changes: 18 additions & 0 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


# Configure the documentation file

find_package(Doxygen)

set(DAGMC_SOURCE_DIR ${PROJECT_SOURCE_DIR})

if (DOXYGEN_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Makefile ${CMAKE_CURRENT_BINARY_DIR}/Makefile COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/index.rst ${CMAKE_CURRENT_BINARY_DIR}/index.rst COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf.py ${CMAKE_CURRENT_BINARY_DIR}/conf.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/requirements.txt ${CMAKE_CURRENT_BINARY_DIR}/requirements.txt COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/make.bat ${CMAKE_CURRENT_BINARY_DIR}/make.bat COPYONLY)
else()
message(WARNING "Doxygen is required to build the documentation for DAGMC.")
endif()
Loading
Loading