Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moose
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sahil Moza
moose
Commits
36c23d2e
Commit
36c23d2e
authored
8 years ago
by
Dilawar Singh
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:BhallaLab/moose
parents
8012451a
84cfe95d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/user/py/quickstart/index.rst
+10
-12
10 additions, 12 deletions
docs/user/py/quickstart/index.rst
with
10 additions
and
12 deletions
docs/user/py/quickstart/index.rst
+
10
−
12
View file @
36c23d2e
...
@@ -2,11 +2,8 @@
...
@@ -2,11 +2,8 @@
Getting started with python scripting
Getting started with python scripting
=====================================
=====================================
.. :Author: Subhasis Ray
.. :Authors: Subhasis Ray, Harsha Rani, Dilawar Singh, Upinder Bhalla
.. :Date: December 12, 2012,
.. :Last-Updated: Jan 21, 2016
.. :By: Harsha Rani
.. _quickstart-intro:
.. _quickstart-intro:
Introduction
Introduction
...
@@ -14,13 +11,14 @@ Introduction
...
@@ -14,13 +11,14 @@ Introduction
This document describes how to use the ``moose`` module in Python
This document describes how to use the ``moose`` module in Python
scripts or in an interactive Python shell. It aims to give you enough
scripts or in an interactive Python shell. It aims to give you enough
overview to help you start scripting using MOOSE and extract f
a
rther
overview to help you start scripting using MOOSE and extract f
u
rther
information that may be required for advanced work. Knowledge of
information that may be required for advanced work. Knowledge of
Python or programming in general will be helpful. If you just want to
Python or programming in general will be helpful. If you just want to
simulate existing models in one of the supported formats, you can fire
simulate existing models in one of the supported formats, you can fire
the MOOSE GUI and locate the model file using the ``File`` menu and
the MOOSE GUI and locate the model file using the ``File`` menu and
load it. The GUI is described in separate document. If you
load it. The GUI is described in separate document.
are looking for recipes for specific tasks, take a look at
.. todo:: link to moose-gui documentation.
If you are looking for recipes for specific tasks, take a look at
:doc:`moose_cookbook`. The example code in the boxes can be entered in
:doc:`moose_cookbook`. The example code in the boxes can be entered in
a Python shell.
a Python shell.
...
@@ -79,11 +77,11 @@ represented by classes and individual instances of those types are
...
@@ -79,11 +77,11 @@ represented by classes and individual instances of those types are
objects of those classes. Objects are the building-blocks of models in
objects of those classes. Objects are the building-blocks of models in
MOOSE. We call MOOSE objects ``element`` and use object and element
MOOSE. We call MOOSE objects ``element`` and use object and element
interchangeably in the context of MOOSE. Elements are conceptually laid
interchangeably in the context of MOOSE. Elements are conceptually laid
out in a tree-like hierarchical structure
. If you are familiar with
file
out in a tree-like hierarchical structure
just like
file
system hierarchies in common operating systems
, this should be simple
.
system hierarchies in common operating systems.
At the top of the object hierarchy sits the ``Shell``
,
equivalent to the
At the top of the object hierarchy sits the ``Shell``
(
equivalent to the
root directory in UNIX-based systems and represented by the path ``/``.
root directory in UNIX-based systems and represented by the path ``/``
)
.
You can list the existing objects under ``/`` using the ``le`` function. ::
You can list the existing objects under ``/`` using the ``le`` function. ::
>>> moose.le()
>>> moose.le()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment