diff --git a/COPYING b/COPYING
deleted file mode 100644
index de2dcce..0000000
--- a/COPYING
+++ /dev/null
@@ -1,678 +0,0 @@
--------------------------------------------------------------------------
-
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc.
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-
- Copyright (C)
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see .
-
-Also add information on how to contact you by electronic and paper mail.
-
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- Copyright (C)
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-.
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-.
-
--------------------------------------------------------------------------
diff --git a/DISCLAIMER b/DISCLAIMER
deleted file mode 100644
index 5a7dfe2..0000000
--- a/DISCLAIMER
+++ /dev/null
@@ -1,10 +0,0 @@
-Parts of the code uses OpenFOAM® technology. This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks.
-
-Detailed information on the OpenFOAM trademark can be found at
-
- - http://www.openfoam.com/legal/trademark-policy.php
- - http://www.openfoam.com/legal/trademark-guidelines.php
-
-For further information on OpenCFD and OpenFOAM, please refer to
-
- - http://www.openfoam.com
diff --git a/README b/README
deleted file mode 100755
index 816c6c1..0000000
--- a/README
+++ /dev/null
@@ -1,107 +0,0 @@
-/*---------------------------------------------------------------------------*\
- CFDEMcoupling - Open Source CFD-DEM coupling
-
- CFD-DEM coupling toolbox, released by
- DCS Computing GmbH, Linz, Austria
- www.dcs-computing.com, office@dcs-computing.com
-
- CFDEMcoupling is part of the CFDEMproject
- www.cfdem.com
-
- CFDEMcoupling is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the
- Free Software Foundation; either version 3 of the License, or (at your
- option) any later version.
-
- CFDEMcoupling is part of CFDEMproject:
- www.liggghts.com | www.cfdem.com
-
- Core developer and main author:
- Christoph Goniva, christoph.goniva@dcs-computing.com
-
- LIGGGHTS® and CFDEM® are registered trade marks of DCS Computing GmbH,
- the producer of the LIGGGHTS® software and the CFDEM®coupling software
- See http://www.cfdem.com/terms-trademark-policy for details.
-/*---------------------------------------------------------------------------*\
-Copyright
-
- Copyright 2012- DCS Computing GmbH, Linz
- Copyright 2009-2015 JKU Linz
-
- Some parts of CFDEMcoupling are based on OpenFOAM® and Copyright on these
- parts is held by the OpenFOAM® Foundation (www.openFoam.org)
- and potentially other parties.
- Some parts of CFDEMcoupling are contributied by other parties, which are
- holding the Copyright. This is listed in each file of the distribution.
-/*---------------------------------------------------------------------------*\
-License
-
- This file is part of CFDEMcoupling.
-
- CFDEMcoupling is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the
- Free Software Foundation; either version 3 of the License, or (at your
- option) any later version.
-
- CFDEMcoupling is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with CFDEMcoupling; if not, write to the Free Software Foundation,
- Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-/*---------------------------------------------------------------------------*\
-Description
- This code provides models and solvers to realize coupled CFD-DEM simulations
- using LIGGGHTS and OpenFOAM® technology.
- Note: this code is not part of OpenFOAM®.
- This offering is not approved or endorsed by OpenCFD Limited,
- the producer of the OpenFOAM® software and owner of the OPENFOAM®
- and OpenCFD® trade marks.
-\*---------------------------------------------------------------------------*/
-
-
-CFDEM® coupling provides an open source parallel coupled CFD-DEM framework
-combining the strengths of LIGGGHTS® DEM code and the Open Source
-CFD package OpenFOAM®(*). The CFDEM®coupling toolbox allows to expand
-standard CFD solvers of OpenFOAM®(*) to include a coupling to the DEM
-code LIGGGHTS®. In this toolbox the particle representation within the
-CFD solver is organized by "cloud" classes. Key functionalities are organised
-in sub-models (e.g. force models, data exchange models, etc.), which can easily
-be selected and combined by dictionary settings.
-
-The coupled solvers run fully parallel on distributed-memory clusters.
-
-Features are:
-
-- its modular approach allows users to easily implement new models
-- its MPI parallelization enables to use it for large scale problems
-- the "forum" (www.cfdem.com) on CFD-DEM gives the possibility
- to exchange with other users / developers
-- the use of GIT allows to easily update to the latest version
-- basic documentation is provided
-
-The CFDEM®coupling distribution includes the following files and directories:
-
-- "README" file (this file)
-- "COPYING" file the GNU General Public License (GPL)
-- "DISCLAIMER" file
-- "src" directory including the source files of the coupling toolbox and models
-- "applications" directory including the solver files for coupled CFD-DEM simulations
-- "doc" directory including the documentation of CFDEM®coupling
-- "tutorials" directory including basic tutorial cases showing the functionality
-
-Details on installation are given on the "www.cfdem.com" website.
-
-The functionality of this CFD-DEM framwork is described via "tutorial cases" showing
-how to use different solvers and models.
-
-CFDEM®coupling stands for Computational Fluid Dynamics (CFD) -
-Discrete Element Method (DEM) coupling.
-
-\*---------------------------------------------------------------------------*/
-(*) This offering is not approved or endorsed by OpenCFD Limited,
- the producer of the OpenFOAM software and
- owner of the OPENFOAM® and OpenCFD® trade marks.
-\*---------------------------------------------------------------------------*/
diff --git a/applications/solvers/cfdemSolverIB/Make/options b/applications/solvers/cfdemSolverIB/Make/options
index c3aae78..6b65ebe 100755
--- a/applications/solvers/cfdemSolverIB/Make/options
+++ b/applications/solvers/cfdemSolverIB/Make/options
@@ -1,10 +1,12 @@
+sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
EXE_INC = \
$(PFLAGS) \
- $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
+ $(PINC) \
+ $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
@@ -16,6 +18,7 @@ EXE_INC = \
-I$(LIB_SRC)/dynamicMesh/dynamicFvMesh/lnInclude \
-I$(LIB_SRC)/dynamicMesh/dynamicMesh/lnInclude \
-I$(CFDEM_LIGGGHTS_SRC_DIR)
+
EXE_LIBS = \
-L$(CFDEM_LIB_DIR)\
$(CFDEM_ADD_INCOMPTURBMOD_LIBS) \
diff --git a/applications/solvers/cfdemSolverIB/cfdemSolverIB.C b/applications/solvers/cfdemSolverIB/cfdemSolverIB.C
index 3a005b1..bd0700b 100755
--- a/applications/solvers/cfdemSolverIB/cfdemSolverIB.C
+++ b/applications/solvers/cfdemSolverIB/cfdemSolverIB.C
@@ -47,7 +47,6 @@ Contributions
#else
#include "turbulenceModel.H"
#endif
-#include "superquadric_flag.h"
#include "cfdemCloudIB.H"
#if defined(SUPERQUADRIC_ACTIVE_FLAG)
#include "cfdemCloudIBSuperquadric.H"
@@ -108,7 +107,7 @@ int main(int argc, char *argv[])
//=== dyM ===================
interFace = mag(mesh.lookupObject("voidfractionNext"));
- mesh.update(); //dyM
+ particleCloud.setMeshHasUpdatedFlag(mesh.update()); //dyM
#if defined(version30)
#include "readTimeControls.H"
diff --git a/applications/solvers/cfdemSolverPiso/Make/options b/applications/solvers/cfdemSolverPiso/Make/options
index a5f603d..3a8d791 100644
--- a/applications/solvers/cfdemSolverPiso/Make/options
+++ b/applications/solvers/cfdemSolverPiso/Make/options
@@ -1,14 +1,17 @@
+sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
EXE_INC = \
$(PFLAGS) \
- $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
+ $(PINC) \
+ $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
+ -I$(LIB_SRC)/fvOptions/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/cfdTools \
-I$(CFDEM_LIGGGHTS_SRC_DIR)
@@ -19,6 +22,7 @@ EXE_LIBS = \
-lincompressibleTransportModels \
-lfiniteVolume \
-lmeshTools \
+ -lfvOptions \
-l$(CFDEM_LIB_NAME) \
$(CFDEM_ADD_LIB_PATHS) \
$(CFDEM_ADD_LIBS)
diff --git a/applications/solvers/cfdemSolverPiso/cfdemSolverPiso.C b/applications/solvers/cfdemSolverPiso/cfdemSolverPiso.C
index 104a0a8..0a48e6e 100644
--- a/applications/solvers/cfdemSolverPiso/cfdemSolverPiso.C
+++ b/applications/solvers/cfdemSolverPiso/cfdemSolverPiso.C
@@ -44,13 +44,17 @@ Description
#else
#include "turbulenceModel.H"
#endif
+#if defined(versionv1606plus) || defined(version40)
+ #include "fvOptions.H"
+#else
+ #include "fvIOoptionList.H"
+#endif
#include "fixedFluxPressureFvPatchScalarField.H"
#include "cfdemCloud.H"
#if defined(anisotropicRotation)
#include "cfdemCloudRotation.H"
#endif
-#include "superquadric_flag.h"
#if defined(SUPERQUADRIC_ACTIVE_FLAG)
#include "cfdemCloudRotationSuperquadric.H"
#endif
@@ -72,6 +76,7 @@ int main(int argc, char *argv[])
#include "createTimeControls.H"
#endif
#include "createFields.H"
+ #include "createFvOptions.H"
#include "initContinuityErrs.H"
// create cfdemCloud
@@ -89,8 +94,6 @@ int main(int argc, char *argv[])
Info<< "\nStarting time loop\n" << endl;
while (runTime.loop())
{
- particleCloud.clockM().start(1,"Global");
-
Info<< "Time = " << runTime.timeName() << nl << endl;
#if defined(version30)
@@ -103,6 +106,7 @@ int main(int argc, char *argv[])
#endif
// do particle stuff
+ particleCloud.clockM().start(1,"Global");
particleCloud.clockM().start(2,"Coupling");
bool hasEvolved = particleCloud.evolve(voidfraction,Us,U);
@@ -139,9 +143,11 @@ int main(int argc, char *argv[])
+ particleCloud.divVoidfractionTau(U, voidfraction)
==
- fvm::Sp(Ksl/rho,U)
+ + fvOptions(U)
);
UEqn.relax();
+ fvOptions.constrain(UEqn);
#if defined(version30)
if (piso.momentumPredictor())
@@ -153,6 +159,8 @@ int main(int argc, char *argv[])
solve(UEqn == - fvc::grad(p) + Ksl/rho*Us);
else
solve(UEqn == - voidfraction*fvc::grad(p) + Ksl/rho*Us);
+
+ fvOptions.correct(U);
}
// --- PISO loop
@@ -190,7 +198,11 @@ int main(int argc, char *argv[])
{
setSnGrad
(
- p.boundaryField(),
+ #ifdef versionv1612plus
+ p.boundaryFieldRef(),
+ #else
+ p.boundaryField(),
+ #endif
(
phi.boundaryField()
- (mesh.Sf().boundaryField() & U.boundaryField())
@@ -200,7 +212,11 @@ int main(int argc, char *argv[])
{
setSnGrad
(
- p.boundaryField(),
+ #ifdef versionv1612plus
+ p.boundaryFieldRef(),
+ #else
+ p.boundaryField(),
+ #endif
(
phi.boundaryField()
- (mesh.Sf().boundaryField() & U.boundaryField())
@@ -258,6 +274,7 @@ int main(int argc, char *argv[])
U -= voidfraction*rUA*fvc::grad(p) - Ksl/rho*Us*rUA;
U.correctBoundaryConditions();
+ fvOptions.correct(U);
} // end piso loop
}
diff --git a/applications/solvers/cfdemSolverPisoSTM/Make/options b/applications/solvers/cfdemSolverPisoSTM/Make/options
index 1146aba..d72dd80 100644
--- a/applications/solvers/cfdemSolverPisoSTM/Make/options
+++ b/applications/solvers/cfdemSolverPisoSTM/Make/options
@@ -1,10 +1,12 @@
+sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
EXE_INC = \
$(PFLAGS) \
- $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
+ $(PINC) \
+ $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
@@ -12,6 +14,7 @@ EXE_INC = \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/cfdTools \
-I$(CFDEM_SRC_DIR)/eulerian/scalarTransportModelsCFDEM/lnInclude \
+ -I$(CFDEM_LIGGGHTS_SRC_DIR)
EXE_LIBS = \
-L$(CFDEM_LIB_DIR)\
diff --git a/applications/solvers/cfdemSolverPisoSTM/cfdemSolverPisoSTM.C b/applications/solvers/cfdemSolverPisoSTM/cfdemSolverPisoSTM.C
index d4763f8..1f505cc 100644
--- a/applications/solvers/cfdemSolverPisoSTM/cfdemSolverPisoSTM.C
+++ b/applications/solvers/cfdemSolverPisoSTM/cfdemSolverPisoSTM.C
@@ -44,7 +44,11 @@ Description
#include "turbulenceModel.H"
#endif
#include "fixedFluxPressureFvPatchScalarField.H"
-#include "cfdemCloud.H"
+#ifdef MS
+ #include "cfdemCloudMS.H"
+#else
+ #include "cfdemCloud.H"
+#endif
#if defined(anisotropicRotation)
#include "cfdemCloudRotation.H"
#endif
@@ -73,7 +77,11 @@ int main(int argc, char *argv[])
#if defined(anisotropicRotation)
cfdemCloudRotation particleCloud(mesh);
#else
- cfdemCloud particleCloud(mesh);
+ #ifdef MS
+ cfdemCloudMS particleCloud(mesh);
+ #else
+ cfdemCloud particleCloud(mesh);
+ #endif
#endif
#include "checkModelType.H"
@@ -124,14 +132,9 @@ int main(int argc, char *argv[])
particleCloud.clockM().start(26,"Flow");
- // get scalar source from DEM
- particleCloud.forceM(1).manipulateScalarField(Tsource);
- Tsource.correctBoundaryConditions();
-
+ //Scalar transport if desired. Use "none" (noTransport) if no scalar transport is desired
stm().update();
- particleCloud.clockM().start(26,"Flow");
-
if(particleCloud.solveFlow())
{
// Pressure-velocity PISO corrector
@@ -196,7 +199,11 @@ int main(int argc, char *argv[])
{
setSnGrad
(
- p.boundaryField(),
+ #ifdef versionv1612plus
+ p.boundaryFieldRef(),
+ #else
+ p.boundaryField(),
+ #endif
(
phi.boundaryField()
- (mesh.Sf().boundaryField() & U.boundaryField())
@@ -206,7 +213,11 @@ int main(int argc, char *argv[])
{
setSnGrad
(
- p.boundaryField(),
+ #ifdef versionv1612plus
+ p.boundaryFieldRef(),
+ #else
+ p.boundaryField(),
+ #endif
(
phi.boundaryField()
- (mesh.Sf().boundaryField() & U.boundaryField())
diff --git a/applications/solvers/cfdemSolverPisoScalar/Make/options b/applications/solvers/cfdemSolverPisoScalar/Make/options
index db9c417..4245ee5 100644
--- a/applications/solvers/cfdemSolverPisoScalar/Make/options
+++ b/applications/solvers/cfdemSolverPisoScalar/Make/options
@@ -1,16 +1,19 @@
+sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
EXE_INC = \
$(PFLAGS) \
- $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
+ $(PINC) \
+ $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/cfdTools \
+ -I$(CFDEM_LIGGGHTS_SRC_DIR)
EXE_LIBS = \
-L$(CFDEM_LIB_DIR)\
diff --git a/applications/solvers/cfdemSolverPisoScalar/cfdemSolverPisoScalar.C b/applications/solvers/cfdemSolverPisoScalar/cfdemSolverPisoScalar.C
index b1af991..ba339a4 100644
--- a/applications/solvers/cfdemSolverPisoScalar/cfdemSolverPisoScalar.C
+++ b/applications/solvers/cfdemSolverPisoScalar/cfdemSolverPisoScalar.C
@@ -121,6 +121,7 @@ int main(int argc, char *argv[])
// get scalar source from DEM
particleCloud.forceM(1).manipulateScalarField(Tsource);
Tsource.correctBoundaryConditions();
+ particleCloud.forceM(1).commToDEM();
// solve scalar transport equation
fvScalarMatrix TEqn
@@ -198,7 +199,11 @@ int main(int argc, char *argv[])
{
setSnGrad
(
- p.boundaryField(),
+ #ifdef versionv1612plus
+ p.boundaryFieldRef(),
+ #else
+ p.boundaryField(),
+ #endif
(
phi.boundaryField()
- (mesh.Sf().boundaryField() & U.boundaryField())
@@ -208,7 +213,11 @@ int main(int argc, char *argv[])
{
setSnGrad
(
- p.boundaryField(),
+ #ifdef versionv1612plus
+ p.boundaryFieldRef(),
+ #else
+ p.boundaryField(),
+ #endif
(
phi.boundaryField()
- (mesh.Sf().boundaryField() & U.boundaryField())
diff --git a/applications/utilities/cfdemPostproc/Make/options b/applications/utilities/cfdemPostproc/Make/options
index dbbf058..e51ebc0 100644
--- a/applications/utilities/cfdemPostproc/Make/options
+++ b/applications/utilities/cfdemPostproc/Make/options
@@ -1,15 +1,18 @@
+sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
EXE_INC = \
$(PFLAGS) \
- $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
+ $(PINC) \
+ $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
+ -I$(CFDEM_LIGGGHTS_SRC_DIR)
EXE_LIBS = \
diff --git a/applications/utilities/cfdemPostproc/cfdemPostproc.C b/applications/utilities/cfdemPostproc/cfdemPostproc.C
index 5c64bf5..ae1cd55 100644
--- a/applications/utilities/cfdemPostproc/cfdemPostproc.C
+++ b/applications/utilities/cfdemPostproc/cfdemPostproc.C
@@ -114,8 +114,11 @@ int main(int argc, char *argv[])
particleCloud.setPos(positions_);
particleCloud.voidFractionM().setvoidFraction(NULL,voidfractions_,particleWeights_,particleVolumes_,particleV_);
-
- voidfraction.internalField() = particleCloud.voidFractionM().voidFractionInterp();
+ #ifdef versionv1612plus
+ voidfraction = particleCloud.voidFractionM().voidFractionInterp();
+ #else
+ voidfraction.internalField() = particleCloud.voidFractionM().voidFractionInterp();
+ #endif
voidfraction.correctBoundaryConditions();
particleCloud.averagingM().setVectorAverage
diff --git a/doc/CFDEMcoupling_Manual.txt b/doc/CFDEMcoupling_Manual.txt
index 22108c1..65bbc4a 100644
--- a/doc/CFDEMcoupling_Manual.txt
+++ b/doc/CFDEMcoupling_Manual.txt
@@ -1,7 +1,7 @@
-"CFDEMproject WWW Site"_lws :c
+"CFDEM(R)project WWW Site"_lws :c
:line
-CFDEMcoupling Documentation :h2,c
+CFDEM(R)coupling Documentation :h2,c
:line
:c,image(Portfolio_CFDEMcoupling.png)
:line
@@ -13,9 +13,9 @@ CFDEMcoupling Documentation :h2,c
1. Contents :h3
-The CFDEMcoupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEMcoupling documentation can be improved.
+The CFDEM(R)coupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEM(R)coupling documentation can be improved.
-1.1 "About CFDEMcoupling"_#1_1
+1.1 "About CFDEM(R)coupling"_#1_1
1.2 "Installation"_#1_2
1.3 "Tutorials"_#1_3
1.4 "couplingProperties dictionary"_#1_4
@@ -24,9 +24,9 @@ The CFDEMcoupling documentation is organized into the following sections. If you
:line
-1.1 About CFDEMcoupling :link(1_1),h4
+1.1 About CFDEM(R)coupling :link(1_1),h4
-CFDEM coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of "LIGGGHTS"_lig DEM code and the Open Source CFD package "OpenFOAM(R)(*)"_of. The CFDEMcoupling toolbox allows to expand standard CFD solvers of "OpenFOAM(R)(*)"_of to include a coupling to the DEM code "LIGGGHTS"_lig. In this toolbox the particle representation within the CFD solver is organized by "cloud" classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.
+CFDEM(R)coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of "LIGGGHTS(R)"_lig DEM code and the Open Source CFD package "OpenFOAM(R)(*)"_of. The CFDEM(R)coupling toolbox allows to expand standard CFD solvers of "OpenFOAM(R)(*)"_of to include a coupling to the DEM code "LIGGGHTS(R)"_lig. In this toolbox the particle representation within the CFD solver is organized by "cloud" classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.
The coupled solvers run fully parallel on distributed-memory clusters. Features are:
@@ -41,18 +41,18 @@ The file structure:
{src} directory including the source files of the coupling toolbox and models :ulb,l
{applications} directory including the solver files for coupled CFD-DEM simulations :l
-{doc} directory including the documentation of CFDEMcoupling :l
+{doc} directory including the documentation of CFDEM(R)coupling :l
{tutorials} directory including basic tutorial cases showing the functionality :l
:ule
-Details on installation are given on the "CFDEMproject WWW Site"_lws .
+Details on installation are given on the "CFDEM(R)project WWW Site"_lws .
The functionality of this CFD-DEM framework is described via "tutorial cases"_#_1_2 showing how to use different solvers and models.
-CFDEMcoupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.
+CFDEM(R)coupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.
-CFDEMcoupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).
+CFDEM(R)coupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).
-Core development of CFDEMcoupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012
+Core development of CFDEM(R)coupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012
This documentation was written by Christoph Goniva, DCS Computing GmbH, 2012
@@ -72,7 +72,7 @@ In order to get the latest code version, please use the git repository at http:/
[General:]
-Each solver of the CFDEMcoupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via "Allrun.sh" shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).
+Each solver of the CFDEM(R)coupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via "Allrun.sh" shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).
[Location:]
@@ -90,11 +90,11 @@ Provided that the installation is correct, the tutorials can be run via "Allrun.
The main settings of a simulation are done via dictionaries:
-The DEM setup of each case is defined by a "LIGGGHTS"_lig input file located in $caseDir/DEM (e.g. in.liggghts_init). For details on the "LIGGGHTS"_lig setup, please have a look at the "LIGGGHTS"_lig manual.
+The DEM setup of each case is defined by a "LIGGGHTS(R)"_lig input file located in $caseDir/DEM (e.g. in.liggghts_init). For details on the "LIGGGHTS(R)"_lig setup, please have a look at the "LIGGGHTS(R)"_lig manual.
Standard CFD settings are defined in $caseDir/CFD/constant (e.g. transportProperties, RASproperties, etc.) and $caseDir/CFD/system (e.g. fvSchemes, controlDict). You can find more information on that in "OpenFOAM(R)(*)"_of documentations (www.openFoam.com)(*).
-Settings of the coupling routines are defined in $caseDir/CFD/constant/"couplingProperies"_#1_3 (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/"liggghtsCommands"_#1_3 (allows to execute a LIGGGHTS command during a coupled simulation).
+Settings of the coupling routines are defined in $caseDir/CFD/constant/"couplingProperies"_#1_3 (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/"liggghtsCommands"_#1_3 (allows to execute a LIGGGHTS(R) command during a coupled simulation).
:line
@@ -134,7 +134,7 @@ Reasonable example settings for the "couplingProperties" dictionary are given in
modelType :pre
-"modelType" refers to the formulation of the equations to be solved. Choose "A", "B" or "Bfull", according to Zhou et al. (2010): "Discrete particle simulation of particle-fluid flow: model formulations and their applicability", JFM. "A" requires the use of the force models gradPForce and viscForce, whereas "B" requires the force model "Archimedes". "Bfull" refers to model type I.
+"modelType" refers to the formulation of the equations to be solved. Choose "A", "B" or "Bfull", according to Zhou et al. (2010): "Discrete particle simulation of particle-fluid flow: model formulations and their applicability", JFM. "A" requires the use of the force models gradPForce and viscForce, whereas "B" requires the force model "Archimedes". "Bfull" refers to model type I, "A" refers to model type II and "B" refers to type III in the nomenclature used by Zhou et al.
couplingInterval :pre
@@ -153,7 +153,7 @@ Example: DEMts=0.00001s, couplingInterval=10 exchange data (=couple) will happen
[General:]
-In the "liggghtsCommands" dictionary liggghts commands being executed during a coupled CFD-DEM simulation are specified.
+In the "liggghtsCommands" dictionary LIGGGHTS(R) commands being executed during a coupled CFD-DEM simulation are specified.
[Location:] $caseDir/CFD/constant
@@ -190,10 +190,14 @@ listing below of styles within certain commands.
"averagingModel_dilute"_averagingModel_dilute.html,
"cfdemSolverIB"_cfdemSolverIB.html,
"cfdemSolverPiso"_cfdemSolverPiso.html,
+"cfdemSolverPisoSTM"_cfdemSolverPisoSTM.html,
"cfdemSolverPisoScalar"_cfdemSolverPisoScalar.html,
"clockModel"_clockModel.html,
"clockModel_noClock"_clockModel_noClock.html,
"clockModel_standardClock"_clockModel_standardClock.html,
+"couple/cfd"_fix_couple_cfd.html,
+"couple/cfd/force"_fix_couple_cfd_force.html,
+"couple/cfd/force/implicit"_fix_couple_cfd_force_implicit.html,
"dataExchangeModel"_dataExchangeModel.html,
"dataExchangeModel_noDataExchange"_dataExchangeModel_noDataExchange.html,
"dataExchangeModel_oneWayVTK"_dataExchangeModel_oneWayVTK.html,
@@ -244,6 +248,7 @@ listing below of styles within certain commands.
"regionModel"_regionModel.html,
"regionModel_allRegion"_regionModel_allRegion.html,
"scalarTransportModel"_scalarTransportModel.html,
+"scalarTransportModel_generalManual"_scalarTransportModel_generalManual.html,
"smoothingModel"_smoothingModel.html,
"smoothingModel_constDiffSmoothing"_smoothingModel_constDiffSmoothing.html,
"smoothingModel_noSmoothing"_smoothingModel_noSmoothing.html,
diff --git a/doc/Eqs/voidfractionModel_divided_pic1.png b/doc/Eqs/voidfractionModel_divided_pic1.png
new file mode 100755
index 0000000..b455f06
Binary files /dev/null and b/doc/Eqs/voidfractionModel_divided_pic1.png differ
diff --git a/doc/Eqs/voidfractionModel_divided_pic2.png b/doc/Eqs/voidfractionModel_divided_pic2.png
new file mode 100755
index 0000000..9b331fb
Binary files /dev/null and b/doc/Eqs/voidfractionModel_divided_pic2.png differ
diff --git a/doc/Eqs/voidfractionModel_divided_pic3.png b/doc/Eqs/voidfractionModel_divided_pic3.png
new file mode 100755
index 0000000..5430f27
Binary files /dev/null and b/doc/Eqs/voidfractionModel_divided_pic3.png differ
diff --git a/doc/Eqs/voidfractionModel_divided_pic4.png b/doc/Eqs/voidfractionModel_divided_pic4.png
new file mode 100755
index 0000000..c3520b5
Binary files /dev/null and b/doc/Eqs/voidfractionModel_divided_pic4.png differ
diff --git a/doc/Eqs/voidfractionModel_divided_pic5.png b/doc/Eqs/voidfractionModel_divided_pic5.png
new file mode 100755
index 0000000..acd4ad8
Binary files /dev/null and b/doc/Eqs/voidfractionModel_divided_pic5.png differ
diff --git a/doc/Eqs/voidfractionModel_divided_pic6.png b/doc/Eqs/voidfractionModel_divided_pic6.png
new file mode 100755
index 0000000..4c051ab
Binary files /dev/null and b/doc/Eqs/voidfractionModel_divided_pic6.png differ
diff --git a/doc/_build/doctrees/CFDEMcoupling_Manual.doctree b/doc/_build/doctrees/CFDEMcoupling_Manual.doctree
index 8c5a4a4..dedd7db 100644
Binary files a/doc/_build/doctrees/CFDEMcoupling_Manual.doctree and b/doc/_build/doctrees/CFDEMcoupling_Manual.doctree differ
diff --git a/doc/_build/doctrees/cfdemSolverPisoSTM.doctree b/doc/_build/doctrees/cfdemSolverPisoSTM.doctree
new file mode 100644
index 0000000..44251e3
Binary files /dev/null and b/doc/_build/doctrees/cfdemSolverPisoSTM.doctree differ
diff --git a/doc/_build/doctrees/cfdemSolverPisoScalar.doctree b/doc/_build/doctrees/cfdemSolverPisoScalar.doctree
index 242a881..3d9f21a 100644
Binary files a/doc/_build/doctrees/cfdemSolverPisoScalar.doctree and b/doc/_build/doctrees/cfdemSolverPisoScalar.doctree differ
diff --git a/doc/_build/doctrees/clockModel_standardClock.doctree b/doc/_build/doctrees/clockModel_standardClock.doctree
index 08041e1..0d645c6 100644
Binary files a/doc/_build/doctrees/clockModel_standardClock.doctree and b/doc/_build/doctrees/clockModel_standardClock.doctree differ
diff --git a/doc/_build/doctrees/dataExchangeModel.doctree b/doc/_build/doctrees/dataExchangeModel.doctree
index ac76134..1385151 100644
Binary files a/doc/_build/doctrees/dataExchangeModel.doctree and b/doc/_build/doctrees/dataExchangeModel.doctree differ
diff --git a/doc/_build/doctrees/environment.pickle b/doc/_build/doctrees/environment.pickle
index eedff1a..8eda42d 100644
Binary files a/doc/_build/doctrees/environment.pickle and b/doc/_build/doctrees/environment.pickle differ
diff --git a/doc/_build/doctrees/fix_couple_cfd.doctree b/doc/_build/doctrees/fix_couple_cfd.doctree
new file mode 100644
index 0000000..84a0de2
Binary files /dev/null and b/doc/_build/doctrees/fix_couple_cfd.doctree differ
diff --git a/doc/_build/doctrees/fix_couple_cfd_force.doctree b/doc/_build/doctrees/fix_couple_cfd_force.doctree
new file mode 100644
index 0000000..d5011e1
Binary files /dev/null and b/doc/_build/doctrees/fix_couple_cfd_force.doctree differ
diff --git a/doc/_build/doctrees/fix_couple_cfd_force_implicit.doctree b/doc/_build/doctrees/fix_couple_cfd_force_implicit.doctree
new file mode 100644
index 0000000..b834fd5
Binary files /dev/null and b/doc/_build/doctrees/fix_couple_cfd_force_implicit.doctree differ
diff --git a/doc/_build/doctrees/forceModel_Archimedes.doctree b/doc/_build/doctrees/forceModel_Archimedes.doctree
index af9401a..396cc64 100644
Binary files a/doc/_build/doctrees/forceModel_Archimedes.doctree and b/doc/_build/doctrees/forceModel_Archimedes.doctree differ
diff --git a/doc/_build/doctrees/forceModel_DiFeliceDrag.doctree b/doc/_build/doctrees/forceModel_DiFeliceDrag.doctree
index 96e76ec..81dc5fe 100644
Binary files a/doc/_build/doctrees/forceModel_DiFeliceDrag.doctree and b/doc/_build/doctrees/forceModel_DiFeliceDrag.doctree differ
diff --git a/doc/_build/doctrees/forceModel_GidaspowDrag.doctree b/doc/_build/doctrees/forceModel_GidaspowDrag.doctree
index 0728f7e..b5c071f 100644
Binary files a/doc/_build/doctrees/forceModel_GidaspowDrag.doctree and b/doc/_build/doctrees/forceModel_GidaspowDrag.doctree differ
diff --git a/doc/_build/doctrees/forceModel_ShirgaonkarIB.doctree b/doc/_build/doctrees/forceModel_ShirgaonkarIB.doctree
index 0cc2eb2..b052ed7 100644
Binary files a/doc/_build/doctrees/forceModel_ShirgaonkarIB.doctree and b/doc/_build/doctrees/forceModel_ShirgaonkarIB.doctree differ
diff --git a/doc/_build/doctrees/forceModel_checkCouplingInterval.doctree b/doc/_build/doctrees/forceModel_checkCouplingInterval.doctree
index e4ffeb9..9eb6f6b 100644
Binary files a/doc/_build/doctrees/forceModel_checkCouplingInterval.doctree and b/doc/_build/doctrees/forceModel_checkCouplingInterval.doctree differ
diff --git a/doc/_build/doctrees/forceModel_particleCellVolume.doctree b/doc/_build/doctrees/forceModel_particleCellVolume.doctree
index 4b7e8b5..96de022 100644
Binary files a/doc/_build/doctrees/forceModel_particleCellVolume.doctree and b/doc/_build/doctrees/forceModel_particleCellVolume.doctree differ
diff --git a/doc/_build/doctrees/forceModel_particleVolume.doctree b/doc/_build/doctrees/forceModel_particleVolume.doctree
index b72ba76..8b260b4 100644
Binary files a/doc/_build/doctrees/forceModel_particleVolume.doctree and b/doc/_build/doctrees/forceModel_particleVolume.doctree differ
diff --git a/doc/_build/doctrees/forceModel_scalarGeneralExchange.doctree b/doc/_build/doctrees/forceModel_scalarGeneralExchange.doctree
index e00bb94..4a232b6 100644
Binary files a/doc/_build/doctrees/forceModel_scalarGeneralExchange.doctree and b/doc/_build/doctrees/forceModel_scalarGeneralExchange.doctree differ
diff --git a/doc/_build/doctrees/forceModel_virtualMassForce.doctree b/doc/_build/doctrees/forceModel_virtualMassForce.doctree
index 04e874a..8f8eac7 100644
Binary files a/doc/_build/doctrees/forceModel_virtualMassForce.doctree and b/doc/_build/doctrees/forceModel_virtualMassForce.doctree differ
diff --git a/doc/_build/doctrees/forceModel_viscForce.doctree b/doc/_build/doctrees/forceModel_viscForce.doctree
index 5e7bedd..ac8e3fc 100644
Binary files a/doc/_build/doctrees/forceModel_viscForce.doctree and b/doc/_build/doctrees/forceModel_viscForce.doctree differ
diff --git a/doc/_build/doctrees/forceSubModel.doctree b/doc/_build/doctrees/forceSubModel.doctree
index 5f887e3..82fc612 100644
Binary files a/doc/_build/doctrees/forceSubModel.doctree and b/doc/_build/doctrees/forceSubModel.doctree differ
diff --git a/doc/_build/doctrees/forceSubModel_ImEx.doctree b/doc/_build/doctrees/forceSubModel_ImEx.doctree
index c6c1f3f..3655146 100644
Binary files a/doc/_build/doctrees/forceSubModel_ImEx.doctree and b/doc/_build/doctrees/forceSubModel_ImEx.doctree differ
diff --git a/doc/_build/doctrees/githubAccess_public.doctree b/doc/_build/doctrees/githubAccess_public.doctree
index ae79e77..097d151 100644
Binary files a/doc/_build/doctrees/githubAccess_public.doctree and b/doc/_build/doctrees/githubAccess_public.doctree differ
diff --git a/doc/_build/doctrees/liggghtsCommandModel_runLiggghts.doctree b/doc/_build/doctrees/liggghtsCommandModel_runLiggghts.doctree
index e353c87..f13b416 100644
Binary files a/doc/_build/doctrees/liggghtsCommandModel_runLiggghts.doctree and b/doc/_build/doctrees/liggghtsCommandModel_runLiggghts.doctree differ
diff --git a/doc/_build/doctrees/locateModel.doctree b/doc/_build/doctrees/locateModel.doctree
index 2cbf730..3807c79 100644
Binary files a/doc/_build/doctrees/locateModel.doctree and b/doc/_build/doctrees/locateModel.doctree differ
diff --git a/doc/_build/doctrees/locateModel_standardSearch.doctree b/doc/_build/doctrees/locateModel_standardSearch.doctree
index caa51c2..4756074 100644
Binary files a/doc/_build/doctrees/locateModel_standardSearch.doctree and b/doc/_build/doctrees/locateModel_standardSearch.doctree differ
diff --git a/doc/_build/doctrees/probeModel_noProbe.doctree b/doc/_build/doctrees/probeModel_noProbe.doctree
index 7e1c2ee..37de3ca 100644
Binary files a/doc/_build/doctrees/probeModel_noProbe.doctree and b/doc/_build/doctrees/probeModel_noProbe.doctree differ
diff --git a/doc/_build/doctrees/probeModel_particleProbe.doctree b/doc/_build/doctrees/probeModel_particleProbe.doctree
index 4d9c03f..f39a46b 100644
Binary files a/doc/_build/doctrees/probeModel_particleProbe.doctree and b/doc/_build/doctrees/probeModel_particleProbe.doctree differ
diff --git a/doc/_build/doctrees/scalarTransportModel.doctree b/doc/_build/doctrees/scalarTransportModel.doctree
index 80e6a14..8667fe2 100644
Binary files a/doc/_build/doctrees/scalarTransportModel.doctree and b/doc/_build/doctrees/scalarTransportModel.doctree differ
diff --git a/doc/_build/doctrees/scalarTransportModel_generalManual.doctree b/doc/_build/doctrees/scalarTransportModel_generalManual.doctree
new file mode 100644
index 0000000..9a3c3ed
Binary files /dev/null and b/doc/_build/doctrees/scalarTransportModel_generalManual.doctree differ
diff --git a/doc/_build/doctrees/voidFractionModel_centreVoidFraction.doctree b/doc/_build/doctrees/voidFractionModel_centreVoidFraction.doctree
index 6bfcbe4..4cad64f 100644
Binary files a/doc/_build/doctrees/voidFractionModel_centreVoidFraction.doctree and b/doc/_build/doctrees/voidFractionModel_centreVoidFraction.doctree differ
diff --git a/doc/_build/doctrees/voidFractionModel_dividedVoidFraction.doctree b/doc/_build/doctrees/voidFractionModel_dividedVoidFraction.doctree
index ca4e7b1..8dfe1c1 100644
Binary files a/doc/_build/doctrees/voidFractionModel_dividedVoidFraction.doctree and b/doc/_build/doctrees/voidFractionModel_dividedVoidFraction.doctree differ
diff --git a/doc/_build/html/CFDEMcoupling_Manual.html b/doc/_build/html/CFDEMcoupling_Manual.html
index eeafe69..710fa87 100644
--- a/doc/_build/html/CFDEMcoupling_Manual.html
+++ b/doc/_build/html/CFDEMcoupling_Manual.html
@@ -8,7 +8,7 @@
- CFDEMcoupling Documentation — CFDEMcoupling v3.X documentation
+ CFDEM(R)coupling Documentation — CFDEMcoupling v3.X documentation
@@ -82,9 +82,9 @@
The CFDEMcoupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEMcoupling documentation can be improved.
+
The CFDEM(R)coupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEM(R)coupling documentation can be improved.
CFDEM coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of LIGGGHTS DEM code and the Open Source CFD package OpenFOAM(R)(*). The CFDEMcoupling toolbox allows to expand standard CFD solvers of OpenFOAM(R)(*) to include a coupling to the DEM code LIGGGHTS. In this toolbox the particle representation within the CFD solver is organized by “cloud” classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.
CFDEM(R)coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of LIGGGHTS(R) DEM code and the Open Source CFD package OpenFOAM(R)(*). The CFDEM(R)coupling toolbox allows to expand standard CFD solvers of OpenFOAM(R)(*) to include a coupling to the DEM code LIGGGHTS(R). In this toolbox the particle representation within the CFD solver is organized by “cloud” classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.
The coupled solvers run fully parallel on distributed-memory clusters. Features are:
its modular approach allows users to easily implement new models
@@ -172,14 +172,14 @@
src directory including the source files of the coupling toolbox and models
applications directory including the solver files for coupled CFD-DEM simulations
-
doc directory including the documentation of CFDEMcoupling
+
doc directory including the documentation of CFDEM(R)coupling
tutorials directory including basic tutorial cases showing the functionality
Details on installation are given on the CFDEM(R)project WWW Site .
The functionality of this CFD-DEM framework is described via tutorial cases showing how to use different solvers and models.
-
CFDEMcoupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.
-
CFDEMcoupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).
-
Core development of CFDEMcoupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012
+
CFDEM(R)coupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.
+
CFDEM(R)coupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).
+
Core development of CFDEM(R)coupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012
This documentation was written by Christoph Goniva, DCS Computing GmbH, 2012
(*) This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks.
@@ -194,7 +194,7 @@ In order to get the latest code version, please use the git repository at
Each solver of the CFDEMcoupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via “Allrun.sh” shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).
+
Each solver of the CFDEM(R)coupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via “Allrun.sh” shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).
Location:
The tutorials can be found in the directory $CFDEM_PROJECT_DIR/tutorials, which can be reached by typing “cfdemTut”
The DEM setup of each case is defined by a LIGGGHTS(R) input file located in $caseDir/DEM (e.g. in.liggghts_init). For details on the LIGGGHTS(R) setup, please have a look at the LIGGGHTS(R) manual.
Standard CFD settings are defined in $caseDir/CFD/constant (e.g. transportProperties, RASproperties, etc.) and $caseDir/CFD/system (e.g. fvSchemes, controlDict). You can find more information on that in OpenFOAM(R)(*) documentations (www.openFoam.com)(*).
-
Settings of the coupling routines are defined in $caseDir/CFD/constant/couplingProperies (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/liggghtsCommands (allows to execute a LIGGGHTS command during a coupled simulation).
+
Settings of the coupling routines are defined in $caseDir/CFD/constant/couplingProperies (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/liggghtsCommands (allows to execute a LIGGGHTS(R) command during a coupled simulation).
@@ -236,7 +236,7 @@ In order to get the latest code version, please use the git repository at
“modelType” refers to the formulation of the equations to be solved. Choose “A”, “B” or “Bfull”, according to Zhou et al. (2010): “Discrete particle simulation of particle-fluid flow: model formulations and their applicability”, JFM. “A” requires the use of the force models gradPForce and viscForce, whereas “B” requires the force model “Archimedes”. “Bfull” refers to model type I.
+
“modelType” refers to the formulation of the equations to be solved. Choose “A”, “B” or “Bfull”, according to Zhou et al. (2010): “Discrete particle simulation of particle-fluid flow: model formulations and their applicability”, JFM. “A” requires the use of the force models gradPForce and viscForce, whereas “B” requires the force model “Archimedes”. “Bfull” refers to model type I, “A” refers to model type II and “B” refers to type III in the nomenclature used by Zhou et al.
couplingInterval
@@ -251,7 +251,7 @@ In order to get the latest code version, please use the git repository at
diff --git a/doc/_build/html/_images/voidfractionModel_divided_pic2.png b/doc/_build/html/_images/voidfractionModel_divided_pic2.png
new file mode 100644
index 0000000..9b331fb
Binary files /dev/null and b/doc/_build/html/_images/voidfractionModel_divided_pic2.png differ
diff --git a/doc/_build/html/_images/voidfractionModel_divided_pic3.png b/doc/_build/html/_images/voidfractionModel_divided_pic3.png
new file mode 100644
index 0000000..5430f27
Binary files /dev/null and b/doc/_build/html/_images/voidfractionModel_divided_pic3.png differ
diff --git a/doc/_build/html/_images/voidfractionModel_divided_pic4.png b/doc/_build/html/_images/voidfractionModel_divided_pic4.png
new file mode 100644
index 0000000..c3520b5
Binary files /dev/null and b/doc/_build/html/_images/voidfractionModel_divided_pic4.png differ
diff --git a/doc/_build/html/_images/voidfractionModel_divided_pic5.png b/doc/_build/html/_images/voidfractionModel_divided_pic5.png
new file mode 100644
index 0000000..acd4ad8
Binary files /dev/null and b/doc/_build/html/_images/voidfractionModel_divided_pic5.png differ
diff --git a/doc/_build/html/_images/voidfractionModel_divided_pic6.png b/doc/_build/html/_images/voidfractionModel_divided_pic6.png
new file mode 100644
index 0000000..4c051ab
Binary files /dev/null and b/doc/_build/html/_images/voidfractionModel_divided_pic6.png differ
diff --git a/doc/_build/html/_sources/CFDEMcoupling_Manual.txt b/doc/_build/html/_sources/CFDEMcoupling_Manual.txt
index a865658..de093e1 100644
--- a/doc/_build/html/_sources/CFDEMcoupling_Manual.txt
+++ b/doc/_build/html/_sources/CFDEMcoupling_Manual.txt
@@ -1,5 +1,5 @@
-CFDEMcoupling Documentation
-***************************
+CFDEM(R)coupling Documentation
+******************************
----------
@@ -31,9 +31,9 @@ CFDEMcoupling Documentation
Contents
========
-The CFDEMcoupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEMcoupling documentation can be improved.
+The CFDEM(R)coupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEM(R)coupling documentation can be improved.
-| 1.1 :ref:`About CFDEMcoupling <1_1>`
+| 1.1 :ref:`About CFDEM(R)coupling <1_1>`
| 1.2 :ref:`Installation <1_2>`
| 1.3 :ref:`Tutorials <1_3>`
| 1.4 :ref:`couplingProperties dictionary <1_4>`
@@ -47,10 +47,10 @@ The CFDEMcoupling documentation is organized into the following sections. If you
.. _1_1:
-About CFDEMcoupling
--------------------
+About CFDEM(R)coupling
+----------------------
-CFDEM coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of `LIGGGHTS `_ DEM code and the Open Source CFD package `OpenFOAM(R)(*) `_. The CFDEMcoupling toolbox allows to expand standard CFD solvers of `OpenFOAM(R)(*) `_ to include a coupling to the DEM code `LIGGGHTS `_. In this toolbox the particle representation within the CFD solver is organized by "cloud" classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.
+CFDEM(R)coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of `LIGGGHTS(R) `_ DEM code and the Open Source CFD package `OpenFOAM(R)(*) `_. The CFDEM(R)coupling toolbox allows to expand standard CFD solvers of `OpenFOAM(R)(*) `_ to include a coupling to the DEM code `LIGGGHTS(R) `_. In this toolbox the particle representation within the CFD solver is organized by "cloud" classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.
The coupled solvers run fully parallel on distributed-memory clusters. Features are:
@@ -65,18 +65,18 @@ The file structure:
* *src* directory including the source files of the coupling toolbox and models
* *applications* directory including the solver files for coupled CFD-DEM simulations
-* *doc* directory including the documentation of CFDEMcoupling
+* *doc* directory including the documentation of CFDEM(R)coupling
* *tutorials* directory including basic tutorial cases showing the functionality
-Details on installation are given on the `CFDEMproject WWW Site `_ .
+Details on installation are given on the `CFDEM(R)project WWW Site `_ .
The functionality of this CFD-DEM framework is described via :ref:`tutorial cases <_1_2>` showing how to use different solvers and models.
-CFDEMcoupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.
+CFDEM(R)coupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.
-CFDEMcoupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).
+CFDEM(R)coupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).
-Core development of CFDEMcoupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012
+Core development of CFDEM(R)coupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012
This documentation was written by Christoph Goniva, DCS Computing GmbH, 2012
@@ -109,7 +109,7 @@ Tutorials
**General:**
-Each solver of the CFDEMcoupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via "Allrun.sh" shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).
+Each solver of the CFDEM(R)coupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via "Allrun.sh" shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).
**Location:**
@@ -127,11 +127,11 @@ Provided that the installation is correct, the tutorials can be run via "Allrun.
The main settings of a simulation are done via dictionaries:
-The DEM setup of each case is defined by a `LIGGGHTS `_ input file located in $caseDir/DEM (e.g. in.liggghts_init). For details on the `LIGGGHTS `_ setup, please have a look at the `LIGGGHTS `_ manual.
+The DEM setup of each case is defined by a `LIGGGHTS(R) `_ input file located in $caseDir/DEM (e.g. in.liggghts_init). For details on the `LIGGGHTS(R) `_ setup, please have a look at the `LIGGGHTS(R) `_ manual.
Standard CFD settings are defined in $caseDir/CFD/constant (e.g. transportProperties, RASproperties, etc.) and $caseDir/CFD/system (e.g. fvSchemes, controlDict). You can find more information on that in `OpenFOAM(R)(*) `_ documentations (www.openFoam.com)(*).
-Settings of the coupling routines are defined in $caseDir/CFD/constant/:ref:`couplingProperies <1_3>` (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/:ref:`liggghtsCommands <1_3>` (allows to execute a LIGGGHTS command during a coupled simulation).
+Settings of the coupling routines are defined in $caseDir/CFD/constant/:ref:`couplingProperies <1_3>` (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/:ref:`liggghtsCommands <1_3>` (allows to execute a LIGGGHTS(R) command during a coupled simulation).
----------
@@ -178,7 +178,7 @@ Reasonable example settings for the "couplingProperties" dictionary are given in
modelType
-"modelType" refers to the formulation of the equations to be solved. Choose "A", "B" or "Bfull", according to Zhou et al. (2010): "Discrete particle simulation of particle-fluid flow: model formulations and their applicability", JFM. "A" requires the use of the force models gradPForce and viscForce, whereas "B" requires the force model "Archimedes". "Bfull" refers to model type I.
+"modelType" refers to the formulation of the equations to be solved. Choose "A", "B" or "Bfull", according to Zhou et al. (2010): "Discrete particle simulation of particle-fluid flow: model formulations and their applicability", JFM. "A" requires the use of the force models gradPForce and viscForce, whereas "B" requires the force model "Archimedes". "Bfull" refers to model type I, "A" refers to model type II and "B" refers to type III in the nomenclature used by Zhou et al.
.. parsed-literal::
@@ -204,7 +204,7 @@ Example: DEMts=0.00001s, couplingInterval=10 exchange data (=couple) will happen
**General:**
-In the "liggghtsCommands" dictionary liggghts commands being executed during a coupled CFD-DEM simulation are specified.
+In the "liggghtsCommands" dictionary LIGGGHTS(R) commands being executed during a coupled CFD-DEM simulation are specified.
**Location:** $caseDir/CFD/constant
@@ -230,83 +230,87 @@ Models/Solvers
This section lists all CFDEMcoupling sub-models and solvers alphabetically, with a separate
listing below of styles within certain commands.
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`IOModel ` | :doc:`IOModel_basicIO ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`IOModel_noIO ` | :doc:`IOModel_sophIO ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`IOModel_trackIO ` | :doc:`averagingModel ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`averagingModel_dense ` | :doc:`averagingModel_dilute ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`cfdemSolverIB ` | :doc:`cfdemSolverPiso ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`cfdemSolverPisoScalar ` | :doc:`clockModel ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`clockModel_noClock ` | :doc:`clockModel_standardClock ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`dataExchangeModel ` | :doc:`dataExchangeModel_noDataExchange ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`dataExchangeModel_oneWayVTK ` | :doc:`dataExchangeModel_twoWayFiles ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`dataExchangeModel_twoWayMPI ` | :doc:`forceModel ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`forceModel_Archimedes ` | :doc:`forceModel_ArchimedesIB ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`forceModel_DiFeliceDrag ` | :doc:`forceModel_GidaspowDrag ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`forceModel_KochHillDrag ` | :doc:`forceModel_LaEuScalarTemp ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`forceModel_MeiLift ` | :doc:`forceModel_SchillerNaumannDrag ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`forceModel_ShirgaonkarIB ` | :doc:`forceModel_checkCouplingInterval ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`forceModel_fieldStore ` | :doc:`forceModel_fieldTimeAverage ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`forceModel_gradPForce ` | :doc:`forceModel_noDrag ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`forceModel_particleCellVolume ` | :doc:`forceModel_particleVolume ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`forceModel_scalarGeneralExchange ` | :doc:`forceModel_virtualMassForce ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`forceModel_viscForce ` | :doc:`forceModel_volWeightedAverage ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`forceSubModel ` | :doc:`forceSubModel_ImEx ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`liggghtsCommandModel ` | :doc:`liggghtsCommandModel_execute ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`liggghtsCommandModel_readLiggghtsData ` | :doc:`liggghtsCommandModel_runLiggghts ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`liggghtsCommandModel_setDEMGravity ` | :doc:`liggghtsCommandModel_writeLiggghts ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`locateModel ` | :doc:`locateModel_engineSearch ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`locateModel_engineSearchIB ` | :doc:`locateModel_standardSearch ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`meshMotionModel ` | :doc:`meshMotionModel_noMeshMotion ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`momCoupleModel ` | :doc:`momCoupleModel_explicitCouple ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`momCoupleModel_implicitCouple ` | :doc:`momCoupleModel_noCouple ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`probeModel ` | :doc:`probeModel_noProbe ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`probeModel_particleProbe ` | :doc:`regionModel ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`regionModel_allRegion ` | :doc:`scalarTransportModel ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`smoothingModel ` | :doc:`smoothingModel_constDiffSmoothing ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`smoothingModel_noSmoothing ` | :doc:`voidfractionModel ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`voidfractionModel_GaussVoidFraction ` | :doc:`voidfractionModel_IBVoidFraction ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`voidfractionModel_bigParticleVoidFraction ` | :doc:`voidfractionModel_centreVoidFraction ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`voidfractionModel_dividedVoidFraction ` | :doc:`voidfractionModel_noVoidFractionVoidFraction ` |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
-| :doc:`voidfractionModel_trilinearVoidFraction ` | |
-+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`IOModel ` | :doc:`IOModel_basicIO ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`IOModel_noIO ` | :doc:`IOModel_sophIO ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`IOModel_trackIO ` | :doc:`averagingModel ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`averagingModel_dense ` | :doc:`averagingModel_dilute ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`cfdemSolverIB ` | :doc:`cfdemSolverPiso ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`cfdemSolverPisoSTM ` | :doc:`cfdemSolverPisoScalar ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`clockModel ` | :doc:`clockModel_noClock ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`clockModel_standardClock ` | :doc:`couple/cfd ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`couple/cfd/force ` | :doc:`couple/cfd/force/implicit ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`dataExchangeModel ` | :doc:`dataExchangeModel_noDataExchange ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`dataExchangeModel_oneWayVTK ` | :doc:`dataExchangeModel_twoWayFiles ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`dataExchangeModel_twoWayMPI ` | :doc:`forceModel ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`forceModel_Archimedes ` | :doc:`forceModel_ArchimedesIB ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`forceModel_DiFeliceDrag ` | :doc:`forceModel_GidaspowDrag ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`forceModel_KochHillDrag ` | :doc:`forceModel_LaEuScalarTemp ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`forceModel_MeiLift ` | :doc:`forceModel_SchillerNaumannDrag ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`forceModel_ShirgaonkarIB ` | :doc:`forceModel_checkCouplingInterval ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`forceModel_fieldStore ` | :doc:`forceModel_fieldTimeAverage ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`forceModel_gradPForce ` | :doc:`forceModel_noDrag ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`forceModel_particleCellVolume ` | :doc:`forceModel_particleVolume ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`forceModel_scalarGeneralExchange ` | :doc:`forceModel_virtualMassForce ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`forceModel_viscForce ` | :doc:`forceModel_volWeightedAverage ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`forceSubModel ` | :doc:`forceSubModel_ImEx ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`liggghtsCommandModel ` | :doc:`liggghtsCommandModel_execute ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`liggghtsCommandModel_readLiggghtsData ` | :doc:`liggghtsCommandModel_runLiggghts ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`liggghtsCommandModel_setDEMGravity ` | :doc:`liggghtsCommandModel_writeLiggghts ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`locateModel ` | :doc:`locateModel_engineSearch ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`locateModel_engineSearchIB ` | :doc:`locateModel_standardSearch ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`meshMotionModel ` | :doc:`meshMotionModel_noMeshMotion ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`momCoupleModel ` | :doc:`momCoupleModel_explicitCouple ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`momCoupleModel_implicitCouple ` | :doc:`momCoupleModel_noCouple ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`probeModel ` | :doc:`probeModel_noProbe ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`probeModel_particleProbe ` | :doc:`regionModel ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`regionModel_allRegion ` | :doc:`scalarTransportModel ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`scalarTransportModel_generalManual ` | :doc:`smoothingModel ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`smoothingModel_constDiffSmoothing ` | :doc:`smoothingModel_noSmoothing ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`voidfractionModel ` | :doc:`voidfractionModel_GaussVoidFraction ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`voidfractionModel_IBVoidFraction ` | :doc:`voidfractionModel_bigParticleVoidFraction ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`voidfractionModel_centreVoidFraction ` | :doc:`voidfractionModel_dividedVoidFraction ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
+| :doc:`voidfractionModel_noVoidFractionVoidFraction ` | :doc:`voidfractionModel_trilinearVoidFraction ` |
++----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
.. _liws: http://www.cfdem.com
diff --git a/doc/_build/html/_sources/cfdemSolverPisoSTM.txt b/doc/_build/html/_sources/cfdemSolverPisoSTM.txt
new file mode 100644
index 0000000..8cc4a63
--- /dev/null
+++ b/doc/_build/html/_sources/cfdemSolverPisoSTM.txt
@@ -0,0 +1,28 @@
+.. index:: cfdemSolverPisoSTM
+
+cfdemSolverPisoSTM command
+==========================
+
+Description
+"""""""""""
+
+"cfdemSolverPisoSTM" is a coupled CFD-DEM solver using CFDEMcoupling, an open source parallel coupled CFD-DEM framework. Based on pisoFoam(R)(*), a finite volume based solver for turbulent Navier-Stokes equations applying PISO algorithm, "cfdemSolverPisoSTM" has additional functionality for a coupling to the DEM code "LIGGGHTS" as well as a scalar transport equation. The volume averaged Navier-Stokes Equations are solved accounting for momentum exchange and volume displacement of discrete particles, whose trajectories are calculated in the DEM code LIGGGHTS. Scalar transport equations coupled to scalar properties of the particle phase, (e.g. convective heat transfer) in a fluid granular system can be modeled with "cfdemSolverPisoSTM".
+
+see:
+
+GONIVA, C., KLOSS, C., HAGER,A. and PIRKER, S. (2010): "An Open Source CFD-DEM Perspective", Proc. of OpenFOAM Workshop, Göteborg, June 22.-24.
+
+
+----------
+
+
+(*) This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks.
+
+
+----------
+
+
+
+.. _liws: http://www.cfdem.com
+.. _ld: Manual.html
+.. _lc: Section_commands.html#comm
diff --git a/doc/_build/html/_sources/fix_couple_cfd.txt b/doc/_build/html/_sources/fix_couple_cfd.txt
new file mode 100644
index 0000000..ceb1ccf
--- /dev/null
+++ b/doc/_build/html/_sources/fix_couple_cfd.txt
@@ -0,0 +1,47 @@
+.. index:: couple/cfd
+
+couple/cfd command
+==================
+
+Syntax
+""""""
+
+.. parsed-literal::
+
+ fix ID group-ID couple/cfd couple_every N mpi
+
+* ID, group-ID are documented in :doc:`fix ` command
+* couple/cfd = style name of this fix command
+* couple_every = obligatory keyword
+* N = number of DEM time steps between two coupling steps
+
+
+
+Examples
+""""""""
+
+fix cfd all couple/cfd couple_every 1000 mpi
+
+Description
+"""""""""""
+
+This fix is responsible for the coupling between CFD and DEM calculation, i.e. for pushing and pulling of properties.
+
+Restrictions
+""""""""""""
+
+
+None.
+
+**Related Commands:**
+:doc:`fix couple/cfd/force `
+
+Default
+"""""""
+
+None
+
+
+.. _liws: http://www.cfdem.com
+.. _ld: Manual.html
+.. _lc: Section_commands.html#comm
diff --git a/doc/_build/html/_sources/fix_couple_cfd_force.txt b/doc/_build/html/_sources/fix_couple_cfd_force.txt
new file mode 100644
index 0000000..0367a7c
--- /dev/null
+++ b/doc/_build/html/_sources/fix_couple_cfd_force.txt
@@ -0,0 +1,44 @@
+.. index:: couple/cfd/force
+
+couple/cfd/force command
+========================
+
+Syntax
+""""""
+
+.. parsed-literal::
+
+ fix ID group-ID couple/cfd/force
+
+* ID, group-ID are documented in :doc:`fix ` command
+* couple/cfd = style name of this fix command
+
+
+Examples
+""""""""
+fix cfd all couple/cfd couple_every 100 mpi
+fix cfd2 all couple/cfd/force
+
+Description
+"""""""""""
+
+The command couple/cfd/force can only be used in combination with :doc:`fix_couple_cfd `. This model transfers the force that the fluid exceeds on each particle to the DEM calculation. At every coupling time step the force term, which contains contributions from all force models active in the CFD calculation, is passed on to LIGGGHTS(R). This (constant) term is then used in the particle calculations at every DEM time step until the next coupling takes place.
+
+Restrictions
+""""""""""""
+
+
+None
+
+**Related Commands:**
+:doc:`fix couple/cfd `
+
+Default
+"""""""
+
+None
+
+
+.. _liws: http://www.cfdem.com
+.. _ld: Manual.html
+.. _lc: Section_commands.html#comm
diff --git a/doc/_build/html/_sources/fix_couple_cfd_force_implicit.txt b/doc/_build/html/_sources/fix_couple_cfd_force_implicit.txt
new file mode 100644
index 0000000..4fe4bdb
--- /dev/null
+++ b/doc/_build/html/_sources/fix_couple_cfd_force_implicit.txt
@@ -0,0 +1,53 @@
+.. index:: couple/cfd/force/implicit
+
+couple/cfd/force/implicit command
+=================================
+
+Syntax
+""""""
+
+fix ID group-ID couple/cfd/force/implicit args:pre
+
+* ID, group-ID are documented in :doc:`fix ` command
+* couple/cfd = style name of this fix command
+* args = list of optional arguments
+
+
+Examples
+""""""""
+fix cfd all couple/cfd couple_every 100 mpi
+fix cfd2 all couple/cfd/force/implicit
+
+fix cfd all couple/cfd couple_every 100 mpi
+fix cfd2 all couple/cfd/force/implicit transfer_type yes
+
+fix cfd all couple/cfd couple_every 100 mpi
+fix cfd2 all couple/cfd/force/implicit CrankNicolson 0.5 CAddRhoFluid 0.4
+
+Description
+"""""""""""
+
+The usage of the couple/cfd/force/implicit can only be used in combination with a :doc:`fix couple/cfd ` command. At every coupling time step the drag coefficient and the fluid velocity is transferred to LIGGGHTS(R). Depending on the varying particle velocity (and thus relative velocity between fluid and particles) the drag force on the particles is calculated at every DEM time step until new data is obtained in the next coupline time step.
+
+If the Crank-Nicolson keyword is present, Crank-Nicolson integration scheme with given CN is applied.
+
+When the CAddRhoFluid keyword is active, couple/cfd/force/implicit will consider added mass.
+
+Restrictions
+""""""""""""
+
+
+None
+
+**Related Commands:**
+:doc:`fix couple/cfd `
+
+Default
+"""""""
+
+None
+
+
+.. _liws: http://www.cfdem.com
+.. _ld: Manual.html
+.. _lc: Section_commands.html#comm
diff --git a/doc/_build/html/_sources/forceModel_particleVolume.txt b/doc/_build/html/_sources/forceModel_particleVolume.txt
index 0ab13b5..89fe4f3 100644
--- a/doc/_build/html/_sources/forceModel_particleVolume.txt
+++ b/doc/_build/html/_sources/forceModel_particleVolume.txt
@@ -45,7 +45,7 @@ Examples
Description
"""""""""""
-This "forceModel" does not influence the particles or the simulation - it is a postprocessing tool! The total volume of the particles is calculated.
+This "forceModel" does not influence the particles or the simulation - it is a postprocessing tool! The total volume of the particles located in the CFD domain is calculated.
Restrictions
""""""""""""
diff --git a/doc/_build/html/_sources/liggghtsCommandModel_runLiggghts.txt b/doc/_build/html/_sources/liggghtsCommandModel_runLiggghts.txt
index 90f2c82..dbb7743 100644
--- a/doc/_build/html/_sources/liggghtsCommandModel_runLiggghts.txt
+++ b/doc/_build/html/_sources/liggghtsCommandModel_runLiggghts.txt
@@ -19,6 +19,7 @@ Defined in liggghtsCommmands dictionary.
{
preNo true;
verbose; (optional)
+ runFirst true; (optional, default false)
}
Examples
@@ -34,7 +35,7 @@ Examples
Description
"""""""""""
-The liggghtsCommand models can be used to execute a LIGGGHTS command during a CFD run. The "runLiggghts" command executes the command "run $nrDEMsteps", where $nrDEMsteps is automatically set according to the coupling intervals, every coupling step. Optionally a dictionary called runLiggghtsProps can be specified where the "preNo" switch can be set, which uses the command "run $nrDEMsteps pre no" for every time step except the first.
+The liggghtsCommand models can be used to execute a LIGGGHTS command during a CFD run. The "runLiggghts" command executes the command "run $nrDEMsteps", where $nrDEMsteps is automatically set according to the coupling intervals, every coupling step. Optionally a dictionary called runLiggghtsProps can be specified where the "preNo" switch can be set, which uses the command "run $nrDEMsteps pre no" for every time step except the first. If the runFirst option is chosen the run command is executed only at the first coupling step.
Restrictions
""""""""""""
diff --git a/doc/_build/html/_sources/scalarTransportModel.txt b/doc/_build/html/_sources/scalarTransportModel.txt
index 7bdca53..7dc4fd0 100644
--- a/doc/_build/html/_sources/scalarTransportModel.txt
+++ b/doc/_build/html/_sources/scalarTransportModel.txt
@@ -6,73 +6,22 @@ scalarTransportModel command
Syntax
""""""
-Defined in scalarTransportProperties dictionary. A variety of derived classes exist that implement different physics of the scalarTransportModel. Here, the most general one, i.e., 'generalManual' is discussed. If no scalar transport shall be used, use the model 'none'.
+Defined in scalarTransportProperties dictionary. A variety of derived classes exist that implement different physics of the scalarTransportModel. If no scalar transport shall be used, use the model 'none'.
.. parsed-literal::
- generalManualProps
- {
- phiFieldName *phiName*;
- voidfractionFieldName *voidfractionName*;
- ScT *scalar1*;
- PrT *scalar2*;
- cpVolumetric *scalar3*;
- cpVolumetricFieldName *word1*;
- rhoMixFieldName *word2*;
- eulerianFields
- (
- *C*
- *T*
- );
-
-.. parsed-literal::
-
- }
-
-* *phiName* = (optional) name of the surface field for the SUPERFICIAL flux, default "phi".
-* *voidfractionName* = (optional) name of the finite volume voidfraction field, default "voidfraction".
-* *scalar1* = (optional, default 0.7) turbulent Schmidt Nr, set to large value to suppress turbulent species transport
-* *scalar2* = (optional, default 0.7) turbulent Prandtl Nr, set to large value to suppress turbulent heat transport
-* *scalar3* = (optional, alternatively define word1) volumetric heat capacity as a global constant (in contrast to cpVolumetricFieldName for a field). This is the mixture density times the heat capacity **J/K/(m_voidspace)^3**, will only be used if cpVolumetricFieldName, or updateMixtureProperties = false
-* *word1* = (optional, alternatively define scalar3) volumetric heat capacity as a field
-* *word3* = mixture density field
-* *C* = concentration field name
-* *T* = temperature field name
+ scalarTransportModel model;
+* model = name of the scalarTransportModel to be applied
Examples
""""""""
.. parsed-literal::
- generalManualProps
- {
- phiFieldName "phi";
- ScT 0.7;
- PrT 0.7;
- cpVolumetric 1196;
- rhoMixFieldName "rhoMix";
- eulerianFields
- (
- C
- T
- );
+ scalarTransportModel generalManual;
-.. parsed-literal::
-
- fvOptionsC
- {
- };
-
-.. parsed-literal::
-
- fvOptionsT
- {
- };
-
-.. parsed-literal::
-
- }
+Note: This examples list might not be complete - please look for other models (scalarTransportModel_XY) in this documentation.
Description
"""""""""""
@@ -81,13 +30,9 @@ Solves the advection-dispersion transport equation for a dilute scalar quantity
Restrictions
""""""""""""
+ none.
-The user MUST ensure the "phi" field is SUPERFICIAL (i.e., the fluid-phase velocity times voidfraction interpolatedat the cells' faces). The code cannot know or check whether this is the case, so the user of a certain solver has to ensure this.
-
-Related commands
-""""""""""""""""
-
-none.
+**Default:** none.
.. _liws: http://www.cfdem.com
diff --git a/doc/_build/html/_sources/scalarTransportModel_generalManual.txt b/doc/_build/html/_sources/scalarTransportModel_generalManual.txt
new file mode 100644
index 0000000..0636fec
--- /dev/null
+++ b/doc/_build/html/_sources/scalarTransportModel_generalManual.txt
@@ -0,0 +1,97 @@
+.. index:: scalarTransportModel_generalManual
+
+scalarTransportModel_generalManual command
+==========================================
+
+Syntax
+""""""
+
+Defined in scalarTransportProperties dictionary.
+
+scalarTransportModel generalManual;
+
+.. parsed-literal::
+
+ generalManualProps
+ {
+ phiFieldName *phiName*;
+ voidfractionFieldName *voidfractionName*;
+ ScT *scalar1*;
+ PrT *scalar2*;
+ cpVolumetric *scalar3*;
+ cpVolumetricFieldName *word1*;
+ rhoMixFieldName *word2*;
+ eulerianFields
+ (
+ *C*
+ *T*
+ );
+
+.. parsed-literal::
+
+ }
+
+* *phiName* = (optional) name of the surface field for the SUPERFICIAL flux, default "phi".
+* *voidfractionName* = (optional) name of the finite volume voidfraction field, default "voidfraction".
+* *scalar1* = (optional, default 0.7) turbulent Schmidt Nr, set to large value to suppress turbulent species transport
+* *scalar2* = (optional, default 0.7) turbulent Prandtl Nr, set to large value to suppress turbulent heat transport
+* *scalar3* = (optional, alternatively define word1) volumetric heat capacity as a global constant (in contrast to cpVolumetricFieldName for a field). This is the mixture density times the heat capacity **J/K/(m_voidspace)^3**, will only be used if cpVolumetricFieldName, or updateMixtureProperties = false
+* *word1* = (optional, alternatively define scalar3) volumetric heat capacity as a field
+* *word3* = mixture density field
+* *C* = concentration field name
+* *T* = temperature field name
+
+
+Examples
+""""""""
+
+.. parsed-literal::
+
+ generalManualProps
+ {
+ phiFieldName "phi";
+ ScT 0.7;
+ PrT 0.7;
+ cpVolumetric 1196;
+ rhoMixFieldName "rhoMix";
+ eulerianFields
+ (
+ C
+ T
+ );
+
+.. parsed-literal::
+
+ fvOptionsC
+ {
+ };
+
+.. parsed-literal::
+
+ fvOptionsT
+ {
+ };
+
+.. parsed-literal::
+
+ }
+
+Description
+"""""""""""
+
+Solves the advection-dispersion transport equation for a dilute scalar quantity in the fluid phase. fvOptions can be specified to model sources, etc. in the fluid phase. Exchange models with a particle phase can be included by including appropriate forceModels in couplingProperties.
+
+Restrictions
+""""""""""""
+
+The user MUST ensure the "phi" field is SUPERFICIAL (i.e., the fluid-phase velocity times voidfraction interpolatedat the cells' faces). The code cannot know or check whether this is the case, so the user of a certain solver has to ensure this.
+
+Related commands
+""""""""""""""""
+
+none.
+
+
+.. _liws: http://www.cfdem.com
+.. _ld: Manual.html
+.. _lc: Section_commands.html#comm
diff --git a/doc/_build/html/_sources/voidFractionModel_dividedVoidFraction.txt b/doc/_build/html/_sources/voidFractionModel_dividedVoidFraction.txt
index 2896295..d27d4ba 100644
--- a/doc/_build/html/_sources/voidFractionModel_dividedVoidFraction.txt
+++ b/doc/_build/html/_sources/voidFractionModel_dividedVoidFraction.txt
@@ -45,11 +45,32 @@ Examples
Description
"""""""""""
-The divided voidFraction model is supposed to be used when a particle (or its representation) is in the size range of a CFD cell. Satellite points are used to divide the particle's volume to the touched cells.
+The divided voidFraction model is supposed to be used when a particle (or its representation) is in the size range of a CFD cell. The particle has radius R and it's volume is divided in 29 non-overlapping regions of equal volume. The centroids of these volumes are then used to reproduce each volume. The first volume is a sphere with the center coinciding with the particle center. Radius of this subsphere can be found as follows:
+
+.. image:: Eqs/voidfractionModel_divided_pic2.png
+ :align: center
+
+The rest volume is a spherical layer that must is divided in 2 layers of equal volume. Position of the border between these two spherical layers in radial direction can be easily obtained:
+
+.. image:: Eqs/voidfractionModel_divided_pic3.png
+ :align: center
+
+Each of these spherical layers is later divided in 14 elements of equal volume. Position of the centroid point in radial direction of each volume in the first spherical layer is as follows
+
+.. image:: Eqs/voidfractionModel_divided_pic4.png
+ :align: center
+
+Similarly, for the second spherical layer remembering that the external radius is the particle radius:
+
+.. image:: Eqs/voidfractionModel_divided_pic5.png
+ :align: center
The region of influence of a particle can be increased artificially by "porosity", which blows up the particles, but keeps their volume (for voidfraction calculation) constant.
-The particle volume occupied in the CFD domain can be adjusted by the parameter "weight", using Vparticle=dsphere^3*pi/6*weight.
+The particle volume occupied in the CFD domain can be adjusted by the parameter "weight", using
+
+.. image:: Eqs/voidfractionModel_divided_pic6.png
+ :align: center
In the basic implementation of solvers, the void fraction is calculated based on all particles. Depending on the solver used, the void fraction calculation is also performed for a certain type of particles.
The void fraction calculation is based on a three-step approach (reset, set and interpolate), i.e., the void fraction is time interpolated from a previous and a next void fraction field. Appropriate names for these fields have to be specified in the sub-dictionaries voidFracFieldNamesPrev and voidFracFieldNamesNext in the couplingProperties dictionary.
diff --git a/doc/_build/html/cfdemSolverPisoSTM.html b/doc/_build/html/cfdemSolverPisoSTM.html
new file mode 100644
index 0000000..eb8f9c5
--- /dev/null
+++ b/doc/_build/html/cfdemSolverPisoSTM.html
@@ -0,0 +1,206 @@
+
+
+
+
+
+
+
+
+
+
+ cfdemSolverPisoSTM command — CFDEMcoupling v3.X documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
“cfdemSolverPisoSTM” is a coupled CFD-DEM solver using CFDEMcoupling, an open source parallel coupled CFD-DEM framework. Based on pisoFoam(R)(*), a finite volume based solver for turbulent Navier-Stokes equations applying PISO algorithm, “cfdemSolverPisoSTM” has additional functionality for a coupling to the DEM code “LIGGGHTS” as well as a scalar transport equation. The volume averaged Navier-Stokes Equations are solved accounting for momentum exchange and volume displacement of discrete particles, whose trajectories are calculated in the DEM code LIGGGHTS. Scalar transport equations coupled to scalar properties of the particle phase, (e.g. convective heat transfer) in a fluid granular system can be modeled with “cfdemSolverPisoSTM”.
+
see:
+
GONIVA, C., KLOSS, C., HAGER,A. and PIRKER, S. (2010): “An Open Source CFD-DEM Perspective”, Proc. of OpenFOAM Workshop, Göteborg, June 22.-24.
+
+
(*) This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks.
The command couple/cfd/force can only be used in combination with fix_couple_cfd. This model transfers the force that the fluid exceeds on each particle to the DEM calculation. At every coupling time step the force term, which contains contributions from all force models active in the CFD calculation, is passed on to LIGGGHTS(R). This (constant) term is then used in the particle calculations at every DEM time step until the next coupling takes place.
The usage of the couple/cfd/force/implicit can only be used in combination with a fix couple/cfd command. At every coupling time step the drag coefficient and the fluid velocity is transferred to LIGGGHTS(R). Depending on the varying particle velocity (and thus relative velocity between fluid and particles) the drag force on the particles is calculated at every DEM time step until new data is obtained in the next coupline time step.
+
If the Crank-Nicolson keyword is present, Crank-Nicolson integration scheme with given CN is applied.
+
When the CAddRhoFluid keyword is active, couple/cfd/force/implicit will consider added mass.
This “forceModel” does not influence the particles or the simulation - it is a postprocessing tool! The total volume of the particles is calculated.
+
This “forceModel” does not influence the particles or the simulation - it is a postprocessing tool! The total volume of the particles located in the CFD domain is calculated.
The liggghtsCommand models can be used to execute a LIGGGHTS command during a CFD run. The “runLiggghts” command executes the command “run $nrDEMsteps”, where $nrDEMsteps is automatically set according to the coupling intervals, every coupling step. Optionally a dictionary called runLiggghtsProps can be specified where the “preNo” switch can be set, which uses the command “run $nrDEMsteps pre no” for every time step except the first.
+
The liggghtsCommand models can be used to execute a LIGGGHTS command during a CFD run. The “runLiggghts” command executes the command “run $nrDEMsteps”, where $nrDEMsteps is automatically set according to the coupling intervals, every coupling step. Optionally a dictionary called runLiggghtsProps can be specified where the “preNo” switch can be set, which uses the command “run $nrDEMsteps pre no” for every time step except the first. If the runFirst option is chosen the run command is executed only at the first coupling step.
diff --git a/doc/_build/html/objects.inv b/doc/_build/html/objects.inv
index 03fe130..57e83a1 100644
--- a/doc/_build/html/objects.inv
+++ b/doc/_build/html/objects.inv
@@ -2,4 +2,4 @@
# Project: CFDEMcoupling
# Version: v3.X
# The remainder of this file is compressed using zlib.
-xڍOk0"5inݠ@A%!e߄~ IV/(?д
QWK~߽pidmեG'&z'|92@ŰDެ>M#*
fb9cP"jg߳ٶlsrn$5m6pNy2.l!"3>r3ۖ-|]]KM%mJ=V/ݰ҉
\ No newline at end of file
+xڍ=k0wnq/JBChtȂdQ_CBm<+N~!Dx&5Ohxs%Examples
Defined in scalarTransportProperties dictionary. A variety of derived classes exist that implement different physics of the scalarTransportModel. Here, the most general one, i.e., ‘generalManual’ is discussed. If no scalar transport shall be used, use the model ‘none’.
Defined in scalarTransportProperties dictionary. A variety of derived classes exist that implement different physics of the scalarTransportModel. If no scalar transport shall be used, use the model ‘none’.
+
scalarTransportModel model;
-
phiName = (optional) name of the surface field for the SUPERFICIAL flux, default “phi”.
-
voidfractionName = (optional) name of the finite volume voidfraction field, default “voidfraction”.
-
scalar1 = (optional, default 0.7) turbulent Schmidt Nr, set to large value to suppress turbulent species transport
-
scalar2 = (optional, default 0.7) turbulent Prandtl Nr, set to large value to suppress turbulent heat transport
-
scalar3 = (optional, alternatively define word1) volumetric heat capacity as a global constant (in contrast to cpVolumetricFieldName for a field). This is the mixture density times the heat capacity J/K/(m_voidspace)^3, will only be used if cpVolumetricFieldName, or updateMixtureProperties = false
-
word1 = (optional, alternatively define scalar3) volumetric heat capacity as a field
-
word3 = mixture density field
-
C = concentration field name
-
T = temperature field name
+
model = name of the scalarTransportModel to be applied
The user MUST ensure the “phi” field is SUPERFICIAL (i.e., the fluid-phase velocity times voidfraction interpolatedat the cells’ faces). The code cannot know or check whether this is the case, so the user of a certain solver has to ensure this.
phiName = (optional) name of the surface field for the SUPERFICIAL flux, default “phi”.
+
voidfractionName = (optional) name of the finite volume voidfraction field, default “voidfraction”.
+
scalar1 = (optional, default 0.7) turbulent Schmidt Nr, set to large value to suppress turbulent species transport
+
scalar2 = (optional, default 0.7) turbulent Prandtl Nr, set to large value to suppress turbulent heat transport
+
scalar3 = (optional, alternatively define word1) volumetric heat capacity as a global constant (in contrast to cpVolumetricFieldName for a field). This is the mixture density times the heat capacity J/K/(m_voidspace)^3, will only be used if cpVolumetricFieldName, or updateMixtureProperties = false
+
word1 = (optional, alternatively define scalar3) volumetric heat capacity as a field
Solves the advection-dispersion transport equation for a dilute scalar quantity in the fluid phase. fvOptions can be specified to model sources, etc. in the fluid phase. Exchange models with a particle phase can be included by including appropriate forceModels in couplingProperties.
The user MUST ensure the “phi” field is SUPERFICIAL (i.e., the fluid-phase velocity times voidfraction interpolatedat the cells’ faces). The code cannot know or check whether this is the case, so the user of a certain solver has to ensure this.
The divided voidFraction model is supposed to be used when a particle (or its representation) is in the size range of a CFD cell. Satellite points are used to divide the particle’s volume to the touched cells.
+
The divided voidFraction model is supposed to be used when a particle (or its representation) is in the size range of a CFD cell. The particle has radius R and it’s volume is divided in 29 non-overlapping regions of equal volume. The centroids of these volumes are then used to reproduce each volume. The first volume is a sphere with the center coinciding with the particle center. Radius of this subsphere can be found as follows:
+
+
The rest volume is a spherical layer that must is divided in 2 layers of equal volume. Position of the border between these two spherical layers in radial direction can be easily obtained:
+
+
Each of these spherical layers is later divided in 14 elements of equal volume. Position of the centroid point in radial direction of each volume in the first spherical layer is as follows
+
+
Similarly, for the second spherical layer remembering that the external radius is the particle radius:
+
The region of influence of a particle can be increased artificially by “porosity”, which blows up the particles, but keeps their volume (for voidfraction calculation) constant.
-
The particle volume occupied in the CFD domain can be adjusted by the parameter “weight”, using Vparticle=dsphere^3*pi/6*weight.
+
The particle volume occupied in the CFD domain can be adjusted by the parameter “weight”, using
+
In the basic implementation of solvers, the void fraction is calculated based on all particles. Depending on the solver used, the void fraction calculation is also performed for a certain type of particles.
The void fraction calculation is based on a three-step approach (reset, set and interpolate), i.e., the void fraction is time interpolated from a previous and a next void fraction field. Appropriate names for these fields have to be specified in the sub-dictionaries voidFracFieldNamesPrev and voidFracFieldNamesNext in the couplingProperties dictionary.
diff --git a/doc/cfdemSolverPisoSTM.txt b/doc/cfdemSolverPisoSTM.txt
new file mode 100644
index 0000000..62e9b15
--- /dev/null
+++ b/doc/cfdemSolverPisoSTM.txt
@@ -0,0 +1,21 @@
+"CFDEMproject WWW Site"_lws - "CFDEM Commands"_lc :c
+
+:link(lws,http://www.cfdem.com)
+:link(lc,CFDEMcoupling_Manual.html#comm)
+
+:line
+
+cfdemSolverPisoSTM command :h3
+
+[Description:]
+
+"cfdemSolverPisoSTM" is a coupled CFD-DEM solver using CFDEMcoupling, an open source parallel coupled CFD-DEM framework. Based on pisoFoam(R)(*), a finite volume based solver for turbulent Navier-Stokes equations applying PISO algorithm, "cfdemSolverPisoSTM" has additional functionality for a coupling to the DEM code "LIGGGHTS" as well as a scalar transport equation. The volume averaged Navier-Stokes Equations are solved accounting for momentum exchange and volume displacement of discrete particles, whose trajectories are calculated in the DEM code LIGGGHTS. Scalar transport equations coupled to scalar properties of the particle phase, (e.g. convective heat transfer) in a fluid granular system can be modeled with "cfdemSolverPisoSTM".
+
+see:
+
+GONIVA, C., KLOSS, C., HAGER,A. and PIRKER, S. (2010): "An Open Source CFD-DEM Perspective", Proc. of OpenFOAM Workshop, Göteborg, June 22.-24.
+
+:line
+(*) This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks.
+
+:line
diff --git a/doc/fix_couple_cfd.txt b/doc/fix_couple_cfd.txt
new file mode 100644
index 0000000..733d2eb
--- /dev/null
+++ b/doc/fix_couple_cfd.txt
@@ -0,0 +1,38 @@
+"CFDEMproject WWW Site"_lws - "CFDEM Commands"_lc :c
+
+:link(lws,http://www.cfdem.com)
+:link(lc,CFDEMcoupling_Manual.html#comm)
+
+:line
+
+couple/cfd command :h3
+
+[Syntax:]
+
+fix ID group-ID couple/cfd couple_every N mpi :pre
+
+ID, group-ID are documented in "fix"_fix.html command :ulb,l
+couple/cfd = style name of this fix command :l
+couple_every = obligatory keyword :l
+N = number of DEM time steps between two coupling steps :l
+mpi = mandatory keyword :ls
+:ule
+
+[Examples:]
+
+fix cfd all couple/cfd couple_every 1000 mpi
+
+[Description:]
+
+This fix is responsible for the coupling between CFD and DEM calculation, i.e. for pushing and pulling of properties.
+
+[Restrictions:]
+
+None.
+
+[Related Commands:]
+"fix couple/cfd/force"_fix_couple_cfd_force.html
+
+[Default:]
+
+None
diff --git a/doc/fix_couple_cfd_force.txt b/doc/fix_couple_cfd_force.txt
new file mode 100644
index 0000000..26fe1dc
--- /dev/null
+++ b/doc/fix_couple_cfd_force.txt
@@ -0,0 +1,37 @@
+"CFDEMproject WWW Site"_lws - "CFDEM Commands"_lc :c
+
+:link(lws,http://www.cfdem.com)
+:link(lc,CFDEMcoupling_Manual.html#comm)
+
+:line
+
+couple/cfd/force command :h3
+
+[Syntax:]
+
+fix ID group-ID couple/cfd/force :pre
+
+ID, group-ID are documented in "fix"_fix.html command :ulb,l
+couple/cfd = style name of this fix command :l
+
+:ule
+
+[Examples:]
+fix cfd all couple/cfd couple_every 100 mpi
+fix cfd2 all couple/cfd/force
+
+[Description:]
+
+The command couple/cfd/force can only be used in combination with "fix_couple_cfd"_fix_couple_cfd.html. This model transfers the force that the fluid exceeds on each particle to the DEM calculation. At every coupling time step the force term, which contains contributions from all force models active in the CFD calculation, is passed on to LIGGGHTS(R). This (constant) term is then used in the particle calculations at every DEM time step until the next coupling takes place.
+
+
+[Restrictions:]
+
+None
+
+[Related Commands:]
+"fix couple/cfd"_fix_couple_cfd.html
+
+[Default:]
+
+None
diff --git a/doc/fix_couple_cfd_force_implicit.txt b/doc/fix_couple_cfd_force_implicit.txt
new file mode 100644
index 0000000..da0bf11
--- /dev/null
+++ b/doc/fix_couple_cfd_force_implicit.txt
@@ -0,0 +1,48 @@
+"CFDEMproject WWW Site"_lws - "CFDEM Commands"_lc :c
+
+:link(lws,http://www.cfdem.com)
+:link(lc,CFDEMcoupling_Manual.html#comm)
+
+:line
+
+couple/cfd/force/implicit command :h3
+
+[Syntax:]
+
+fix ID group-ID couple/cfd/force/implicit args:pre
+
+ID, group-ID are documented in "fix"_fix.html command :ulb,l
+couple/cfd = style name of this fix command :l
+args = list of optional arguments :l
+
+:ule
+
+[Examples:]
+fix cfd all couple/cfd couple_every 100 mpi
+fix cfd2 all couple/cfd/force/implicit
+
+fix cfd all couple/cfd couple_every 100 mpi
+fix cfd2 all couple/cfd/force/implicit transfer_type yes
+
+fix cfd all couple/cfd couple_every 100 mpi
+fix cfd2 all couple/cfd/force/implicit CrankNicolson 0.5 CAddRhoFluid 0.4
+
+[Description:]
+
+The usage of the couple/cfd/force/implicit can only be used in combination with a "fix couple/cfd"_fix_couple_cfd.html command. At every coupling time step the drag coefficient and the fluid velocity is transferred to LIGGGHTS(R). Depending on the varying particle velocity (and thus relative velocity between fluid and particles) the drag force on the particles is calculated at every DEM time step until new data is obtained in the next coupline time step.
+
+If the Crank-Nicolson keyword is present, Crank-Nicolson integration scheme with given CN is applied.
+
+When the CAddRhoFluid keyword is active, couple/cfd/force/implicit will consider added mass.
+
+
+[Restrictions:]
+
+None
+
+[Related Commands:]
+"fix couple/cfd"_fix_couple_cfd.html
+
+[Default:]
+
+None
diff --git a/doc/forceModel_particleVolume.txt b/doc/forceModel_particleVolume.txt
index 2386b40..b621ab5 100644
--- a/doc/forceModel_particleVolume.txt
+++ b/doc/forceModel_particleVolume.txt
@@ -42,7 +42,7 @@ particleVolumeProps
[Description:]
-This "forceModel" does not influence the particles or the simulation - it is a postprocessing tool! The total volume of the particles is calculated.
+This "forceModel" does not influence the particles or the simulation - it is a postprocessing tool! The total volume of the particles located in the CFD domain is calculated.
[Restrictions:]
diff --git a/doc/liggghtsCommandModel_runLiggghts.txt b/doc/liggghtsCommandModel_runLiggghts.txt
index a1f0ef4..e82ee40 100644
--- a/doc/liggghtsCommandModel_runLiggghts.txt
+++ b/doc/liggghtsCommandModel_runLiggghts.txt
@@ -20,6 +20,7 @@ runLiggghtsProps
\{
preNo true;
verbose; (optional)
+ runFirst true; (optional, default false)
\} :pre
[Examples:]
@@ -31,7 +32,7 @@ liggghtsCommandModels
[Description:]
-The liggghtsCommand models can be used to execute a LIGGGHTS command during a CFD run. The "runLiggghts" command executes the command "run $nrDEMsteps", where $nrDEMsteps is automatically set according to the coupling intervals, every coupling step. Optionally a dictionary called runLiggghtsProps can be specified where the "preNo" switch can be set, which uses the command "run $nrDEMsteps pre no" for every time step except the first.
+The liggghtsCommand models can be used to execute a LIGGGHTS command during a CFD run. The "runLiggghts" command executes the command "run $nrDEMsteps", where $nrDEMsteps is automatically set according to the coupling intervals, every coupling step. Optionally a dictionary called runLiggghtsProps can be specified where the "preNo" switch can be set, which uses the command "run $nrDEMsteps pre no" for every time step except the first. If the runFirst option is chosen the run command is executed only at the first coupling step.
[Restrictions:] Warning: the "pre no" option can cause troubles (dump data of particles changing the domain might be erroneous)!
diff --git a/doc/scalarTransportModel.txt b/doc/scalarTransportModel.txt
index 9e16117..644a8d5 100644
--- a/doc/scalarTransportModel.txt
+++ b/doc/scalarTransportModel.txt
@@ -9,70 +9,22 @@ scalarTransportModel command :h3
[Syntax:]
-Defined in scalarTransportProperties dictionary. A variety of derived classes exist that implement different physics of the scalarTransportModel. Here, the most general one, i.e., 'generalManual' is discussed. If no scalar transport shall be used, use the model 'none'.
+Defined in scalarTransportProperties dictionary. A variety of derived classes exist that implement different physics of the scalarTransportModel. If no scalar transport shall be used, use the model 'none'.
-generalManualProps
-\{
- phiFieldName {phiName};
- voidfractionFieldName {voidfractionName};
- ScT {scalar1};
- PrT {scalar2};
- cpVolumetric {scalar3};
- cpVolumetricFieldName {word1};
- rhoMixFieldName {word2};
- eulerianFields
- (
- {C}
- {T}
- ); :pre
-\} :pre
-
-{phiName} = (optional) name of the surface field for the SUPERFICIAL flux, default "phi". :ulb,l
-{voidfractionName} = (optional) name of the finite volume voidfraction field, default "voidfraction". :l
-{scalar1} = (optional, default 0.7) turbulent Schmidt Nr, set to large value to suppress turbulent species transport :l
-{scalar2} = (optional, default 0.7) turbulent Prandtl Nr, set to large value to suppress turbulent heat transport :l
-{scalar3} = (optional, alternatively define word1) volumetric heat capacity as a global constant (in contrast to cpVolumetricFieldName for a field). This is the mixture density times the heat capacity [J/K/(m_voidspace)^3], will only be used if cpVolumetricFieldName, or updateMixtureProperties = false :l
-{word1} = (optional, alternatively define scalar3) volumetric heat capacity as a field :l
-{word3} = mixture density field :l
-{C} = concentration field name :l
-{T} = temperature field name :l
-:ule
+scalarTransportModel model; :pre
+model = name of the scalarTransportModel to be applied :ul
[Examples:]
-generalManualProps
-\{
- phiFieldName "phi";
- ScT 0.7;
- PrT 0.7;
- cpVolumetric 1196;
- rhoMixFieldName "rhoMix";
- eulerianFields
- (
- C
- T
- ); :pre
+scalarTransportModel generalManual; :pre
- fvOptionsC
- \{
- \}; :pre
- fvOptionsT
- \{
- \}; :pre
-
-\} :pre
+Note: This examples list might not be complete - please look for other models (scalarTransportModel_XY) in this documentation.
[Description:]
Solves the advection-dispersion transport equation for a dilute scalar quantity in the fluid phase. fvOptions can be specified to model sources, etc. in the fluid phase. Exchange models with a particle phase can be included by including appropriate forceModels in couplingProperties.
+[Restrictions:] none.
-[Restrictions:]
-The user MUST ensure the "phi" field is SUPERFICIAL (i.e., the fluid-phase velocity times voidfraction interpolatedat the cells' faces). The code cannot know or check whether this is the case, so the user of a certain solver has to ensure this.
-
-
-[Related commands:]
-
-none.
-
+[Default:] none.
diff --git a/doc/scalarTransportModel_generalManual.txt b/doc/scalarTransportModel_generalManual.txt
new file mode 100644
index 0000000..6a64454
--- /dev/null
+++ b/doc/scalarTransportModel_generalManual.txt
@@ -0,0 +1,78 @@
+"CFDEMproject WWW Site"_lws - "CFDEM Commands"_lc :c
+
+:link(lws,http://www.cfdem.com)
+:link(lc,CFDEMcoupling_Manual.html#comm)
+
+:line
+
+scalarTransportModel_generalManual command :h3
+
+[Syntax:]
+
+Defined in scalarTransportProperties dictionary.
+
+scalarTransportModel generalManual;
+
+generalManualProps
+\{
+ phiFieldName {phiName};
+ voidfractionFieldName {voidfractionName};
+ ScT {scalar1};
+ PrT {scalar2};
+ cpVolumetric {scalar3};
+ cpVolumetricFieldName {word1};
+ rhoMixFieldName {word2};
+ eulerianFields
+ (
+ {C}
+ {T}
+ ); :pre
+\} :pre
+
+{phiName} = (optional) name of the surface field for the SUPERFICIAL flux, default "phi". :ulb,l
+{voidfractionName} = (optional) name of the finite volume voidfraction field, default "voidfraction". :l
+{scalar1} = (optional, default 0.7) turbulent Schmidt Nr, set to large value to suppress turbulent species transport :l
+{scalar2} = (optional, default 0.7) turbulent Prandtl Nr, set to large value to suppress turbulent heat transport :l
+{scalar3} = (optional, alternatively define word1) volumetric heat capacity as a global constant (in contrast to cpVolumetricFieldName for a field). This is the mixture density times the heat capacity [J/K/(m_voidspace)^3], will only be used if cpVolumetricFieldName, or updateMixtureProperties = false :l
+{word1} = (optional, alternatively define scalar3) volumetric heat capacity as a field :l
+{word3} = mixture density field :l
+{C} = concentration field name :l
+{T} = temperature field name :l
+:ule
+
+[Examples:]
+
+generalManualProps
+\{
+ phiFieldName "phi";
+ ScT 0.7;
+ PrT 0.7;
+ cpVolumetric 1196;
+ rhoMixFieldName "rhoMix";
+ eulerianFields
+ (
+ C
+ T
+ ); :pre
+
+ fvOptionsC
+ \{
+ \}; :pre
+ fvOptionsT
+ \{
+ \}; :pre
+
+\} :pre
+
+[Description:]
+
+Solves the advection-dispersion transport equation for a dilute scalar quantity in the fluid phase. fvOptions can be specified to model sources, etc. in the fluid phase. Exchange models with a particle phase can be included by including appropriate forceModels in couplingProperties.
+
+[Restrictions:]
+The user MUST ensure the "phi" field is SUPERFICIAL (i.e., the fluid-phase velocity times voidfraction interpolatedat the cells' faces). The code cannot know or check whether this is the case, so the user of a certain solver has to ensure this.
+
+
+[Related commands:]
+
+none.
+
diff --git a/doc/voidFractionModel_dividedVoidFraction.txt b/doc/voidFractionModel_dividedVoidFraction.txt
index 7b55fc9..7917d55 100644
--- a/doc/voidFractionModel_dividedVoidFraction.txt
+++ b/doc/voidFractionModel_dividedVoidFraction.txt
@@ -42,11 +42,27 @@ dividedProps
[Description:]
-The divided voidFraction model is supposed to be used when a particle (or its representation) is in the size range of a CFD cell. Satellite points are used to divide the particle's volume to the touched cells.
+The divided voidFraction model is supposed to be used when a particle (or its representation) is in the size range of a CFD cell. The particle has radius R and it's volume is divided in 29 non-overlapping regions of equal volume. The centroids of these volumes are then used to reproduce each volume. The first volume is a sphere with the center coinciding with the particle center. Radius of this subsphere can be found as follows:
+
+:c,image(Eqs/voidfractionModel_divided_pic2.png)
+
+The rest volume is a spherical layer that must is divided in 2 layers of equal volume. Position of the border between these two spherical layers in radial direction can be easily obtained:
+
+:c,image(Eqs/voidfractionModel_divided_pic3.png)
+
+Each of these spherical layers is later divided in 14 elements of equal volume. Position of the centroid point in radial direction of each volume in the first spherical layer is as follows
+
+:c,image(Eqs/voidfractionModel_divided_pic4.png)
+
+Similarly, for the second spherical layer remembering that the external radius is the particle radius:
+
+:c,image(Eqs/voidfractionModel_divided_pic5.png)
The region of influence of a particle can be increased artificially by "porosity", which blows up the particles, but keeps their volume (for voidfraction calculation) constant.
-The particle volume occupied in the CFD domain can be adjusted by the parameter "weight", using Vparticle=dsphere^3*pi/6*weight.
+The particle volume occupied in the CFD domain can be adjusted by the parameter "weight", using
+
+:c,image(Eqs/voidfractionModel_divided_pic6.png).
In the basic implementation of solvers, the void fraction is calculated based on all particles. Depending on the solver used, the void fraction calculation is also performed for a certain type of particles.
The void fraction calculation is based on a three-step approach (reset, set and interpolate), i.e., the void fraction is time interpolated from a previous and a next void fraction field. Appropriate names for these fields have to be specified in the sub-dictionaries voidFracFieldNamesPrev and voidFracFieldNamesNext in the couplingProperties dictionary.
diff --git a/src/eulerian/fvOptionsCFDEM/Make/files b/src/eulerian/fvOptionsCFDEM/Make/files
new file mode 100644
index 0000000..b87f893
--- /dev/null
+++ b/src/eulerian/fvOptionsCFDEM/Make/files
@@ -0,0 +1,13 @@
+/* sources */
+derivedSources=sources/derived
+derivedConstraints=constraints/derived
+
+$(derivedSources)/pressureGradientExplicitSourceIB/pressureGradientExplicitSourceIB.C
+$(derivedSources)/pressureGradientExplicitSourceIB/pressureGradientExplicitSourceIBIO.C
+$(derivedSources)/pressureGradientTorus/pressureGradientTorus.C
+$(derivedSources)/pressureGradientTorus/pressureGradientTorusIO.C
+$(derivedSources)/meanSupVelocityForce/meanSupVelocityForce.C
+
+$(derivedConstraints)/fixedBulkConstraint/fixedBulkConstraint.C
+
+LIB = $(CFDEM_LIB_DIR)/libfvOptionsCFDEM
diff --git a/src/eulerian/fvOptionsCFDEM/Make/options b/src/eulerian/fvOptionsCFDEM/Make/options
new file mode 100644
index 0000000..395b3b4
--- /dev/null
+++ b/src/eulerian/fvOptionsCFDEM/Make/options
@@ -0,0 +1,26 @@
+sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
+sinclude $(RULES)/mplib$(WM_MPLIB)
+
+GIT_VERSION := $(shell git describe --dirty --always --tags)
+PFLAGS+= -DGITVERSION=\"$(GIT_VERSION)\"
+PFLAGS+= -DDEBUGFLAG=\"$(DEBUG)\"
+PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
+
+include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
+
+EXE_INC = \
+ $(PFLAGS) \
+ $(PINC) \
+ -I$(LIB_SRC)/finiteVolume/lnInclude \
+ -I$(LIB_SRC)/meshTools/lnInclude \
+ -I$(LIB_SRC)/sampling/lnInclude \
+ -I$(LIB_SRC)/fvOptions/lnInclude \
+ -I$(CFDEM_OFVERSION_DIR) \
+
+
+LIB_LIBS = \
+ $(PLIBS) \
+ -lfiniteVolume \
+ -lsampling \
+ -lmeshTools \
+ -lfvOptions
diff --git a/src/eulerian/fvOptionsCFDEM/sources/derived/meanSupVelocityForce/meanSupVelocityForce.C b/src/eulerian/fvOptionsCFDEM/sources/derived/meanSupVelocityForce/meanSupVelocityForce.C
new file mode 100644
index 0000000..c00437a
--- /dev/null
+++ b/src/eulerian/fvOptionsCFDEM/sources/derived/meanSupVelocityForce/meanSupVelocityForce.C
@@ -0,0 +1,249 @@
+/*---------------------------------------------------------------------------*\
+ CFDEMcoupling - Open Source CFD-DEM coupling
+
+ CFDEMcoupling is part of the CFDEMproject
+ www.cfdem.com
+ Christoph Goniva, christoph.goniva@cfdem.com
+ Copyright (C) 2011 OpenFOAM Foundation
+ Copyright (C) 2012- DCS Computing GmbH,Linz
+-------------------------------------------------------------------------------
+License
+ This file is part of CFDEMcoupling.
+
+ CFDEMcoupling is free software: you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ CFDEMcoupling is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with CFDEMcoupling. If not, see .
+
+\*---------------------------------------------------------------------------*/
+
+#include "meanSupVelocityForce.H"
+#include "addToRunTimeSelectionTable.H"
+
+#include "DimensionedField.H"
+#include "fvMatrices.H"
+
+// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
+
+namespace Foam
+{
+namespace fv
+{
+ defineTypeNameAndDebug(meanSupVelocityForce, 0);
+
+ addToRunTimeSelectionTable
+ (
+ option,
+ meanSupVelocityForce,
+ dictionary
+ );
+}
+}
+
+// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
+
+
+// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
+
+Foam::fv::meanSupVelocityForce::meanSupVelocityForce
+(
+ const word& sourceName,
+ const word& modelType,
+ const dictionary& dict,
+ const fvMesh& mesh
+)
+:
+ meanVelocityForce(sourceName, modelType, dict, mesh),
+ voidfractionName_( coeffs_.lookup("voidfractionField") ),
+ voidfraction_( mesh.lookupObject(voidfractionName_) ),
+ modelName_(modelType),
+ twoPhase_( coeffs_.lookupOrDefault("twoPhase",false) ),
+ alpha_
+ (
+ IOobject
+ (
+ "voidfractionPrev",
+ mesh_.time().timeName(),
+ mesh_,
+ IOobject::NO_READ,//MUST_READ,
+ IOobject::NO_WRITE
+ ),
+ mesh_,
+ dimensionedScalar("ones", dimensionSet(0,0,0,0,0), 1)
+ )
+
+{
+ Warning << "THE FVOPTION meanSupVelocityForce has not been tested/validated!!! " << endl;
+}
+
+
+// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
+void Foam::fv::meanSupVelocityForce::correct(volVectorField& U)
+{
+ if (twoPhase_)
+ {
+ word alphaName = coeffs_.lookup("alphaField");
+ alpha_ = mesh_.lookupObject(alphaName);
+ }
+
+ // making sure that alpha is only set almost-only fluid regions
+ forAll(alpha_,cellI)
+ {
+ if(alpha_[cellI]<0.9999)
+ alpha_[cellI]=0;
+ }
+
+ const scalarField& rAU = rAPtr_().internalField();
+
+ // Integrate flow variables over cell set
+ scalar rAUave = 0.0;
+ const scalarField& cv = mesh_.V();
+ scalar totV = 0.0;
+ forAll(cells_,i)
+ {
+ label cellI = cells_[i];
+ scalar volCell = cv[cellI];
+ totV += volCell*alpha_[cellI];
+ rAUave += rAU[cellI]*volCell*alpha_[cellI];
+ }
+
+ // Collect accross all processors
+ reduce(rAUave, sumOp());
+ reduce(totV, sumOp());
+ V_=totV;
+
+ // Volume averages
+ rAUave /= V_;
+
+ scalar magUbarAve = this->magUbarAve(U);
+
+ // Calculate the pressure gradient increment needed to adjust the average
+ // flow-rate to the desired value
+ dGradP_ = relaxation_*(mag(Ubar_) - magUbarAve)/rAUave;
+
+ // Apply correction to velocity field
+ if (modelName_=="B" || modelName_=="Bfull")
+ {
+ forAll(cells_, i)
+ {
+ label cellI = cells_[i];
+ U[cellI] += flowDir_*rAU[cellI]*dGradP_*alpha_[cellI];
+ }
+ }
+ else
+ {
+ forAll(cells_, i)
+ {
+ label cellI = cells_[i];
+ U[cellI] += voidfraction_[cellI]*flowDir_*rAU[cellI]*dGradP_*alpha_[cellI];
+ }
+ }
+
+ scalar gradP = gradP0_ + dGradP_;
+
+ Info<< "Pressure gradient source: uncorrected Ubar = " << magUbarAve
+ << ", pressure gradient = " << gradP << endl;
+
+ writeProps(gradP);
+
+ Warning << "Pressure gradient force is neglected in this model!!" << endl;
+
+ // The following lines would compensate the error that occurs due to the splitting
+ // of the pressure gradient. However, the particleCloud_ object is currently not
+ // accessible here.
+ /*scalar ds(0.0);
+ scalar Vs(0.0);
+ label cellI=0;
+ for(int index = 0;index < particleCloud_.numberOfParticles(); index++)
+ {
+ //if(mask[index][0])
+ //{
+ cellI = particleCloud_.cellIDs()[index][0];
+
+ if (cellI > -1) // particle found on this processor
+ {
+ //Calc the particle volume
+ ds = 2*particleCloud_.radius(index);
+ Vs = ds*ds*ds*M_PI/6;
+
+ // set force on particle
+ for(int j=0;j<3;j++)
+ {
+ // calc particle's static pressure gradient force
+ particleCloud_.DEMForces()[index][j] -= Vs*gradP*flowDir_[j];
+ }
+ }
+ }*/
+
+
+}
+
+void Foam::fv::meanSupVelocityForce::addSup
+(
+ fvMatrix& eqn,
+ const label fieldI
+)
+{
+ DimensionedField Su
+ (
+ IOobject
+ (
+ name_ + fieldNames_[fieldI] + "Sup",
+ mesh_.time().timeName(),
+ mesh_,
+ IOobject::NO_READ,
+ IOobject::NO_WRITE
+ ),
+ mesh_,
+ dimensionedVector("zero", eqn.dimensions()/dimVolume, vector::zero)
+ );
+
+ scalar gradP = gradP0_ + dGradP_;
+
+ if (modelName_=="B" || modelName_=="Bfull")
+ {
+ UIndirectList(Su, cells_) = flowDir_*gradP;
+ }
+ else
+ {
+ UIndirectList(Su, cells_) = voidfraction_*flowDir_*gradP*alpha_;
+ }
+
+ eqn += Su;
+
+}
+
+Foam::scalar Foam::fv::meanSupVelocityForce::magUbarAve
+(
+ const volVectorField& U
+) const
+{
+ scalar magUbarAve = 0.0;
+
+ const scalarField& cv = mesh_.V();
+ forAll(cells_, i)
+ {
+ label cellI = cells_[i];
+ scalar volCell = cv[cellI];
+ magUbarAve += (flowDir_ & U[cellI])*volCell*alpha_[cellI]*voidfraction_[cellI];
+ }
+
+ reduce(magUbarAve, sumOp());
+
+ magUbarAve /= V_;
+
+ return magUbarAve;
+}
+
+
+
+
+// ************************************************************************* //
diff --git a/src/eulerian/fvOptionsCFDEM/sources/derived/meanSupVelocityForce/meanSupVelocityForce.H b/src/eulerian/fvOptionsCFDEM/sources/derived/meanSupVelocityForce/meanSupVelocityForce.H
new file mode 100644
index 0000000..b1a529a
--- /dev/null
+++ b/src/eulerian/fvOptionsCFDEM/sources/derived/meanSupVelocityForce/meanSupVelocityForce.H
@@ -0,0 +1,144 @@
+/*---------------------------------------------------------------------------*\
+ CFDEMcoupling - Open Source CFD-DEM coupling
+
+ CFDEMcoupling is part of the CFDEMproject
+ www.cfdem.com
+ Christoph Goniva, christoph.goniva@cfdem.com
+ Copyright (C) 2011 OpenFOAM Foundation
+ Copyright (C) 2012- DCS Computing GmbH,Linz
+-------------------------------------------------------------------------------
+License
+ This file is part of CFDEMcoupling.
+
+ CFDEMcoupling is free software: you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ CFDEMcoupling is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with CFDEMcoupling. If not, see .
+
+Description
+ This code is based on meanSupVelocity model of OpenFOAM 3.0.x
+ It is extended to account for the presence of a particle phase.
+
+ Calculates and applies the force necessary to maintain the specified mean
+ velocity.
+
+ Note: Currently only handles kinematic pressure (incompressible solvers).
+
+ \heading Source usage
+ Example usage:
+ \verbatim
+ meanSupVelocityForceCoeffs
+ {
+ selectionMode all; // Apply force to all cells
+ fieldNames (U); // Name of velocity field
+ Ubar (10.0 0 0); // Desired mean velocity
+ relaxation 0.2; // Optional relaxation factor
+ }
+ \endverbatim
+
+\*---------------------------------------------------------------------------*/
+
+#ifndef meanSupVelocityForce_H
+#define meanSupVelocityForce_H
+
+#include "meanVelocityForce.H"
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+namespace Foam
+{
+namespace fv
+{
+
+/*---------------------------------------------------------------------------*\
+ Class meanSupVelocityForce Declaration
+\*---------------------------------------------------------------------------*/
+
+class meanSupVelocityForce
+:
+ public meanVelocityForce
+{
+protected:
+
+ // Protected data
+
+
+ // Protected Member Functions
+
+ virtual scalar magUbarAve(const volVectorField& U) const;
+
+
+private:
+
+ // Private Member Functions
+
+ //- Disallow default bitwise copy construct
+ meanSupVelocityForce(const meanSupVelocityForce&);
+
+ //- Disallow default bitwise assignment
+ void operator=(const meanSupVelocityForce&);
+
+ const word voidfractionName_;
+
+ const volScalarField& voidfraction_;
+
+ const word modelName_;
+
+ const bool twoPhase_;
+
+ volScalarField alpha_;
+
+
+public:
+
+ //- Runtime type information
+ TypeName("meanSupVelocityForce");
+
+
+ // Constructors
+
+ //- Construct from explicit source name and mesh
+ meanSupVelocityForce
+ (
+ const word& sourceName,
+ const word& modelType,
+ const dictionary& dict,
+ const fvMesh& mesh
+ );
+
+
+ // Member Functions
+
+ // Evaluate
+
+ virtual void correct(volVectorField& U);
+
+ virtual void addSup
+ (
+ fvMatrix& eqn,
+ const label fieldI
+ );
+
+ // IO
+
+};
+
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+} // End namespace fv
+} // End namespace Foam
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+#endif
+
+// ************************************************************************* //
diff --git a/src/eulerian/scalarTransportModelsCFDEM/Make/files b/src/eulerian/scalarTransportModelsCFDEM/Make/files
index f77abd3..07fbf6a 100644
--- a/src/eulerian/scalarTransportModelsCFDEM/Make/files
+++ b/src/eulerian/scalarTransportModelsCFDEM/Make/files
@@ -3,6 +3,7 @@ scalarTransportModel/newScalarTransportModel.C
/*Sub-Level*/
temperatureModel/temperatureModel.C
+solidTemperatureModel/solidTemperatureModel.C
generalManual/generalManual.C
noTransport/noTransport.C
generalPhaseChange/generalPhaseChange.C
diff --git a/src/eulerian/scalarTransportModelsCFDEM/Make/options b/src/eulerian/scalarTransportModelsCFDEM/Make/options
index 303cf78..089ebc0 100644
--- a/src/eulerian/scalarTransportModelsCFDEM/Make/options
+++ b/src/eulerian/scalarTransportModelsCFDEM/Make/options
@@ -9,14 +9,16 @@ PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
EXE_INC = \
- $(PFLAGS) \
- $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
+ $(PFLAGS) \
+ $(PINC) \
+ $(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
+ -I$(CFDEM_LIGGGHTS_SRC_DIR)
LIB_LIBS = \
-L$(CFDEM_LIB_DIR)\
diff --git a/src/eulerian/scalarTransportModelsCFDEM/eulerianScalarField/eulerianScalarField.C b/src/eulerian/scalarTransportModelsCFDEM/eulerianScalarField/eulerianScalarField.C
index dca778f..dde2857 100644
--- a/src/eulerian/scalarTransportModelsCFDEM/eulerianScalarField/eulerianScalarField.C
+++ b/src/eulerian/scalarTransportModelsCFDEM/eulerianScalarField/eulerianScalarField.C
@@ -20,6 +20,7 @@ License
#include "error.H"
#include "eulerianScalarField.H"
+#include "OFversion.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@@ -199,7 +200,7 @@ void eulerianScalarField::pullCloudFields() const
// ************************************************************
void eulerianScalarField::update(surfaceScalarField phi, volScalarField voidfraction, volScalarField nuEff, scalar Sc, bool limitDiffusion) const
{
- scalar oneByCpVolumetric = 1./cpVolumetric_;
+ scalar oneByCpVolumetric = 1./(cpVolumetric_+SMALL);
//Normalize source in case we have a temperature field
if(fieldType_=="temperature")
{
@@ -211,8 +212,14 @@ void eulerianScalarField::update(surfaceScalarField phi, volScalarField voidfrac
else
{
const volScalarField& cpVolumetricField_(particleCloud_.mesh().lookupObject (cpVolumetricFieldName_));
- mSource_ /= cpVolumetricField_;
- mSourceKImpl_ /= cpVolumetricField_;
+
+ #if defined(version40) || defined(versionv1612plus)
+ mSource_ /= cpVolumetricField_+SMALL;
+ mSourceKImpl_ /= cpVolumetricField_+SMALL;
+ #else
+ mSource_.internalField() /= cpVolumetricField_.internalField()+SMALL;
+ mSourceKImpl_.internalField() /= cpVolumetricField_.internalField()+SMALL;
+ #endif
}
}
diff --git a/src/eulerian/scalarTransportModelsCFDEM/generalManual/generalManual.C b/src/eulerian/scalarTransportModelsCFDEM/generalManual/generalManual.C
index 8ac530b..464daef 100644
--- a/src/eulerian/scalarTransportModelsCFDEM/generalManual/generalManual.C
+++ b/src/eulerian/scalarTransportModelsCFDEM/generalManual/generalManual.C
@@ -121,6 +121,10 @@ void generalManual::setSources()
for (int i=0;i("allowAdjustTimeStep", false)),
solveFlow_(true),
solveScalarTransport_(true),
- verbose_(false),
+ verbose_(couplingProperties_.lookupOrDefault("verbose", false)),
debug_(false),
allowCFDsubTimestep_(true),
ignore_(false),
@@ -127,6 +128,7 @@ Foam::cfdemCloud::cfdemCloud
dimensionedScalar("zero", dimensionSet(0,0,-1,0,0), 0) // 1/s
),
checkPeriodicCells_(false),
+ meshHasUpdated_(false),
turbulence_
(
#if defined(version24Dev)
@@ -264,6 +266,9 @@ Foam::cfdemCloud::cfdemCloud
averagingM().applyDebugSettings(debugMode());
//--
+ //push dummy to type-specific cg factor since types start with 1
+ cgTypeSpecific_.push_back(-1);
+ cgTypeSpecificDifferent=false;
dataExchangeM().setCG();
Info << "If BC are important, please provide volScalarFields -imp/expParticleForces-" << endl;
@@ -283,7 +288,6 @@ Foam::cfdemCloud::cfdemCloud
if (couplingProperties_.found("treatVoidCellsAsExplicitForce"))
treatVoidCellsAsExplicitForce_ = readBool(couplingProperties_.lookup("treatVoidCellsAsExplicitForce"));
- if (couplingProperties_.found("verbose")) verbose_=true;
if (couplingProperties_.found("ignore")) ignore_=true;
if (turbulenceModelType_=="LESProperties")
{
@@ -320,6 +324,11 @@ Foam::cfdemCloud::cfdemCloud
forceModel_[i]().applyDebugSettings(debugMode());
}
+ if (nrForceModels()[momCoupleModels_.size()];
for (int i=0;i("adjustTimeStep", false) && !allowAdjustTimeStep_ )
+ {
+ FatalError << "cfdemCloud:: you want to adjustTimeStep in controlDict. This is not allowed in this version of CFDEM."
+ << abort(FatalError);
+ }
}
// * * * * * * * * * * * * * * * * Destructors * * * * * * * * * * * * * * //
@@ -477,6 +493,21 @@ void Foam::cfdemCloud::setNumberOfParticles(int nP)
}
}
+void Foam::cfdemCloud::setNumberOfClumps(int nC)
+{
+ //Info << "Foam::cfdemCloud::setNumberOfClumps(int nC) ... do nothing" << endl;
+}
+
+void Foam::cfdemCloud::setPositionsCM(label n,double* pos)
+{
+ //Info << "Foam::cfdemCloud::setPositionsCM(int nC) ... do nothing" << endl;
+}
+
+void Foam::cfdemCloud::setCellIDsCM(label n,int* ID)
+{
+ //Info << "Foam::cfdemCloud::setCellIDsCM(int nC) ... do nothing" << endl;
+}
+
void Foam::cfdemCloud::findCells()
{
locateM().findCell(NULL,positions_,cellIDs_,numberOfParticles());
@@ -717,6 +748,10 @@ bool Foam::cfdemCloud::evolve
// IMPLICIT FORCE CONTRIBUTION AND SOLVER USE EXACTLY THE SAME AVERAGED
// QUANTITIES AT THE GRID!
Info << "\n timeStepFraction() = " << dataExchangeM().timeStepFraction() << endl;
+ if( dataExchangeM().timeStepFraction() > 1.000000000000000001)
+ {
+ FatalError << "cfdemCloud::dataExchangeM().timeStepFraction()>1: Do not do this, since dangerous. This might be due to the fact that you used a adjustable CFD time step. Please use a fixed CFD time step." << abort(FatalError);
+ }
clockM().start(24,"interpolateEulerFields");
// update voidFractionField
diff --git a/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloud.H b/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloud.H
index 42077ca..f15b412 100644
--- a/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloud.H
+++ b/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloud.H
@@ -89,11 +89,13 @@ protected:
IOdictionary liggghtsCommandDict_;
+ Switch allowAdjustTimeStep_;
+
Switch solveFlow_;
Switch solveScalarTransport_;
- bool verbose_;
+ Switch verbose_;
bool debug_;
@@ -154,6 +156,8 @@ protected:
mutable bool isLES_;
mutable scalar cg_;
+
+ mutable std::vector cgTypeSpecific_;
bool cgOK_;
@@ -171,6 +175,8 @@ protected:
mutable Switch checkPeriodicCells_;
+ bool meshHasUpdated_;
+
#if defined(version24Dev)
const turbulenceModel& turbulence_;
#elif defined(version21) || defined(version16ext)
@@ -217,6 +223,12 @@ protected:
virtual void setNumberOfParticles(int);
+ virtual void setNumberOfClumps(int);
+
+ virtual void setPositionsCM(label,double*);
+
+ virtual void setCellIDsCM(label,int*);
+
virtual void findCells();
virtual void setForces();
@@ -285,8 +297,14 @@ public:
label liggghtsCommandModelIndex(word);
inline void setCG(double) const;
+
+ inline void setCGTypeSpecific(int, double) const;
+
+ mutable bool cgTypeSpecificDifferent;
inline const scalar& cg() const;
+
+ inline const scalar& cg(int) const;
inline const bool& impDEMdrag() const;
@@ -300,6 +318,8 @@ public:
inline const fvMesh& mesh() const;
+ inline bool allowAdjustTimeStep() const;
+
inline bool solveFlow() const;
inline bool solveScalarTransport() const;
@@ -353,7 +373,11 @@ public:
virtual inline bool multipleTypesDMin() {return false;}
virtual inline double ** particleDensity() const {return NULL;};
virtual inline int ** particleTypes() const {return NULL;};
- virtual label particleType(label index) const {return -1;};
+ virtual label particleType(label index) const
+ {
+ FatalError << "cfdemCloud::particleType(index): you are attempting to get the particle type, but this array is not transferred to CFDEM for this cloud. Use a different cloud, or avoid asking for the particle type." << abort(FatalError);
+ return -1;
+ };
//access to the particle's rotation and torque data
virtual inline double ** DEMTorques() const {return NULL;};
@@ -531,6 +555,8 @@ public:
void accessParticleDatFieldsUserCFDEMToExt(word fieldToAccess, double **& fieldData);
//=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
bool checkPeriodicCells() { return checkPeriodicCells_; }
+ bool meshHasUpdated() { return meshHasUpdated_; }
+ void setMeshHasUpdatedFlag(bool hasUpdated) { meshHasUpdated_ = hasUpdated; }
};
diff --git a/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloudI.H b/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloudI.H
index 22cc99f..32d5a4d 100644
--- a/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloudI.H
+++ b/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloudI.H
@@ -50,6 +50,21 @@ inline void cfdemCloud::setCG(double cg) const
Info << "cg is set to: " << cg_ << endl;
};
+inline void cfdemCloud::setCGTypeSpecific(int type, double cg) const
+{
+ if(int(cgTypeSpecific_.size())!=type)
+ FatalError << "setCGTypeSpecific attempts to set at location "
+ << cgTypeSpecific_.size()
+ << ", but caller requests to set at "
+ << type
+ << ". This is fatal. "
+ << abort(FatalError);
+ cgTypeSpecific_.push_back(cg);
+ if(cgcg_*1.00001) cgTypeSpecificDifferent = true;
+
+ Info << "type specific cg for type " << type << " is set to: " << cg << endl;
+}
+
inline const bool& cfdemCloud::impDEMdrag() const
{
return impDEMdrag_;
@@ -75,6 +90,11 @@ inline const scalar& cfdemCloud::cg() const
return cg_;
};
+inline const scalar& cfdemCloud::cg(int type) const
+{
+ return cgTypeSpecific_[type];
+};
+
inline const bool& cfdemCloud::ignore() const
{
return ignore_;
@@ -216,7 +236,8 @@ inline double cfdemCloud::d32(bool recalc)
Ntot+=2*r*r*r;
Dtot+=r*r;
}
- d32_=Ntot/Dtot;
+ if(Ntot>SMALL) d32_ = Ntot/Dtot;
+ else d32_ = 0.;
}
return d32_;
diff --git a/src/lagrangian/cfdemParticle/etc/OFversion/OFversion.H b/src/lagrangian/cfdemParticle/etc/OFversion/OFversion.H
deleted file mode 100644
index 951fceb..0000000
--- a/src/lagrangian/cfdemParticle/etc/OFversion/OFversion.H
+++ /dev/null
@@ -1,49 +0,0 @@
-#if(CFDEMWMPROJECTVERSION == 40)
- #define version40
-#elif(CFDEMWMPROJECTVERSION == 24)
- #define version24
-#elif(CFDEMWMPROJECTVERSION == 30)
- #define version30
-#elif(CFDEMWMPROJECTVERSION == 132)
- #define versionExt32
-#endif
-
-//define anisotropicRotation cloud models
-//#define anisotropicRotation
-
-// features of 16ext work also in extend 3.2
-#if defined(versionExt32)
- #define version16ext
-#endif
-
-// features of 3.0 work also in 4.0
-#if defined(version40)
- #define version30
-#endif
-
-// features of 2.4Dev work also in Dev
-#if defined(version30)
- #define version24Dev
-#endif
-
-// basically use 24x settings + some dev features (e.g. new turbulence model structure)
-#if defined(version24Dev)
- #define version24
-#endif
-
-// features of 2.4 work also in 2.3
-#if defined(version24)
- #define version23
-#endif
-
-// features of 2.1 work also in 2.3
-#if defined(version23)
- #define version21
- #define version221
-#endif
-
-// features of 2.1 work also in 2.2
-#if defined(version22)
- #define version21
- #define version221
-#endif
diff --git a/src/lagrangian/cfdemParticle/etc/additionalLibs_2.4.x b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_2.4.x
similarity index 76%
rename from src/lagrangian/cfdemParticle/etc/additionalLibs_2.4.x
rename to src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_2.4.x
index bda1adf..f363cdb 100644
--- a/src/lagrangian/cfdemParticle/etc/additionalLibs_2.4.x
+++ b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_2.4.x
@@ -1,13 +1,18 @@
-# paths for additional libraries
-CFDEM_ADD_LIB_PATHS = \
-
-# additional libraries to be linked to solvers
-CFDEM_ADD_LIBS = \
+# Specify additional include and library paths, as well as libraries for the compilation
+#
+# CFDEM_ADD_INC =
+# CFDEM_ADD_LIB_PATHS =
+# CFDEM_ADD_LIBS =
# additional static libraries to be linked to lagrangian library
CFDEM_ADD_STATICLIBS = \
-lmpi_cxx \
+# If you don't want VTK comment the following line and use the appropriate LIGGGHTS Makefile
+# via setting CFDEM_LIGGGHTS_MAKEFILE_NAME that does not contain VTK.
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_vtk
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_superquadric
+
#################################################################
## SETTINGS FOR 2.4.x ##
#################################################################
diff --git a/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_3.0.x b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_3.0.x
new file mode 100644
index 0000000..47d2e37
--- /dev/null
+++ b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_3.0.x
@@ -0,0 +1,53 @@
+# Specify additional include and library paths, as well as libraries for the compilation
+#
+#CFDEM_ADD_INC = \
+#CFDEM_ADD_LIB_PATHS = \
+#CFDEM_ADD_LIBS = \
+
+# additional static libraries to be linked to lagrangian library
+CFDEM_ADD_STATICLIBS = \
+-lmpi_cxx \
+
+# If you don't want VTK comment the following line and use the appropriate LIGGGHTS Makefile
+# via setting CFDEM_LIGGGHTS_MAKEFILE_NAME that does not contain VTK.
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_vtk
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_superquadric
+
+
+# If you don't want ParSCale comment the following line
+#include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_ParScale
+
+#################################################################
+## SETTINGS FOR 3.0.x ##
+#################################################################
+#----------------------------------------------------------------
+# incompressible turbulence model settings
+#----------------------------------------------------------------
+# paths for incompressible turbulence models to use
+CFDEM_ADD_INCOMPTURBMOD_PATHS = \
+-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
+-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
+-I$(LIB_SRC)/fvOptions/lnInclude \
+###-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
+
+# libs for turbulence models to use
+CFDEM_ADD_INCOMPTURBMOD_LIBS = \
+-lturbulenceModels \
+-lincompressibleTurbulenceModels \
+-lfvOptions \
+
+#----------------------------------------------------------------
+# compressible turbulence model settings
+#----------------------------------------------------------------
+# paths for compressible turbulence models to use
+CFDEM_ADD_COMPTURBMOD_PATHS = \
+-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
+-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
+-I$(LIB_SRC)/transportModels/compressible/lnInclude \
+-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
+
+# libs for turbulence models to use
+CFDEM_ADD_COMPTURBMOD_LIBS = \
+-lturbulenceModels \
+-lcompressibleTurbulenceModels \
+#################################################################
diff --git a/src/lagrangian/cfdemParticle/etc/additionalLibs_3.2 b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_3.2
similarity index 75%
rename from src/lagrangian/cfdemParticle/etc/additionalLibs_3.2
rename to src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_3.2
index c5bdc5a..530c4d7 100644
--- a/src/lagrangian/cfdemParticle/etc/additionalLibs_3.2
+++ b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_3.2
@@ -1,20 +1,18 @@
-# paths for additional libraries
-CFDEM_ADD_LIB_PATHS = \
--L/usr/include/vtk \
--L/usr/lib64/vtk \
-
-# additional libraries to be linked to solvers
-CFDEM_ADD_LIBS = \
--lvtkCommonCore \
--lvtkIOCore \
--lvtkIOXML \
--lvtkIOLegacy \
--lvtkCommonDataModel \
+# Specify additional include and library paths, as well as libraries for the compilation
+#
+# CFDEM_ADD_INC =
+# CFDEM_ADD_LIB_PATHS =
+# CFDEM_ADD_LIBS =
# additional static libraries to be linked to lagrangian library
CFDEM_ADD_STATICLIBS = \
-lmpi_cxx \
+# If you don't want VTK comment the following line and use the appropriate LIGGGHTS Makefile
+# via setting CFDEM_LIGGGHTS_MAKEFILE_NAME that does not contain VTK.
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_vtk
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_superquadric
+
#################################################################
## SETTINGS FOR Extend 3.2 ##
#################################################################
diff --git a/src/lagrangian/cfdemParticle/etc/additionalLibs_4.x b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_4.x
similarity index 78%
rename from src/lagrangian/cfdemParticle/etc/additionalLibs_4.x
rename to src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_4.x
index 91bbfb3..c0b59cf 100644
--- a/src/lagrangian/cfdemParticle/etc/additionalLibs_4.x
+++ b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_4.x
@@ -1,13 +1,18 @@
-# paths for additional libraries
-CFDEM_ADD_LIB_PATHS = \
-
-# additional libraries to be linked to solvers
-CFDEM_ADD_LIBS = \
+# Specify additional include and library paths, as well as libraries for the compilation
+#
+# CFDEM_ADD_INC =
+# CFDEM_ADD_LIB_PATHS =
+# CFDEM_ADD_LIBS =
# additional static libraries to be linked to lagrangian library
CFDEM_ADD_STATICLIBS = \
-lmpi_cxx \
+# If you don't want VTK comment the following line and use the appropriate LIGGGHTS Makefile
+# via setting CFDEM_LIGGGHTS_MAKEFILE_NAME that does not contain VTK.
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_vtk
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_superquadric
+
#################################################################
## SETTINGS FOR 3.0.x ##
#################################################################
diff --git a/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_ParScale b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_ParScale
new file mode 100644
index 0000000..5901c81
--- /dev/null
+++ b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_ParScale
@@ -0,0 +1,39 @@
+# ParScale library, OPTIONAL
+#
+
+ifeq ($(PASCAL_SRC_DIR),"")
+ #ParScale variables seem not to be set
+ PARSCALE_PATH = \
+
+ PARSCALE_LIB = \
+
+ PARSCALE_STATICLIB = \
+
+else
+ PARSCALE_PATH = -L$(PASCAL_THIRDPARTY_DIR)/chemkinReader/src \
+ -L$(PASCAL_INST_DIR)/lib \
+ -L$(PASCAL_INST_DIR)/lib64 \
+ -L$(PASCAL_SRC_DIR) \
+ -L$(PASCAL_HDF5_DIR)/lib \
+ -L$(PASCAL_QT5_DIR)/lib
+
+ PARSCALE_LIB = -lboost_regex \
+ -lQt5Core \
+ -lhdf5_cpp \
+ -lhdf5 \
+ -lchemkinreader
+
+ PARSCALE_STATICLIB = -L$(CFDEM_POEMSLIB_PATH) \
+ -lpoems \
+ -Wl,--whole-archive -l$(PASCAL_LIB_NAME) -Wl,--no-whole-archive \
+ -Wl,--whole-archive -lsundials_cvode -Wl,--no-whole-archive \
+ -lsundials_nvecserial
+endif
+
+
+CFDEM_ADD_LIB_PATHS += $(PARSCALE_PATH)
+
+CFDEM_ADD_LIBS += $(PARSCALE_LIB)
+
+CFDEM_ADD_STATICLIBS += $(PARSCALE_STATICLIB)
+
diff --git a/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_superquadric b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_superquadric
new file mode 100644
index 0000000..c6ade8e
--- /dev/null
+++ b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_superquadric
@@ -0,0 +1,5 @@
+sinclude $(CFDEM_LIGGGHTS_SRC_DIR)/MAKE/Makefile.user
+ifeq ($(USE_SUPERQUADRICS), "ON")
+ PFLAGS+=-DSUPERQUADRIC_ACTIVE_FLAG -DNONSPHERICAL_ACTIVE_FLAG
+endif
+
diff --git a/src/lagrangian/cfdemParticle/etc/additionalLibs_3.0.x b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_v1606+
similarity index 78%
rename from src/lagrangian/cfdemParticle/etc/additionalLibs_3.0.x
rename to src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_v1606+
index 91bbfb3..1eb644f 100644
--- a/src/lagrangian/cfdemParticle/etc/additionalLibs_3.0.x
+++ b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_v1606+
@@ -1,13 +1,18 @@
-# paths for additional libraries
-CFDEM_ADD_LIB_PATHS = \
-
-# additional libraries to be linked to solvers
-CFDEM_ADD_LIBS = \
+# Specify additional include and library paths, as well as libraries for the compilation
+#
+#CFDEM_ADD_INC = \
+#CFDEM_ADD_LIB_PATHS = \
+#CFDEM_ADD_LIBS = \
# additional static libraries to be linked to lagrangian library
CFDEM_ADD_STATICLIBS = \
-lmpi_cxx \
+# If you don't want VTK comment the following line and use the appropriate LIGGGHTS Makefile
+# via setting CFDEM_LIGGGHTS_MAKEFILE_NAME that does not contain VTK.
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_vtk
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_superquadric
+
#################################################################
## SETTINGS FOR 3.0.x ##
#################################################################
diff --git a/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_v1612+ b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_v1612+
new file mode 100644
index 0000000..1eb644f
--- /dev/null
+++ b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_v1612+
@@ -0,0 +1,48 @@
+# Specify additional include and library paths, as well as libraries for the compilation
+#
+#CFDEM_ADD_INC = \
+#CFDEM_ADD_LIB_PATHS = \
+#CFDEM_ADD_LIBS = \
+
+# additional static libraries to be linked to lagrangian library
+CFDEM_ADD_STATICLIBS = \
+-lmpi_cxx \
+
+# If you don't want VTK comment the following line and use the appropriate LIGGGHTS Makefile
+# via setting CFDEM_LIGGGHTS_MAKEFILE_NAME that does not contain VTK.
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_vtk
+include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_superquadric
+
+#################################################################
+## SETTINGS FOR 3.0.x ##
+#################################################################
+#----------------------------------------------------------------
+# incompressible turbulence model settings
+#----------------------------------------------------------------
+# paths for incompressible turbulence models to use
+CFDEM_ADD_INCOMPTURBMOD_PATHS = \
+-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
+-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
+-I$(LIB_SRC)/fvOptions/lnInclude \
+
+# libs for turbulence models to use
+CFDEM_ADD_INCOMPTURBMOD_LIBS = \
+-lturbulenceModels \
+-lincompressibleTurbulenceModels \
+-lfvOptions \
+
+#----------------------------------------------------------------
+# compressible turbulence model settings
+#----------------------------------------------------------------
+# paths for compressible turbulence models to use
+CFDEM_ADD_COMPTURBMOD_PATHS = \
+-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
+-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
+-I$(LIB_SRC)/transportModels/compressible/lnInclude \
+-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
+
+# libs for turbulence models to use
+CFDEM_ADD_COMPTURBMOD_LIBS = \
+-lturbulenceModels \
+-lcompressibleTurbulenceModels \
+#################################################################
diff --git a/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_vtk b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_vtk
new file mode 100644
index 0000000..7d610a9
--- /dev/null
+++ b/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_vtk
@@ -0,0 +1,50 @@
+# VTK library, OPTIONAL
+#
+# VTK_INC = path for VTK header files (not needed in coupling, only in here to identify VTK version)
+# VTK_PATH = path for VTK library
+# VTK_LIB = name of VTK library
+#
+# If the automatic detection does not work for you, e.g. because of a custom installation of VTK,
+# then you should set VTK_INC, VTK_PATH and VTK_LIB in your shell environment (e.g. via export in
+# your ~/.bashrc).
+
+VTK_INC ?= -I$(shell ls -d /usr/include/vtk* | tail -n 1)
+VTK_TMP := $(shell grep -d skip VTK_MAJOR_VERSION $(subst -I,,$(VTK_INC))/* | grep define)
+VTK_MAJOR_VERSION := $(word $(words $(VTK_TMP)),$(VTK_TMP))
+VTK_TMP := $(shell grep -d skip VTK_MINOR_VERSION $(subst -I,,$(VTK_INC))/* | grep define)
+VTK_MINOR_VERSION := $(word $(words $(VTK_TMP)),$(VTK_TMP))
+VTK_VERSION=$(VTK_MAJOR_VERSION).$(VTK_MINOR_VERSION)
+ifeq ($(VTK_MAJOR_VERSION),5)
+ VTK_LIB = -lvtkCommon \
+ -lvtkFiltering \
+ -lvtkIO \
+ -lvtkParallel \
+ -lvtkGraphics
+ VTK_PATH ?= -L$(dir $(shell find /usr/lib* -name 'libvtkCommon.so' | tail -n 1))
+else
+ ifeq ($(VTK_MAJOR_VERSION),$(filter $(VTK_MAJOR_VERSION),6 7))
+ VTK_LIB = -lvtkCommonCore-$(VTK_VERSION) \
+ -lvtkIOCore-$(VTK_VERSION) \
+ -lvtkIOXML-$(VTK_VERSION) \
+ -lvtkIOLegacy-$(VTK_VERSION) \
+ -lvtkCommonDataModel-$(VTK_VERSION) \
+ -lvtkParallelCore-$(VTK_VERSION) \
+ -lvtkParallelMPI-$(VTK_VERSION) \
+ -lvtkCommonExecutionModel-$(VTK_VERSION) \
+ -lvtkFiltersCore-$(VTK_VERSION) \
+ -lvtkFiltersHybrid-$(VTK_VERSION)
+ # For VTK >= 6.2 we need to use lvtkIOParallelXML
+ MINOR_GE_6_2 := $(shell [ $(VTK_MAJOR_VERSION) -gt 6 ] || [ $(VTK_MINOR_VERSION) -ge 2 ] && echo true)
+ ifeq ($(MINOR_GE_6_2),true)
+ VTK_LIB += -lvtkIOParallelXML-$(VTK_VERSION)
+ else
+ VTK_LIB += -lvtkIOParallel-$(VTK_VERSION)
+ endif
+ VTK_PATH ?= -L$(dir $(shell find /usr/lib* -name 'libvtkCommonCore-$(VTK_VERSION).so' | tail -n 1))
+ else
+ TMP:=$(error Unsupported VTK major version $(VTK_VERSION))
+ endif
+endif
+
+CFDEM_ADD_LIB_PATHS += $(VTK_PATH)
+CFDEM_ADD_LIBS += $(VTK_LIB)
diff --git a/src/lagrangian/cfdemParticle/etc/bashrc b/src/lagrangian/cfdemParticle/etc/bashrc
index 121c107..24bd800 100755
--- a/src/lagrangian/cfdemParticle/etc/bashrc
+++ b/src/lagrangian/cfdemParticle/etc/bashrc
@@ -36,14 +36,24 @@
#------------------------------------------------------------------------------
#- export environment variables (adapt to your paths)
#------------------------------------------------------------------------------
+echo "************************************"
#check if default lammps lib path should be used
if [[ $CFDEM_LAMMPS_LIB_DIR == "" ]]; then
- export CFDEM_LAMMPS_LIB_DIR=$CFDEM_LIGGGHTS_SRC_DIR/../lib/
+ export CFDEM_LAMMPS_LIB_DIR=$CFDEM_LIGGGHTS_SRC_DIR/../lib
else
echo "using CFDEM_LAMMPS_LIB_DIR=$CFDEM_LAMMPS_LIB_DIR defined by user."
fi
+#test CFDEM_LAMMPS_LIB_DIR
+if [ -f "$CFDEM_LAMMPS_LIB_DIR/poems/Makefile.lammps" ]; then
+ :
+else
+ echo ""
+ echo " !!! WARNING CFDEM_LAMMPS_LIB_DIR = $CFDEM_LAMMPS_LIB_DIR seems to be wrong !!!"
+ echo ""
+fi
+
#- LIGGGHTS lib name
export CFDEM_LIGGGHTS_LIB_NAME=lmp_$CFDEM_LIGGGHTS_MAKEFILE_NAME
@@ -54,18 +64,20 @@ export CFDEM_LIB_NAME=lagrangianCFDEM-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_LIB_COMP_NAME=lagrangianCFDEMcomp-$CFDEM_VERSION-$WM_PROJECT_VERSION
#check if additional libraries should be compiled together with solvers
-if [[ $CFDEM_ADD_LIBS_NAME == "" ]]; then
- export CFDEM_ADD_LIBS_NAME=additionalLibs_$WM_PROJECT_VERSION
- echo "using CFDEM_ADD_LIBS_NAME=$CFDEM_ADD_LIBS_NAME ."
-else
- echo "using CFDEM_ADD_LIBS_NAME=$CFDEM_ADD_LIBS_NAME defined by user."
-fi
if [[ $CFDEM_ADD_LIBS_DIR == "" ]]; then
- export CFDEM_ADD_LIBS_DIR=$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc
+ export CFDEM_ADD_LIBS_DIR=$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/addLibs_universal
+ echo "using default CFDEM_ADD_LIBS_DIR=$CFDEM_ADD_LIBS_DIR"
else
echo "using CFDEM_ADD_LIBS_DIR=$CFDEM_ADD_LIBS_DIR defined by user."
fi
+if [[ $CFDEM_ADD_LIBS_NAME == "" ]]; then
+ export CFDEM_ADD_LIBS_NAME=additionalLibs_$WM_PROJECT_VERSION
+ echo "using default CFDEM_ADD_LIBS_NAME=$CFDEM_ADD_LIBS_NAME"
+else
+ echo "using CFDEM_ADD_LIBS_NAME=$CFDEM_ADD_LIBS_NAME defined by user."
+fi
+
# check addLibs path and file name
if [[ ! -f $CFDEM_ADD_LIBS_DIR/$CFDEM_ADD_LIBS_NAME ]]; then
echo "!!! ERROR !!!: CFDEM_ADD_LIBS_DIR/CFDEM_ADD_LIBS_NAME=$CFDEM_ADD_LIBS_DIR/$CFDEM_ADD_LIBS_NAME does not exist."
@@ -79,23 +91,15 @@ export CFDEM_Many2ManyLIB_PATH=$CFDEM_SRC_DIR/lagrangian/cfdemParticle/subModels
export CFDEM_Many2ManyLIB_MAKEFILENAME=$CFDEM_LIGGGHTS_MAKEFILE_NAME
#- LMP M2M lib path and makefile
-export CFDEM_M2MLIB_PATH=$CFDEM_SRC_DIR/lagrangian/cfdemParticle/subModels/dataExchangeModel/twoWayM2M/library
+export CFDEM_M2MLIB_PATH=$CFDEM_SRC_DIR/lagrangian/cfdemParticle/subModels/dataExchangeModel/M2M/library
export CFDEM_M2MLIB_MAKEFILENAME=$CFDEM_LIGGGHTS_MAKEFILE_NAME
-#- LMP POEMS lib path and makefile
+#- LMP M2MMS lib path and makefile
+export CFDEM_M2MMSLIB_PATH=$CFDEM_SRC_DIR/lagrangian/cfdemParticle/subModels/dataExchangeModel/M2M/library
+export CFDEM_M2MMSLIB_MAKEFILENAME=$CFDEM_LIGGGHTS_MAKEFILE_NAME
+
+#- LMP POEMS lib default path
export CFDEM_POEMSLIB_PATH=$CFDEM_LAMMPS_LIB_DIR/poems
-export CFDEM_POEMSLIB_MAKEFILENAME=Install
-
-#- LMP ASPHERE lib path and makefile
-export CFDEM_ASPHERELIB_PATH=$CFDEM_LAMMPS_LIB_DIR/ASPHERE
-export CFDEM_ASPHERELIB_MAKEFILENAME=Install
-
-#- PARSCALE lib path and makefile
-export CFDEM_PARSCALELIB_PATH=$CFDEM_LAMMPS_LIB_DIR/PASCAL
-export CFDEM_PARSCALELIB_MAKEFILENAME=Install
-
-#-C3PO library
-export C3PO_SRC_DIR=$CFDEM_SRC_DIR/c3po
#-----------------------------------------------------
#- path to test harness
@@ -250,6 +254,22 @@ if [[ $WM_PROJECT_VERSION == 4.* ]]; then
sleep 1.5
elif [[ $WM_PROJECT_VERSION == 3.0.* ]]; then
export CFDEM_WM_PROJECT_VERSION=30
+elif [[ $WM_PROJECT_VERSION == v1606+ ]]; then
+ export CFDEM_WM_PROJECT_VERSION=1606
+ echo "************************************"
+ echo "WARNING from your CFDEM code!"
+ echo "WARNING: Coupling with your OpenFOAM(R) version is currently under development!"
+ echo "In doubt switch to another version."
+ echo "************************************"
+ sleep 1.5
+elif [[ $WM_PROJECT_VERSION == v1612+ ]]; then
+ export CFDEM_WM_PROJECT_VERSION=1612
+ echo "************************************"
+ echo "WARNING from your CFDEM code!"
+ echo "WARNING: Coupling with your OpenFOAM(R) version is currently under development!"
+ echo "In doubt switch to another version."
+ echo "************************************"
+ sleep 1.5
elif [[ $WM_PROJECT_VERSION == 2.4.* ]]; then
export CFDEM_WM_PROJECT_VERSION=24
elif [[ $WM_PROJECT_VERSION == "3.2" && $WM_FORK == "extend" ]]; then
@@ -263,3 +283,5 @@ else
echo "************************************"
sleep 1.5
fi
+
+echo "************************************"
diff --git a/src/lagrangian/cfdemParticle/etc/cfdemSystemTest.sh b/src/lagrangian/cfdemParticle/etc/cfdemSystemTest.sh
index eb05dcf..391d76a 100755
--- a/src/lagrangian/cfdemParticle/etc/cfdemSystemTest.sh
+++ b/src/lagrangian/cfdemParticle/etc/cfdemSystemTest.sh
@@ -12,7 +12,7 @@ source $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/functions.sh
checkGPP="true"
#- sys check for add on
-checkAddOn="true"
+checkAddOn="false"
#- system settings
printHeader
@@ -50,6 +50,23 @@ echo '$WM_LABEL_SIZE = '"$WM_LABEL_SIZE"
if [ $WM_LABEL_SIZE != 32 ]; then
echo "!!!! Warning: WM_LABEL_SIZE must be 32!!!!! (Please correct in $FOAM_ETC/bashrc.)"
fi
+echo ""
+echo "Additional lib settings"
+cat < .Makefile_vtk_tmp
+include $CFDEM_ADD_LIBS_DIR/$CFDEM_ADD_LIBS_NAME
+
+.PHONY: all
+
+all:
+ @echo "VTK_PATH = \$(VTK_PATH)"
+ @echo "VTK_LIB = \$(VTK_LIB)"
+ @echo "VTK_INC = \$(VTK_INC)"
+ @echo "CFDEM_ADD_LIB_PATHS = \$(CFDEM_ADD_LIB_PATHS)"
+ @echo "CFDEM_ADD_LIBS = \$(CFDEM_ADD_LIBS)"
+EOT
+make -f .Makefile_vtk_tmp
+rm -f .Makefile_vtk_tmp
+echo
echo "*******************"
@@ -85,4 +102,12 @@ if [ $checkAddOn == "true" ]
else
echo "$packageName does not exist."
fi
+
+ packageName=parScale
+ filePath=$PASCAL_SRC_DIR/..
+ if [ $(checkDir $filePath) == "true" ]; then
+ source $filePath/etc/$packageName"SystemTest.sh"
+ else
+ echo "$packageName does not exist."
+ fi
fi
diff --git a/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_sol.sh b/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_sol.sh
index ae807ee..84b0692 100755
--- a/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_sol.sh
+++ b/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_sol.sh
@@ -76,7 +76,7 @@ else
#wait until prev. compilation is finished
echo "waiting..."
#until [ `ps -a | grep make | wc -l` -eq 0 ];
- until [ `ls -a | $logpath/grep *.tempXYZ | wc -l` -eq 0 ];
+ until [ `ls -a | grep $logpath/*.tempXYZ | wc -l` -eq 0 ];
do
sleep 2
done
diff --git a/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_src.sh b/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_src.sh
index 67c41a1..dc76c1d 100755
--- a/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_src.sh
+++ b/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_src.sh
@@ -18,14 +18,14 @@ logDir="log"
cd $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc
mkdir -p $logDir
-#================================================================================#
-# Must compile (but not clean) LIGGGHTS libraries, since it could have been
-# compiled before with the compileLIGGGHTS command
-# Then, check successful compilation
-#================================================================================#
-bash $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/compileLIGGGHTS_lib.sh noClean
-echo "...now checking if LIGGGHTS libraries are compiled that are needed for CFDEM's src packages."
-bash $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/compileLIGGGHTS_lib.sh false
+##================================================================================#
+## Must compile (but not clean) LIGGGHTS libraries, since it could have been
+## compiled before with the compileLIGGGHTS command
+## Then, check successful compilation
+##================================================================================#
+#bash $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/compileLIGGGHTS_lib.sh noClean
+#echo "...now checking if LIGGGHTS libraries are compiled that are needed for CFDEM's src packages."
+#bash $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/compileLIGGGHTS_lib.sh false
#================================================================================#
# compile src
diff --git a/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_uti.sh b/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_uti.sh
index 22a7cde..f6013b4 100755
--- a/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_uti.sh
+++ b/src/lagrangian/cfdemParticle/etc/compileCFDEMcoupling_uti.sh
@@ -72,7 +72,7 @@ else
#wait until prev. compilation is finished
echo "waiting..."
#until [ `ps -a | grep make | wc -l` -eq 0 ];
- until [ `ls -a | $logpath/grep *.tempXYZ | wc -l` -eq 0 ];
+ until [ `ls -a | grep $logpath/*.tempXYZ | wc -l` -eq 0 ];
do
sleep 2
done
diff --git a/src/lagrangian/cfdemParticle/etc/compileLIGGGHTS_lib.sh b/src/lagrangian/cfdemParticle/etc/compileLIGGGHTS_lib.sh
index f0c9f60..eb1e12a 100755
--- a/src/lagrangian/cfdemParticle/etc/compileLIGGGHTS_lib.sh
+++ b/src/lagrangian/cfdemParticle/etc/compileLIGGGHTS_lib.sh
@@ -20,6 +20,7 @@ mkdir -p $logDir
#================================================================================#
whitelist="$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/library-liggghts-list.txt"
echo ""
+ echo "==========================================="
echo "Compiling sub-libraries of LIGGGHTS now..."
echo "Please provide the libraries to be compiled in the $CWD/$whitelist file."
echo "Libraries must be in: $CFDEM_LAMMPS_LIB_DIR, or a path defined by the Line in the above file."
@@ -71,3 +72,122 @@ mkdir -p $logDir
compileLMPlib $logpath $logfileName $headerText $makeFileName $libraryPath $compilationModeSwitch
done
+
+ #===================================================================================
+ whitelist="$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/package-undo-liggghts-list.txt"
+ echo ""
+ echo "==========================================="
+ echo "deactivating all possible packages of LIGGGHTS now..."
+ echo "Please provide the packages to be compiled in the $CWD/$whitelist file."
+ echo "Packages must be in: $CFDEM_LAMMPS_LIB_DIR."
+
+ if [ ! -f "$CWD/$whitelist" ];then
+ echo "$whitelist does not exist in $CWD. Nothing will be done."
+ NLINES=0
+ COUNT=0
+ else
+ NLINES=`wc -l < $CWD/$whitelist`
+ COUNT=0
+ fi
+
+ logpath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")/$logDir"
+
+ # resetting Makefile.package
+ cp $CFDEM_LIGGGHTS_SRC_DIR/Makefile.package.empty $CFDEM_LIGGGHTS_SRC_DIR/Makefile.package
+ cp $CFDEM_LIGGGHTS_SRC_DIR/Makefile.package.settings.empty $CFDEM_LIGGGHTS_SRC_DIR/Makefile.package.settings
+
+ while [ $COUNT -lt $NLINES ]
+ do
+ let COUNT++
+ LINE=`head -n $COUNT $CWD/$whitelist | tail -1`
+
+ # white lines
+ if [[ "$LINE" == "" ]]; then
+ echo "compile $LINE"
+ continue
+ # comments
+ elif [[ "$LINE" == \#* ]]; then
+ continue
+ # paths
+ elif [[ "$LINE" == */dir ]]; then
+ echo "will change path..."
+ LINE=$(echo "${LINE%????}")
+ path="$CFDEM_LIGGGHTS_SRC_DIR"
+ cd $path
+ echo $PWD
+ #continue
+ fi
+
+ #--------------------------------------------------------------------------------#
+ #- define variables
+ logfileName="log_compile$LINE""lib"
+ #--------------------------------------------------------------------------------#
+ rm $logfileName 2>&1 | tee -a $logpath/$logfileName
+
+ make no-$LINE 2>&1 | tee -a $logpath/$logfileName
+ done
+
+ #===================================================================================
+ whitelist="$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/package-liggghts-list.txt"
+ echo ""
+ echo "==========================================="
+ echo "activating packages of LIGGGHTS now..."
+ echo "Please provide the packages to be compiled in the $CWD/$whitelist file."
+ echo "Packages must be in: $CFDEM_LAMMPS_LIB_DIR."
+
+ if [ ! -f "$CWD/$whitelist" ];then
+ echo "$whitelist does not exist in $CWD. Nothing will be done."
+ NLINES=0
+ COUNT=0
+ else
+ NLINES=`wc -l < $CWD/$whitelist`
+ COUNT=0
+ fi
+
+ logpath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")/$logDir"
+
+ while [ $COUNT -lt $NLINES ]
+ do
+ let COUNT++
+ LINE=`head -n $COUNT $CWD/$whitelist | tail -1`
+
+ # white lines
+ if [[ "$LINE" == "" ]]; then
+ echo "compile $LINE"
+ continue
+ # comments
+ elif [[ "$LINE" == \#* ]]; then
+ continue
+ # paths
+ elif [[ "$LINE" == */dir ]]; then
+ echo "will change path..."
+ LINE=$(echo "${LINE%????}")
+ path="$CFDEM_LIGGGHTS_SRC_DIR"
+ cd $path
+ echo $PWD
+ #continue
+ fi
+
+ #--------------------------------------------------------------------------------#
+ #- define variables
+ logfileName="log_compile$LINE""lib"
+ #--------------------------------------------------------------------------------#
+
+ make yes-$LINE 2>&1 | tee -a $logpath/$logfileName
+
+ # assuming we need the poems lib if the package POEMS is activated
+ if [[ "$LINE" == "POEMS" ]]; then
+ echo "compile $LINE"
+ cd $CFDEM_POEMSLIB_PATH
+ make -f Makefile.g++ clean 2>&1 | tee -a $logpath/$logfileName
+ make -j $nProc -f Makefile.g++ lib 2>&1 | tee -a $logpath/$logfileName
+ cd $path
+ fi
+
+ # special handling of PARSCALE
+ if [[ "$LINE" == "PASCAL" ]]; then
+ echo "compile $LINE"
+ #. $PASCAL_SRC_DIR/refresh 2>&1 | tee -a $logpath/$logfileName
+ . $PASCAL_SRC_DIR/refreshLibrary.sh 2>&1 | tee -a $logpath/$logfileName
+ fi
+ done
diff --git a/src/lagrangian/cfdemParticle/etc/cshrc b/src/lagrangian/cfdemParticle/etc/cshrc
index 0d413b7..bcb7de5 100755
--- a/src/lagrangian/cfdemParticle/etc/cshrc
+++ b/src/lagrangian/cfdemParticle/etc/cshrc
@@ -18,7 +18,7 @@
##- source cfdem env vars
#setenv CFDEM_VERSION PUBLIC
#setenv CFDEM_PROJECT_DIR $HOME/CFDEM/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
-#setenv CFDEM_SRC_DIR $CFDEM_PROJECT_DIR/src/lagrangian/cfdemParticle
+#setenv CFDEM_SRC_DIR $CFDEM_PROJECT_DIR/src
#setenv CFDEM_SOLVER_DIR $CFDEM_PROJECT_DIR/applications/solvers
#setenv CFDEM_DOC_DIR $CFDEM_PROJECT_DIR/doc
#setenv CFDEM_UT_DIR $CFDEM_PROJECT_DIR/applications/utilities
@@ -36,14 +36,25 @@
#------------------------------------------------------------------------------
#- export environment variables (adapt to your paths)
#------------------------------------------------------------------------------
+echo "************************************"
#check if default lammps lib path should be used
if ( ! ($?CFDEM_LAMMPS_LIB_DIR) ) then
- setenv CFDEM_LAMMPS_LIB_DIR $CFDEM_LIGGGHTS_SRC_DIR"/../lib/"
+ setenv CFDEM_LAMMPS_LIB_DIR $CFDEM_LIGGGHTS_SRC_DIR"/../lib"
else
echo "using CFDEM_LAMMPS_LIB_DIR=$CFDEM_LAMMPS_LIB_DIR defined by user."
endif
+#test CFDEM_LAMMPS_LIB_DIR
+if ( -f "$CFDEM_LAMMPS_LIB_DIR/poems/Makefile.lammps" ) then
+ :
+else
+ echo ""
+ echo " !!! WARNING CFDEM_LAMMPS_LIB_DIR = $CFDEM_LAMMPS_LIB_DIR seems to be wrong !!!"
+ echo ""
+endif
+
+
#- LIGGGHTS lib name
setenv CFDEM_LIGGGHTS_LIB_NAME lmp_$CFDEM_LIGGGHTS_MAKEFILE_NAME
@@ -54,20 +65,23 @@ setenv CFDEM_LIB_NAME lagrangianCFDEM-$CFDEM_VERSION-$WM_PROJECT_VERSION
setenv CFDEM_LIB_COMP_NAME lagrangianCFDEMcomp-$CFDEM_VERSION-$WM_PROJECT_VERSION
#check if additional libraries should be compiled together with solvers
-if ( ! ($?CFDEM_ADD_LIBS_NAME) ) then
- setenv CFDEM_ADD_LIBS_NAME additionalLibs_$WM_PROJECT_VERSION
- echo "using CFDEM_ADD_LIBS_NAME=$CFDEM_ADD_LIBS_NAME ."
-else
- echo "using CFDEM_ADD_LIBS_NAME=$CFDEM_ADD_LIBS_NAME defined by user."
-endif
if ( ! ($?CFDEM_ADD_LIBS_DIR) ) then
- setenv CFDEM_ADD_LIBS_DIR $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc
+ setenv CFDEM_ADD_LIBS_DIR $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/addLibs_universal
+ echo "using default CFDEM_ADD_LIBS_DIR=$CFDEM_ADD_LIBS_DIR"
else
echo "using CFDEM_ADD_LIBS_DIR=$CFDEM_ADD_LIBS_DIR defined by user."
endif
+if ( ! ($?CFDEM_ADD_LIBS_NAME) ) then
+ setenv CFDEM_ADD_LIBS_NAME additionalLibs_$WM_PROJECT_VERSION
+ echo "using default CFDEM_ADD_LIBS_NAME=$CFDEM_ADD_LIBS_NAME"
+else
+ echo "using CFDEM_ADD_LIBS_NAME=$CFDEM_ADD_LIBS_NAME defined by user."
+endif
+
# check addLibs path and file name
-if ( ! -f $CFDEM_ADD_LIBS_DIR/$CFDEM_ADD_LIBS_NAME ) then
+setenv h $CFDEM_ADD_LIBS_DIR/$CFDEM_ADD_LIBS_NAME
+if ( ! ($?h) ) then
echo "!!! ERROR !!!: CFDEM_ADD_LIBS_DIR/CFDEM_ADD_LIBS_NAME=$CFDEM_ADD_LIBS_DIR/$CFDEM_ADD_LIBS_NAME does not exist."
endif
@@ -79,12 +93,12 @@ setenv CFDEM_Many2ManyLIB_PATH $CFDEM_SRC_DIR/lagrangian/cfdemParticle/subModels
setenv CFDEM_Many2ManyLIB_MAKEFILENAME $CFDEM_LIGGGHTS_MAKEFILE_NAME
#- LMP M2M lib path
-setenv CFDEM_M2MLIB_PATH $CFDEM_SRC_DIR/lagrangian/cfdemParticle/subModels/dataExchangeModel/twoWayM2M/library
+setenv CFDEM_M2MLIB_PATH $CFDEM_SRC_DIR/lagrangian/cfdemParticle/subModels/dataExchangeModel/M2M/library
setenv CFDEM_M2MLIB_MAKEFILENAME $CFDEM_LIGGGHTS_MAKEFILE_NAME
-#- LMP POEMS lib path
-setenv CFDEM_POEMSLIB_PATH $CFDEM_LIGGGHTS_SRC_DIR/../lib/poems
-setenv CFDEM_POEMSLIB_MAKEFILENAME g++
+#- LMP POEMS lib default path
+setenv CFDEM_POEMSLIB_PATH $CFDEM_LAMMPS_LIB_DIR/poems
+#-----------------------------------------------------
#- path to test harness
setenv CFDEM_TEST_HARNESS_PATH $CFDEM_PROJECT_USER_DIR/log/logFilesCFDEM-$CFDEM_VERSION-$WM_PROJECT_VERSION
@@ -95,12 +109,14 @@ setenv CFDEM_LIB_DIR $FOAM_USER_LIBBIN
#- path to apps
setenv CFDEM_APP_DIR $FOAM_USER_APPBIN
+#- path to OF version flag file
+setenv CFDEM_OFVERSION_DIR $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/OFversion
#------------------------------------------------------------------------------
#- settings for lpp postproc tool
#------------------------------------------------------------------------------
#- nr of procs for lpp tool
-setenv CFDEM_LPP_NPROCS 4
+setenv CFDEM_LPP_NPROCS 1
#- nr of procs for lpp tool
setenv CFDEM_LPP_CHUNKSIZE 1
@@ -233,6 +249,22 @@ if ( $WM_PROJECT_VERSION =~ "4.*" ) then
sleep 1.5
else if ( $WM_PROJECT_VERSION =~ "3.0.*" ) then
setenv CFDEM_WM_PROJECT_VERSION 30
+else if ( $WM_PROJECT_VERSION =~ "v1606+" ) then
+ setenv CFDEM_WM_PROJECT_VERSION v1606
+ echo "************************************"
+ echo "WARNING from your CFDEM code!"
+ echo "WARNING: Coupling with your OpenFOAM(R) version is currently under development!"
+ echo "In doubt switch to another version."
+ echo "************************************"
+ sleep 1.5
+else if ( $WM_PROJECT_VERSION =~ "v1612+" ) then
+ setenv CFDEM_WM_PROJECT_VERSION v1606
+ echo "************************************"
+ echo "WARNING from your CFDEM code!"
+ echo "WARNING: Coupling with your OpenFOAM(R) version is currently under development!"
+ echo "In doubt switch to another version."
+ echo "************************************"
+ sleep 1.5
else if ( $WM_PROJECT_VERSION =~ "2.4.*" ) then
setenv CFDEM_WM_PROJECT_VERSION 24
else if ( $WM_PROJECT_VERSION == "3.2" ) then
@@ -243,8 +275,11 @@ else
clear
echo "************************************"
echo "ERROR from your CFDEM code!"
- echo "ERROR: your openFOAM(R)s version is not supported!"
+ echo "ERROR: your OpenFOAM(R) version is not supported!"
echo "Please use a version that is supported, i.e., see the bashrc file in the source directory!"
echo "************************************"
sleep 1.5
endif
+
+echo "************************************"
+
diff --git a/src/lagrangian/cfdemParticle/etc/functions.sh b/src/lagrangian/cfdemParticle/etc/functions.sh
index c219c87..0744c69 100755
--- a/src/lagrangian/cfdemParticle/etc/functions.sh
+++ b/src/lagrangian/cfdemParticle/etc/functions.sh
@@ -430,14 +430,63 @@ cleanCFDEMcase()
#--------------------------------------------------------------------------------#
#- define variables
casepath="$1"
+ keepDEMrestart="$2"
#--------------------------------------------------------------------------------#
- echo "deleting data at: $casePath :\n"
+ echo "deleting data at: $casePath ? otherwise press Ctrl-C:\n"
+ read
source $WM_PROJECT_DIR/bin/tools/CleanFunctions
+ #CFD
cd $casePath/CFD
cleanCase
- rm -r $casePath/DEM/post/*
- echo "dummyfile" >> $casePath/DEM/post/dummy
+ #CFDEM
+ rm -r $casePath/CFD/clockData
+ rm -r $casePath/CFD/particleProbes
+ rm -r $casePath/CFD/averageProps/
+ rm -r $casePath/CFD/octave/octave-core
+ rm -r $casePath/CFD/octave/octave-workspace
+ rm -r $casePath/remotePlace
+ rm -r $casePath/CFD/oldProcDirs
+ rm -r $casePath/CFD/tmp.balance
+ rm $casePath/CFD/callgrind.out.*
+ rm -r $casePath/CFD/hpctoolkit-*
+ rm $casePath/log_*
+ #DEM
+ rm $casePath/DEM/post/*
+ touch $casePath/DEM/post/.gitignore
+ if [[ $keepDEMrestart == true ]]; then
+ echo "keeping DEM restart files"
+ else
+ rm $casePath/DEM/post/restart/*
+ fi
+ touch $casePath/DEM/post/restart/.gitignore
+ rm $casePath/DEM/tmp.lammps.variable
+ rm $casePath/DEM/log*
+ #ParScale
+ rm $casePath/CFD/*.dat
+ rm $casePath/CFD/*.pascal
+ rm $casePath/CFD/*.profile
+ rm -r $casePath/CFD/pascal/0.*
+ rm -r $casePath/CFD/pascal/1
+ rm -r $casePath/CFD/pascal/1.*
+ rm -r $casePath/CFD/pascal/2
+ rm -r $casePath/CFD/pascal/2.*
+ rm -r $casePath/CFD/pascal/3
+ rm -r $casePath/CFD/pascal/3.*
+ rm -r $casePath/CFD/pascal/4
+ rm -r $casePath/CFD/pascal/4.*
+ rm -r $casePath/CFD/pascal/5
+ rm -r $casePath/CFD/pascal/5.*
+ rm -r $casePath/CFD/pascal/6
+ rm -r $casePath/CFD/pascal/6.*
+ rm -r $casePath/CFD/pascal/7
+ rm -r $casePath/CFD/pascal/7.*
+ rm -r $casePath/CFD/pascal/8
+ rm -r $casePath/CFD/pascal/8.*
+ rm -r $casePath/CFD/pascal/9
+ rm -r $casePath/CFD/pascal/9.*
+ rm -r $casePath/CFD/pascal/10
+ rm -r $casePath/CFD/pascal/10.*
cd $casePath
echo "done"
}
@@ -687,9 +736,27 @@ parCFDDEMrun()
#debugMode="valgrind --leak-check=full -v --trace-children=yes --track-origins=yes"
debugMode="valgrind --tool=memcheck --leak-check=yes --leak-check-heuristics=stdstring,length64,newarray,multipleinheritance --show-reachable=no --num-callers=20 --track-fds=yes --xml=yes --xml-file=valgrind.xml"
elif [[ $debugMode == "profile" ]]; then
- # make sure you did hpcstruct before
- debugMode="hpcrun"
- rm -r $casePath/CFD/hpctoolkit-$solverName-measurements
+ if [[ $WM_COMPILE_OPTION == "Debug" ]]; then
+ # make sure you did hpcstruct before
+ debugMode="hpcrun"
+ rm -r $casePath/CFD/hpctoolkit-$solverName-measurements
+ else
+ echo ""
+ echo "WARNING - you do not use proper Debug flags! (for hpcrun you need Debug)"
+ echo "using debugMode off now."
+ debugMode=""
+ read
+ fi
+ elif [[ $debugMode == "callgrind" ]]; then
+ if [[ $WM_COMPILE_OPTION == "Debug" ]]; then
+ debugMode="valgrind --tool=callgrind"
+ else
+ echo ""
+ echo "WARNING - you do not use proper Debug flags! Only when using debug, cachegrind will be able to look through you code."
+ debugMode="valgrind --tool=callgrind"
+ read
+ fi
+
else
debugMode=""
fi
@@ -755,8 +822,13 @@ parCFDDEMrun()
fi
if [[ $debugMode == "hpcrun" ]]; then
- rm hpctoolkit-$solverName-database*
- hpcprof -S $CFDEM_APP_DIR/$solverName.hpcstruct -I ./'*' hpctoolkit-$solverName-measurements
+ if [ -f $CFDEM_APP_DIR/$solverName.hpcstruct ]; then
+ rm -r hpctoolkit-$solverName-database*
+ hpcprof -S $CFDEM_APP_DIR/$solverName.hpcstruct -I ./'*' hpctoolkit-$solverName-measurements
+ else
+ echo "you need to run hpcstruct first for your app!"
+ read
+ fi
fi
#- keep terminal open (if started in new terminal)
diff --git a/src/lagrangian/cfdemParticle/etc/library-list.txt b/src/lagrangian/cfdemParticle/etc/library-list.txt
deleted file mode 100644
index 59f9fe9..0000000
--- a/src/lagrangian/cfdemParticle/etc/library-list.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-lagrangian/cfdemParticle/dir
-eulerian/scalarTransportModelsCFDEM/dir
diff --git a/src/lagrangian/cfdemParticle/etc/library-liggghts-list.txt b/src/lagrangian/cfdemParticle/etc/package-undo-liggghts-list.txt
similarity index 57%
rename from src/lagrangian/cfdemParticle/etc/library-liggghts-list.txt
rename to src/lagrangian/cfdemParticle/etc/package-undo-liggghts-list.txt
index bb409f7..d25f459 100644
--- a/src/lagrangian/cfdemParticle/etc/library-liggghts-list.txt
+++ b/src/lagrangian/cfdemParticle/etc/package-undo-liggghts-list.txt
@@ -1,3 +1,7 @@
-#syntax: makefileName/dir
+#syntax: packageName/dir
#note: dir is not a path, just a keyword here
###############################################
+POEMS/dir
+DIPOLE/dir
+ASPHERE/dir
+PASCAL/dir
diff --git a/src/lagrangian/cfdemParticle/etc/solver-list.txt b/src/lagrangian/cfdemParticle/etc/solver-list.txt
deleted file mode 100644
index 41ca4d9..0000000
--- a/src/lagrangian/cfdemParticle/etc/solver-list.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-cfdemSolverPiso/dir
-cfdemSolverIB/dir
-cfdemSolverPisoScalar/dir
-cfdemSolverPisoSTM/dir
diff --git a/src/lagrangian/cfdemParticle/etc/tutorial-list.txt b/src/lagrangian/cfdemParticle/etc/tutorial-list.txt
deleted file mode 100644
index c287909..0000000
--- a/src/lagrangian/cfdemParticle/etc/tutorial-list.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-
-#===================================================================#
-# This file specifies the example cases being executed by
-# .../etc/testTutorial.sh , which can be run with the alias
-# cfdemTestTUT
-# Christoph Goniva - June. 2011, DCS Computing GmbH
-#===================================================================#
-
-cfdemSolverPiso/settlingTestMPI/dir
-
-cfdemSolverPiso/ErgunTestMPI/dir
-
-cfdemSolverPiso/ErgunTestMPI_cgs/dir
-
-cfdemSolverPiso/ErgunTestMPI_restart/dir
-cfdemSolverPiso/voidfractionTest/dir
-
-cfdemSolverIB/twoSpheresGlowinskiMPI/dir
-
-cfdemSolverPisoScalar/packedBedTemp/dir
-
-cfdemSolverPisoSTM/packedBedTemp/dir
diff --git a/src/lagrangian/cfdemParticle/etc/utilities-list.txt b/src/lagrangian/cfdemParticle/etc/utilities-list.txt
deleted file mode 100644
index a8ac78b..0000000
--- a/src/lagrangian/cfdemParticle/etc/utilities-list.txt
+++ /dev/null
@@ -1 +0,0 @@
-cfdemPostproc/dir
diff --git a/src/lagrangian/cfdemParticle/subModels/averagingModel/dilute/dilute.C b/src/lagrangian/cfdemParticle/subModels/averagingModel/dilute/dilute.C
index 82f5add..88ef1e5 100644
--- a/src/lagrangian/cfdemParticle/subModels/averagingModel/dilute/dilute.C
+++ b/src/lagrangian/cfdemParticle/subModels/averagingModel/dilute/dilute.C
@@ -129,35 +129,39 @@ void dilute::setVectorAverage
scalar weightP;
if(weightWithWeight2) //use weight2, e.g., mass-averaged - has no effect, just weight is DIFFERENT!
- for(int index=0; index< particleCloud_.numberOfParticles(); index++)
{
- for(int subCell=0;subCell= 0)
+ for(int subCell=0;subCell 0) field[cellI] = valueVec; //field[cellI] = valueVec/weightP;
+ cellI = particleCloud_.cellIDs()[index][subCell];
+ if (cellI >= 0)
+ {
+ for(int i=0;i<3;i++) valueVec[i] = value[index][i];
+ weightP = weight[index][subCell]*weight2[index][subCell];
+ weightField[cellI] += weightP;
+ if(weightP > 0) field[cellI] = valueVec; //field[cellI] = valueVec/weightP;
+ }
}
}
}
else //standard, i.e., volume-averaged - has no effect, just weight is DIFFERENT!
- for(int index=0; index< particleCloud_.numberOfParticles(); index++)
{
- for(int subCell=0;subCell= 0)
+ for(int subCell=0;subCell 0) field[cellI] = valueVec; //field[cellI] = valueVec/weightP;
- else Warning << "!!! W A R N I N G --- weightP <= 0" << endl;
+ //Info << "subCell=" << subCell << endl;
+ cellI = particleCloud_.cellIDs()[index][subCell];
+
+ if (cellI >= 0)
+ {
+ for(int i=0;i<3;i++) valueVec[i] = value[index][i];
+ weightP = weight[index][subCell];
+ weightField[cellI] += weightP;
+ if(weightP > 0) field[cellI] = valueVec; //field[cellI] = valueVec/weightP;
+ //else Warning << "!!! W A R N I N G --- weightP <= 0" << endl;
+ }
}
}
}
diff --git a/src/lagrangian/cfdemParticle/subModels/clockModel/clockModel/clockModel.C b/src/lagrangian/cfdemParticle/subModels/clockModel/clockModel/clockModel.C
index 3c37a64..a49aa3c 100644
--- a/src/lagrangian/cfdemParticle/subModels/clockModel/clockModel/clockModel.C
+++ b/src/lagrangian/cfdemParticle/subModels/clockModel/clockModel/clockModel.C
@@ -416,7 +416,7 @@ Foam::clockModel::clockModel
dict_(dict),
particleCloud_(sm),
path_("clockData"),
- startTime_(sm.mesh().time().startTime().value()+sm.mesh().time().deltaT().value()+SMALL), // delay start of measurement by deltaT
+ startTime_(sm.mesh().time().startTime().value()+2.*sm.dataExchangeM().couplingTime()), // delay start of measurement by 2*tCouple
//startTime_(0), //no delay
n_(30),
deltaT_(n_),
diff --git a/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/dataExchangeModel/dataExchangeModel.C b/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/dataExchangeModel/dataExchangeModel.C
index bf8f3c2..3befec0 100755
--- a/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/dataExchangeModel/dataExchangeModel.C
+++ b/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/dataExchangeModel/dataExchangeModel.C
@@ -45,12 +45,17 @@ defineRunTimeSelectionTable(dataExchangeModel, dictionary);
// * * * * * * * * * * * * * * protected Member Functions * * * * * * * * * * * * * //
+// * * * * * * * * * * * * * * public Member Functions * * * * * * * * * * * * * //
+
void Foam::dataExchangeModel::setNumberOfParticles(int numberOfParticles) const
{
particleCloud_.setNumberOfParticles(numberOfParticles);
}
-// * * * * * * * * * * * * * * public Member Functions * * * * * * * * * * * * * //
+void Foam::dataExchangeModel::setNumberOfClumps(int numberOfClumps) const
+{
+ particleCloud_.setNumberOfClumps(numberOfClumps);
+}
//====
// double **
diff --git a/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/dataExchangeModel/dataExchangeModel.H b/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/dataExchangeModel/dataExchangeModel.H
index a11956e..97c9278 100755
--- a/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/dataExchangeModel/dataExchangeModel.H
+++ b/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/dataExchangeModel/dataExchangeModel.H
@@ -41,6 +41,13 @@ SourceFiles
#include "fvCFD.H"
#include "cfdemCloud.H"
+
+#include "mpi.h"
+#include
+#include
+#include
+#include
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
@@ -117,6 +124,8 @@ public:
// Member Function
void setNumberOfParticles(int) const;
+ void setNumberOfClumps(int) const;
+
inline const int& maxNumberOfParticles() const {return maxNumberOfParticles_;};
template
@@ -255,9 +264,32 @@ public:
particleCloud_.cellIDs_[i][0]=ID[i];
};
+ inline void setPositionsCM(label n,double* pos) const
+ {
+ particleCloud_.setPositionsCM(n,pos);
+ };
+ inline void setCellIDsCM(label n,int* ID) const
+ {
+ particleCloud_.setCellIDsCM(n,ID);
+ };
+
virtual word myType() const=0;
- virtual void setCG() const { Warning << "setCG() not executed correctly!" << endl; };
+ virtual void setCG() const { FatalError<<"\nsetCG() not executed correctly!\n"<< abort(FatalError); };
+
+ void setCGs(LAMMPS_NS::LAMMPS *lmp) const
+ {
+ particleCloud_.setCG(lmp->force->cg(int(GREAT)));
+
+ Info << "LIGGGHTS hosts " << lmp->atom->ntypes << " atom types." << endl;
+
+ #if defined(typeSecificCG)
+ Warning << "\nYou are using untested code (type specific coarse graining)!!!\n"
+ << "\nThis will most probably give wrong results for most models!!!\n"<< endl;
+ for(int iTyp=1; iTyp<=lmp->atom->ntypes; iTyp++)
+ particleCloud_.setCGTypeSpecific(iTyp,lmp->force->cg(iTyp));
+ #endif
+ };
};
diff --git a/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C b/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C
index 15c2d1a..a1002ac 100644
--- a/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C
+++ b/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C
@@ -351,6 +351,7 @@ bool Foam::twoWayMPI::couple(int i) const
// give nr of particles to cloud
double newNpart = liggghts_get_maxtag(lmp);
setNumberOfParticles(newNpart);
+ setNumberOfClumps(-2);
// re-allocate arrays of cloud
particleCloud_.clockM().start(4,"LIGGGHTS_reallocArrays");
diff --git a/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H b/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H
index 73e9707..74000aa 100644
--- a/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H
+++ b/src/lagrangian/cfdemParticle/subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H
@@ -157,7 +157,7 @@ public:
word myType() const{return typeName; };
- void setCG() const { particleCloud_.setCG(lmp->force->cg()); };
+ void setCG() const { setCGs(lmp); };
};
diff --git a/src/lagrangian/cfdemParticle/subModels/forceModel/DiFeliceDrag/DiFeliceDrag.C b/src/lagrangian/cfdemParticle/subModels/forceModel/DiFeliceDrag/DiFeliceDrag.C
index 0969bf3..b99564e 100644
--- a/src/lagrangian/cfdemParticle/subModels/forceModel/DiFeliceDrag/DiFeliceDrag.C
+++ b/src/lagrangian/cfdemParticle/subModels/forceModel/DiFeliceDrag/DiFeliceDrag.C
@@ -167,7 +167,7 @@ void DiFeliceDrag::setForce() const
Us = particleCloud_.velocity(index);
ds = 2*particleCloud_.radius(index);
dParcel = ds;
- forceSubM(0).scaleDia(ds); //caution: this fct will scale ds!
+ forceSubM(0).scaleDia(ds,index); //caution: this fct will scale ds!
//Update any scalar or vector quantity
for (int iFSub=0;iFSub(nrDefaultSwitches_)),
switches_(List(nrDefaultSwitches_)),
@@ -134,6 +134,7 @@ forceSubModel::forceSubModel
switchesNameList_[iCounter]="implForceDEMaccumulated";iCounter++; //7
switchesNameList_[iCounter]="scalarViscosity";iCounter++; //8
switchesNameList_[iCounter]="verboseToDisk";iCounter++; //9
+ switchesNameList_[iCounter]="useCorrectedVoidage";iCounter++; //10
// should be done by default
//for(int i=0;i& writeValues) const {};//implement writing to disk
+ virtual scalar calculateCorrectedVoidage(scalar voidfraction) const {return voidfraction;};
// Access
inline bool implForceDEM() const { return switches_[2]; }
@@ -208,6 +207,8 @@ public:
virtual word myType() const=0;
+ inline bool useCorrectedVoidage() const { return switches_[10]; }
+
inline forceModel& myForceM() const { return forceModel_; }
inline const List& switches() const { return switches_; }
diff --git a/src/lagrangian/cfdemParticle/subModels/forceModel/particleCellVolume/particleCellVolume.C b/src/lagrangian/cfdemParticle/subModels/forceModel/particleCellVolume/particleCellVolume.C
index 17735be..b7e3c4d 100644
--- a/src/lagrangian/cfdemParticle/subModels/forceModel/particleCellVolume/particleCellVolume.C
+++ b/src/lagrangian/cfdemParticle/subModels/forceModel/particleCellVolume/particleCellVolume.C
@@ -64,7 +64,7 @@ particleCellVolume::particleCellVolume
forceModel(dict,sm),
propsDict_(dict.subDict(typeName + "Props")),
mesh_(particleCloud_.mesh()),
- startTime_(0.),
+ startTime_(propsDict_.lookupOrDefault("startTime",0.)),
scalarFieldName_("voidfraction"),
scalarField_
(
@@ -96,16 +96,8 @@ particleCellVolume::particleCellVolume
lowerThreshold_(readScalar(propsDict_.lookup("lowerThreshold"))),
path_("postProcessing/particleCellVolume"),
sPtr_(NULL),
- writeToFile_(false)
+ writeToFile_(propsDict_.lookupOrDefault("writeToFile",false))
{
- if (propsDict_.found("startTime")){
- startTime_=readScalar(propsDict_.lookup("startTime"));
- }
-
- if (propsDict_.found("writeToFile")){
- writeToFile_=Switch(propsDict_.lookup("writeToFile"));
- }
-
// init force sub model
setForceSubModels(propsDict_);
diff --git a/src/lagrangian/cfdemParticle/subModels/forceModel/particleVolume/particleVolume.C b/src/lagrangian/cfdemParticle/subModels/forceModel/particleVolume/particleVolume.C
index b40443d..3a83e87 100644
--- a/src/lagrangian/cfdemParticle/subModels/forceModel/particleVolume/particleVolume.C
+++ b/src/lagrangian/cfdemParticle/subModels/forceModel/particleVolume/particleVolume.C
@@ -62,20 +62,12 @@ particleVolume::particleVolume
:
forceModel(dict,sm),
propsDict_(dict.subDict(typeName + "Props")),
- startTime_(0.),
+ startTime_(propsDict_.lookupOrDefault("startTime",0.)),
scaleDia_(1.),
path_("postProcessing/particleVolume"),
sPtr_(NULL),
- writeToFile_(true)
+ writeToFile_(propsDict_.lookupOrDefault("writeToFile",false))
{
- if (propsDict_.found("startTime")){
- startTime_=readScalar(propsDict_.lookup("startTime"));
- }
-
- if (propsDict_.found("writeToFile")){
- writeToFile_=Switch(propsDict_.lookup("writeToFile"));
- }
-
// init force sub model
setForceSubModels(propsDict_);
@@ -127,12 +119,15 @@ void particleVolume::setForce() const
for(int index = 0;index < particleCloud_.numberOfParticles(); ++index)
{
- ds = 2*particleCloud_.radius(index)/scaleDia_;
- VsTot += ds*ds*ds*fpth;
+ if(particleCloud_.cellIDs()[index][0] >= 0)
+ {
+ ds = 2*particleCloud_.radius(index)/scaleDia_;
+ VsTot += ds*ds*ds*fpth;
+ }
}
reduce(VsTot, sumOp());
- if(forceSubM(0).verbose()) Info << "Total particle volume = " << VsTot << endl;
+ if(forceSubM(0).verbose()) Info << "Total particle volume (located in domain) = " << VsTot << endl;
// write to file
if(writeToFile_)
diff --git a/src/lagrangian/cfdemParticle/subModels/forceModel/scalarGeneralExchange/scalarGeneralExchange.C b/src/lagrangian/cfdemParticle/subModels/forceModel/scalarGeneralExchange/scalarGeneralExchange.C
index 6a1bd43..67898e4 100644
--- a/src/lagrangian/cfdemParticle/subModels/forceModel/scalarGeneralExchange/scalarGeneralExchange.C
+++ b/src/lagrangian/cfdemParticle/subModels/forceModel/scalarGeneralExchange/scalarGeneralExchange.C
@@ -256,7 +256,7 @@ void scalarGeneralExchange::manipulateScalarField(volScalarField& explicitEulerS
int speciesID) const
{
- // reset Scalar field
+ // reset Scalar field (== means hard reset)
explicitEulerSource == dimensionedScalar("zero", explicitEulerSource.dimensions(), 0.);
implicitEulerSource == dimensionedScalar("zero", implicitEulerSource.dimensions(), 0.);
@@ -329,14 +329,14 @@ void scalarGeneralExchange::manipulateScalarField(volScalarField& explicitEulerS
vector Us(0,0,0);
vector Ur(0,0,0);
scalar dscaled(0);
+ scalar dparcel(0);
+ scalar numberParticlesInParcel(1);
scalar nuf(0);
scalar magUr(0);
scalar As(0);
scalar Rep(0);
scalar Pr(0);
- scalar sDth(scaleDia_*scaleDia_*scaleDia_);
-
#include "resetVoidfractionInterpolator.H"
#include "resetUInterpolator.H"
#include "resetFluidScalarFieldInterpolator.H"
@@ -358,13 +358,22 @@ void scalarGeneralExchange::manipulateScalarField(volScalarField& explicitEulerS
Ufluid = U_[cellI];
fluidValue = fluidScalarField_[cellI];
}
+ if(forceSubM(0).useCorrectedVoidage())
+ {
+ for (int iFSub=0;iFSub*Nusselt)(Rep,Pr,voidfraction)/(dscaled);
+ scalar alpha = transportParameter*(this->*Nusselt)(Rep,Pr,voidfraction)/dscaled;
// calc convective heat flux [W]
scalar areaTimesTransferCoefficient = alpha * As;
@@ -650,6 +659,10 @@ void scalarGeneralExchange::setupModel() const
Info << "Found a valid partHeatTransCoeffName and partHeatFluidfName (& corresponding species names)." << endl;
Info << "scalarGeneralExchange (or derived model) will now proceed with IMPLICIT flux coupling " << endl;
}
+ else if(validPartFlux_ ) {
+ Info << "Found a valid partHeatFluxName: " << partHeatFluxName_ << endl;
+ Info << "scalarGeneralExchange (or derived model) will now proceed with EXPLICIT flux coupling for heat. " << endl;
+ }
else
FatalError << "scalarGeneralExchange::setupModel: you did not specify a valid flux or transCoeff name set. Please either specify valid flux names, or valid transCoeff and fluid names." << abort(FatalError);
@@ -695,6 +708,7 @@ void scalarGeneralExchange::setupModel() const
forceSubM(0).setSwitchesList(4,true); // activate search for interpolate switch
forceSubM(0).setSwitchesList(8,true); // activate scalarViscosity switch
forceSubM(0).setSwitchesList(9,true); // activate verboseToDisk switch
+ forceSubM(0).setSwitchesList(10,true); // activate correctedVoidage switch
// read those switches defined above, if provided in dict
for (int iFSub=0;iFSub("runFirst",false));
+ if(runFirst_) lastCouplingStep_ = firstCouplingStep_;
+
checkTimeSettings(dict_);
}
@@ -111,12 +115,15 @@ string runLiggghts::createCommand( word command, int interval, word appendix, wo
bool runLiggghts::runCommand(int couplingStep)
{
- //change command to "run xxx pre no"
- if (preNo_ && (couplingStep > firstCouplingStep_))
- strCommand_=createCommand(command_, particleCloud_.dataExchangeM().couplingInterval(),"pre","no","post","no");
- else
- strCommand_=createCommand(command_, particleCloud_.dataExchangeM().couplingInterval());
-
+ if(couplingStep <= lastCouplingStep_)
+ {
+ //change command to "run xxx pre no"
+ if (preNo_ && (couplingStep > firstCouplingStep_))
+ strCommand_=createCommand(command_, particleCloud_.dataExchangeM().couplingInterval(),"pre","no","post","no");
+ else
+ strCommand_=createCommand(command_, particleCloud_.dataExchangeM().couplingInterval());
+ }else strCommand_=createCommand(command_, 0);
+
return runThisCommand(couplingStep);
}
diff --git a/src/lagrangian/cfdemParticle/subModels/locateModel/engineSearch/engineSearch.C b/src/lagrangian/cfdemParticle/subModels/locateModel/engineSearch/engineSearch.C
index 260d9ef..eafbd70 100644
--- a/src/lagrangian/cfdemParticle/subModels/locateModel/engineSearch/engineSearch.C
+++ b/src/lagrangian/cfdemParticle/subModels/locateModel/engineSearch/engineSearch.C
@@ -113,7 +113,36 @@ label engineSearch::findSingleCell
return searchEngine_.findCell(position,oldCellID,treeSearch_);
}
+label engineSearch::intersection
+(
+ const point& pStart,
+ const point& pEnd
+) const
+{
+ // find intersection with boundary
+ label face = searchEngine_.findNearestBoundaryFace(pEnd);
+ // try alternative
+ if (face==-1)
+ {
+ face = searchEngine_.intersection(pStart,pEnd).index();
+
+ if (face==-1 && mag(pStart-point(0,0,0))("verbose", false)),
+ numberOfSatellitePoints_((zSplit_-1)*xySplit_ + 2)
+{
+ bbPtr_.reset(new boundBox(particleCloud_.mesh().points(), false));
+ if(verbose_)
+ {
+ Pout<<"MinBounds (x,y,z): "<(xDir)
+ * (globalBb.max()[0]-globalBb.min()[0]);
+ for(int yDir=-1; yDir<=1; yDir++)
+ {
+ positionCenterPeriodic[1] = position[1]
+ + static_cast(yDir)
+ * (globalBb.max()[1]-globalBb.min()[1]);
+ for(int zDir=-1; zDir<=1; zDir++)
+ {
+ positionCenterPeriodic[2] = position[2]
+ + static_cast(zDir)
+ * (globalBb.max()[2]-globalBb.min()[2]);
+ isInside = isInsideRectangularDomain(positionCenterPeriodic, coef_*radius);
+ if(isInside) break;
+ }
+ if(isInside) break;
+ }
+ if(isInside) break;
+ }
+ }
+
+
+ if(isInside)
+ {
+ // find cell
+ label oldID = cellIDs[index][0];
+ cellIDs[index][0] = findSingleCell(position,oldID);
+
+ if(cellIDs[index][0] < 0)
+ {
+ label altStartPos = -1;
+
+ for(unsigned int countPoints = 0; countPoints < satellitePoints_.size(); ++countPoints)
+ {
+ vector pos = getSatellitePoint(index, countPoints);
+ isInside = isInsideRectangularDomain(pos, SMALL);
+
+ if(isInside)
+ altStartPos = findSingleCell(pos,oldID);
- altStartPos=findSingleCell(pos,oldID); //particleCloud_.mesh().findCell(pos);//
//check for periodic domains
if(checkPeriodicCells)
{
for(int iDir=0;iDir<3;iDir++)
{
if( pos[iDir] > globalBb.max()[iDir] )
- {
pos[iDir]-=globalBb.max()[iDir]-globalBb.min()[iDir];
- }
else if( pos[iDir] < globalBb.min()[iDir] )
- {
pos[iDir]+=globalBb.max()[iDir]-globalBb.min()[iDir];
- }
}
- altStartPos=findSingleCell(pos,oldID); //particleCloud_.mesh().findCell(pos);//
+ isInside = isInsideRectangularDomain(pos, SMALL);
+
+ if(isInside)
+ altStartPos=findSingleCell(pos,oldID); //particleCloud_.mesh().findCell(pos);//
}
if(altStartPos >= 0) // found position, we're done
@@ -143,35 +195,51 @@ label engineSearchIB::findCell
cellIDs[index][0] = altStartPos;
break;
}
- }
-
+ }
+ }
}
}
}
return 1;
}
-vector engineSearchIB::generateSatellitePoint(int index, int countPoints) const
+bool engineSearchIB::isInsideRectangularDomain(vector centre, scalar skin) const
{
- vector position = particleCloud_.position(index);
- scalar theta, phi;
- const scalar thetaSize = 180./zSplit_, phiSize = 360./xySplit_;
- const scalar deg2rad = M_PI/180.;
- vector pos = position;
- double radius=particleCloud_.radius(index);
- if(countPoints == 0) {
- pos[2] += radius;
- } else if(countPoints == 1) {
- pos[2] -= radius;
- } else {
- scalar thetaLevel = (countPoints - 2) / xySplit_;
- theta = deg2rad * thetaSize * (thetaLevel+1);
- phi = deg2rad * phiSize * (countPoints - 2 - thetaLevel*xySplit_);
- pos[0] += radius * sin(theta) * cos(phi);
- pos[1] += radius * sin(theta) * sin(phi);
- pos[2] += radius * cos(theta);
- }
- return pos;
+ vector offset(skin, skin, skin);
+ boundBox bb(bbPtr_().min()-offset, bbPtr_().max() + offset);
+ return bb.contains(centre);
+}
+
+vector engineSearchIB::generateSatellitePoint(int countPoints) const
+{
+ scalar theta, phi;
+ const scalar thetaSize = 180./zSplit_, phiSize = 360./xySplit_;
+ const scalar deg2rad = M_PI/180.;
+ vector pos(0.0, 0.0, 0.0);
+ // 1 point at bottom, 1 point at top
+ if(countPoints == 0)
+ {
+ pos[2] = 1.0;
+ } else if(countPoints == 1)
+ {
+ pos[2] = -1.0;
+ } else {
+ scalar thetaLevel = (countPoints - 2) / xySplit_;
+ theta = deg2rad * thetaSize * (thetaLevel+1);
+ phi = deg2rad * phiSize * (countPoints - 2 - thetaLevel*xySplit_);
+ pos[0] = sin(theta) * cos(phi);
+ pos[1] = sin(theta) * sin(phi);
+ pos[2] = cos(theta);
+ }
+ return pos;
+}
+
+vector engineSearchIB::getSatellitePoint(int index, int countPoints) const
+{
+ double radius=particleCloud_.radius(index);
+ vector position = particleCloud_.position(index);
+ vector pos = radius*satellitePoints_[countPoints] + position;
+ return pos;
}
diff --git a/src/lagrangian/cfdemParticle/subModels/locateModel/engineSearchIB/engineSearchIB.H b/src/lagrangian/cfdemParticle/subModels/locateModel/engineSearchIB/engineSearchIB.H
index 17a5c39..230ee41 100644
--- a/src/lagrangian/cfdemParticle/subModels/locateModel/engineSearchIB/engineSearchIB.H
+++ b/src/lagrangian/cfdemParticle/subModels/locateModel/engineSearchIB/engineSearchIB.H
@@ -56,9 +56,19 @@ class engineSearchIB
{
protected:
- const label zSplit_;
+ const label zSplit_;
- const label xySplit_;
+ const label xySplit_;
+
+ scalar coef_;
+
+ mutable autoPtr bbPtr_;
+
+ bool verbose_;
+
+ const label numberOfSatellitePoints_;
+
+ std::vector satellitePoints_;
public:
@@ -68,33 +78,41 @@ public:
// Constructors
- //- Construct from components
- engineSearchIB
- (
- const dictionary& dict,
- cfdemCloud& sm
- );
+ //- Construct from components
+ engineSearchIB
+ (
+ const dictionary& dict,
+ cfdemCloud& sm
+ );
// Destructor
- ~engineSearchIB();
+ ~engineSearchIB();
// Member Functions
- label findCell
- (
- double** const& mask,
- double**& positions,
- double**& cellIDs,
- int size
- ) const;
-
- virtual vector generateSatellitePoint
- (
- int index,
- int countPoints
- ) const;
+ label findCell
+ (
+ double** const& mask,
+ double**& positions,
+ double**& cellIDs,
+ int size
+ ) const;
+ vector generateSatellitePoint
+ (
+ int countPoints
+ ) const;
+ virtual vector getSatellitePoint
+ (
+ int index,
+ int countPoints
+ ) const;
+ bool isInsideRectangularDomain
+ (
+ vector point,
+ scalar skin
+ ) const;
};
diff --git a/src/lagrangian/cfdemParticle/subModels/locateModel/locateModel/locateModel.H b/src/lagrangian/cfdemParticle/subModels/locateModel/locateModel/locateModel.H
index d792d8b..9fcdacb 100644
--- a/src/lagrangian/cfdemParticle/subModels/locateModel/locateModel/locateModel.H
+++ b/src/lagrangian/cfdemParticle/subModels/locateModel/locateModel/locateModel.H
@@ -123,7 +123,20 @@ public:
(
const point& pStart,
const point& pEnd
- ) const {return -1;};
+ ) const
+ {
+ FatalError << "The locate model you use does not define the function intersection(...)." << abort(FatalError);
+ return -1;
+ };
+
+ virtual label findNearestCell
+ (
+ const point& pStart
+ ) const
+ {
+ FatalError << "The locate model you use does not define the function findNearestCell(...)." << abort(FatalError);
+ return -1;
+ };
};
diff --git a/src/lagrangian/cfdemParticle/subModels/probeModel/particleProbe/particleProbe.C b/src/lagrangian/cfdemParticle/subModels/probeModel/particleProbe/particleProbe.C
index b1c455c..769bf9c 100644
--- a/src/lagrangian/cfdemParticle/subModels/probeModel/particleProbe/particleProbe.C
+++ b/src/lagrangian/cfdemParticle/subModels/probeModel/particleProbe/particleProbe.C
@@ -321,7 +321,7 @@ void particleProbe::writeProbe(int index, Field sValues, Field v
//index and time
*sPtr << setprecision(IOstream::defaultPrecision()+7) ;
- *sPtr << index << tab
+ *sPtr << index << " "
<< particleCloud_.mesh().time().value() << " " ;
*sPtr << "|| ";
diff --git a/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/dividedVoidFraction.C b/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/dividedVoidFraction.C
index bdcd6ce..c7c6902 100644
--- a/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/dividedVoidFraction.C
+++ b/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/dividedVoidFraction.C
@@ -97,7 +97,7 @@ dividedVoidFraction::dividedVoidFraction
FatalError << typeName << ": You are requesting procBoundaryCorrection, this requires the use of engineIB!\n"
<< abort(FatalError);
}
- }else{
+ } else {
if(particleCloud_.locateM().type()=="engineIB")
{
FatalError << typeName << ": You are using engineIB, this requires using procBoundaryCorrection=true!\n"
@@ -107,6 +107,49 @@ dividedVoidFraction::dividedVoidFraction
//procBoundaryCorrection_ = true;
}
}
+ //generate marker points
+ int m = 0;
+ offsets[m][0] = offsets[m][1] = offsets[m][2] = 0.0;
+ m ++;
+
+ // for 2 different radii
+ double r1 = cbrt(1.0/29.0);
+ double r2 = cbrt(15.0/29.0);
+ scalar r[] = { 0.75* (r2*r2*r2*r2 - r1*r1*r1*r1)/(r2*r2*r2 - r1*r1*r1),
+ 0.75* (1.0 - r2*r2*r2*r2)/(1.0 - r2*r2*r2) };
+
+ for(label ir = 0; ir <= 1; ir += 1)
+ {
+ // try 8 subpoint derived from spherical coordinates
+ for (scalar zeta = 0.25*M_PI; zeta < 2.0*M_PI; zeta += 0.5*M_PI)
+ {
+ for (scalar theta = 0.25*M_PI; theta < M_PI; theta += 0.5*M_PI)
+ {
+ offsets[m][0] = r[ir]*Foam::sin(theta)*Foam::cos(zeta);
+ offsets[m][1] = r[ir]*Foam::sin(theta)*Foam::sin(zeta);
+ offsets[m][2] = r[ir]*Foam::cos(theta);
+ m ++;
+ }
+ }
+ // try 2 more subpoints for each coordinate direction (6 total)
+ for (int j = -1; j <= 1; j += 2)
+ {
+ offsets[m][0] = r[ir]*static_cast(j);
+ offsets[m][1] = 0.;
+ offsets[m][2] = 0.;
+ m ++;
+
+ offsets[m][0] = 0.;
+ offsets[m][1] = r[ir]*static_cast(j);
+ offsets[m][2] = 0.;
+ m ++;
+
+ offsets[m][0] = 0.;
+ offsets[m][1] = 0.;
+ offsets[m][2] = r[ir]*static_cast(j);
+ m ++;
+ }
+ }
}
@@ -125,14 +168,13 @@ void dividedVoidFraction::setvoidFraction(double** const& mask,double**& voidfra
else
reAllocArrays();
- scalar pi = M_PI;
vector position(0.,0.,0.);
label cellID = -1;
scalar radius(-1.);
scalar volume(0.);
scalar cellVol(0.);
scalar scaleVol= weight();
- scalar scaleRadius = pow(porosity(),1./3.);
+ scalar scaleRadius = cbrt(porosity());
const boundBox& globalBb = particleCloud_.mesh().bounds();
for(int index=0; index< particleCloud_.numberOfParticles(); index++)
@@ -159,7 +201,7 @@ void dividedVoidFraction::setvoidFraction(double** const& mask,double**& voidfra
cellVol = 0.;
//--variables for sub-search
- int nPoints = 29;
+ int nPoints = numberOfMarkerPoints;
int nNotFound=0,nUnEqual=0,nTotal=0;
vector offset(0.,0.,0.);
int cellsSet = 0;
@@ -175,73 +217,39 @@ void dividedVoidFraction::setvoidFraction(double** const& mask,double**& voidfra
if (cellID >= 0) // particle centre is in domain
{
cellVol = particleCloud_.mesh().V()[cellID];
-
- // for 2 different radii
- for(scalar r = 0.623926*radius;r < radius;r+=0.293976*radius)
+ for(int i = 0; i < numberOfMarkerPoints; i++)
{
- // try 8 subpoint derived from spherical coordinates
- for (scalar zeta=pi/4.;zeta<(2.*pi);zeta+=(pi/2.))
+ if((i == 0 && procBoundaryCorrection_) || i > 0)
{
- for (scalar theta=(pi/4.);theta(j);
- offset[1]=0.;
- offset[2]=0.;
- #include "setWeightedSource.H" //NP set source terms at position+offset
+ }
- offset[0]=0.;
- offset[1]=r*static_cast(j);
- offset[2]=0.;
- #include "setWeightedSource.H" //NP set source terms at position+offset
-
- offset[0]=0.;
- offset[1]=0.;
- offset[2]=r*static_cast(j);
- #include "setWeightedSource.H" //NP set source terms at position+offset
- }
- }// end loop radiivoidfractions
-
- if(cellsSet>29 || cellsSet<0)
+ if(cellsSet > numberOfMarkerPoints || cellsSet<0)
{
Info << "ERROR cellsSet =" << cellsSet << endl;
}
- scalar centreWeight = 0;
- if(procBoundaryCorrection_)
- {
- //possible if we are sure all particles were found
- if(cellWithCenter >= 0)
- centreWeight = 1./nPoints;
- }else
+ if(!procBoundaryCorrection_)
{
// set source for particle center; source 1/nPts+weight of all subpoints that have not been found
- centreWeight = 1./nPoints*(nPoints-cellsSet);
+ scalar centreWeight = 1./nPoints*(nPoints-cellsSet);
+ // update voidfraction for each particle read
+ scalar newAlpha = voidfractionNext_[cellID]- volume*centreWeight/cellVol;
+ if(newAlpha > alphaMin_) voidfractionNext_[cellID] = newAlpha;
+ else
+ {
+ voidfractionNext_[cellID] = alphaMin_;
+ tooMuch_ += (alphaMin_-newAlpha) * cellVol;
+ }
+ // store cellweight for each particle --- this should be done for subpoints as well!!
+ particleWeights[index][0] += centreWeight;
+
+ // store particleVolume for each particle
+ particleVolumes[index][0] += volume*centreWeight;
+ particleV[index][0] += volume*centreWeight;
}
-
- // update voidfraction for each particle read
- scalar newAlpha = voidfractionNext_[cellID]- volume*centreWeight/cellVol;
- if(newAlpha > alphaMin_) voidfractionNext_[cellID] = newAlpha;
- else
- {
- voidfractionNext_[cellID] = alphaMin_;
- tooMuch_ += (alphaMin_-newAlpha) * cellVol;
- }
- // store cellweight for each particle --- this should be done for subpoints as well!!
- particleWeights[index][0] += centreWeight;
-
- // store particleVolume for each particle
- particleVolumes[index][0] += volume*centreWeight;
- particleV[index][0] += volume*centreWeight;
-
/*//OUTPUT
if (index==0 && verbose_)
{
diff --git a/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/dividedVoidFraction.H b/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/dividedVoidFraction.H
index 32ebb96..a060739 100644
--- a/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/dividedVoidFraction.H
+++ b/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/dividedVoidFraction.H
@@ -45,6 +45,7 @@ SourceFiles
namespace Foam
{
+const int numberOfMarkerPoints = 29;
/*---------------------------------------------------------------------------*\
Class noDrag Declaration
@@ -77,6 +78,8 @@ private:
return 4.188790205*radius*radius*radius*scaleVol; //4/3*pi=4.188790205
};
+ vector offsets[numberOfMarkerPoints];
+
public:
//- Runtime type information
diff --git a/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/setWeightedSource.H b/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/setWeightedSource.H
index 8eff22d..c680c2e 100755
--- a/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/setWeightedSource.H
+++ b/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/setWeightedSource.H
@@ -64,7 +64,7 @@
}
- particleWeights[index][storeInIndex] += 1/static_cast(nPoints);
+ particleWeights[index][storeInIndex] += 1.0/static_cast(nPoints);
particleVolumes[index][storeInIndex] += particleVolume;
particleV[index][0] += particleVolume;
//====================================================//
diff --git a/src/lagrangian/cfdemParticle/subModels/voidFractionModel/voidFractionModel/voidFractionModel.C b/src/lagrangian/cfdemParticle/subModels/voidFractionModel/voidFractionModel/voidFractionModel.C
index 08935f0..a758180 100644
--- a/src/lagrangian/cfdemParticle/subModels/voidFractionModel/voidFractionModel/voidFractionModel.C
+++ b/src/lagrangian/cfdemParticle/subModels/voidFractionModel/voidFractionModel/voidFractionModel.C
@@ -187,9 +187,17 @@ bool Foam::voidFractionModel::requiresSuperquadric() const
double Foam::voidFractionModel::pointInParticle(int index, vector positionCenter, vector point, double scale) const
{
- scalar radius = particleCloud_.radius(index);
- scalar pointDistSq = magSqr(point - positionCenter);
- return pointDistSq / (scale*scale*radius*radius) - 1.0;
+ scalar radius = particleCloud_.radius(index);
+ //Pout << "radius=" << radius << endl;
+ if(radius>SMALL)
+ {
+ scalar pointDistSq = magSqr(point - positionCenter);
+ return pointDistSq / (scale*scale*radius*radius) - 1.0;
+ }
+ else
+ {
+ return 0.;
+ }
}
double Foam::voidFractionModel::pointInParticle(int index, vector positionCenter, vector point) const {
diff --git a/src/lagrangian/cfdemParticleComp/Make/files b/src/lagrangian/cfdemParticleComp/Make/files
deleted file mode 100755
index 62d53d0..0000000
--- a/src/lagrangian/cfdemParticleComp/Make/files
+++ /dev/null
@@ -1,128 +0,0 @@
-path = ../cfdemParticle
-cfdemCloud = $(path)/cfdemCloud
-derived = $(path)/derived
-cfdTools = $(path)/cfdTools
-forceModels = $(path)/subModels/forceModel
-forceSubModels = $(path)/subModels/forceModel/forceSubModels
-IOModels = $(path)/subModels/IOModel
-voidFractionModels = $(path)/subModels/voidFractionModel
-locateModels = $(path)/subModels/locateModel
-meshMotionModels = $(path)/subModels/meshMotionModel
-momCoupleModels = $(path)/subModels/momCoupleModel
-regionModels = $(path)/subModels/regionModel
-dataExchangeModels = $(path)/subModels/dataExchangeModel
-averagingModels = $(path)/subModels/averagingModel
-clockModels = $(path)/subModels/clockModel
-liggghtsCommandModels = $(path)/subModels/liggghtsCommandModel
-smoothingModels = $(path)/subModels/smoothingModel
-probeModels = $(path)/subModels/probeModel
-
-$(cfdemCloud)/cfdemCloud.C
-$(derived)/cfdemCloudIB/cfdemCloudIB.C
-
-$(cfdTools)/IOtools/json/json.C
-$(cfdTools)/global.C
-$(cfdTools)/newGlobal.C
-
-$(forceModels)/forceModel/forceModel.C
-$(forceModels)/forceModel/newForceModel.C
-$(forceModels)/noDrag/noDrag.C
-$(forceModels)/checkCouplingInterval/checkCouplingInterval.C
-$(forceModels)/DiFeliceDrag/DiFeliceDrag.C
-$(forceModels)/fieldStore/fieldStore.C
-$(forceModels)/GidaspowDrag/GidaspowDrag.C
-$(forceModels)/SchillerNaumannDrag/SchillerNaumannDrag.C
-$(forceModels)/Archimedes/Archimedes.C
-$(forceModels)/ArchimedesIB/ArchimedesIB.C
-$(forceModels)/interface/interface.C
-$(forceModels)/ShirgaonkarIB/ShirgaonkarIB.C
-$(forceModels)/KochHillDrag/KochHillDrag.C
-$(forceModels)/LaEuScalarTemp/LaEuScalarTemp.C
-$(forceModels)/virtualMassForce/virtualMassForce.C
-$(forceModels)/gradPForce/gradPForce.C
-$(forceModels)/viscForce/viscForce.C
-$(forceModels)/MeiLift/MeiLift.C
-$(forceModels)/particleCellVolume/particleCellVolume.C
-$(forceModels)/particleVolume/particleVolume.C
-$(forceModels)/scalarGeneralExchange/scalarGeneralExchange.C
-$(forceModels)/fieldTimeAverage/fieldTimeAverage.C
-$(forceModels)/volWeightedAverage/volWeightedAverage.C
-
-$(forceSubModels)/forceSubModel/newForceSubModel.C
-$(forceSubModels)/forceSubModel/forceSubModel.C
-$(forceSubModels)/ImEx/ImEx.C
-
-$(probeModels)/probeModel/probeModel.C
-$(probeModels)/probeModel/newProbeModel.C
-$(probeModels)/noProbe/noProbe.C
-$(probeModels)/particleProbe/particleProbe.C
-
-$(IOModels)/IOModel/IOModel.C
-$(IOModels)/IOModel/newIOModel.C
-$(IOModels)/noIO/noIO.C
-$(IOModels)/basicIO/basicIO.C
-$(IOModels)/trackIO/trackIO.C
-$(IOModels)/sophIO/sophIO.C
-
-$(voidFractionModels)/voidFractionModel/voidFractionModel.C
-$(voidFractionModels)/voidFractionModel/newVoidFractionModel.C
-$(voidFractionModels)/centreVoidFraction/centreVoidFraction.C
-$(voidFractionModels)/dividedVoidFraction/dividedVoidFraction.C
-$(voidFractionModels)/bigParticleVoidFraction/bigParticleVoidFraction.C
-$(voidFractionModels)/GaussVoidFraction/GaussVoidFraction.C
-$(voidFractionModels)/IBVoidFraction/IBVoidFraction.C
-$(voidFractionModels)/trilinearVoidFraction/trilinearVoidFraction.C
-$(voidFractionModels)/noVoidFraction/noVoidFraction.C
-
-$(locateModels)/locateModel/locateModel.C
-$(locateModels)/locateModel/newLocateModel.C
-$(locateModels)/standardSearch/standardSearch.C
-$(locateModels)/engineSearch/engineSearch.C
-$(locateModels)/engineSearchIB/engineSearchIB.C
-
-
-$(meshMotionModels)/meshMotionModel/meshMotionModel.C
-$(meshMotionModels)/meshMotionModel/newMeshMotionModel.C
-$(meshMotionModels)/noMeshMotion/noMeshMotion.C
-
-$(momCoupleModels)/momCoupleModel/momCoupleModel.C
-$(momCoupleModels)/momCoupleModel/newMomCoupleModel.C
-$(momCoupleModels)/explicitCouple/explicitCouple.C
-$(momCoupleModels)/implicitCouple/implicitCouple.C
-$(momCoupleModels)/noCouple/noCouple.C
-
-$(regionModels)/regionModel/regionModel.C
-$(regionModels)/regionModel/newRegionModel.C
-$(regionModels)/allRegion/allRegion.C
-
-$(dataExchangeModels)/dataExchangeModel/dataExchangeModel.C
-$(dataExchangeModels)/dataExchangeModel/newDataExchangeModel.C
-$(dataExchangeModels)/oneWayVTK/oneWayVTK.C
-$(dataExchangeModels)/twoWayFiles/twoWayFiles.C
-$(dataExchangeModels)/noDataExchange/noDataExchange.C
-$(dataExchangeModels)/twoWayMPI/twoWayMPI.C
-
-$(averagingModels)/averagingModel/averagingModel.C
-$(averagingModels)/averagingModel/newAveragingModel.C
-$(averagingModels)/dilute/dilute.C
-$(averagingModels)/dense/dense.C
-
-$(clockModels)/clockModel/clockModel.C
-$(clockModels)/clockModel/newClockModel.C
-$(clockModels)/standardClock/standardClock.C
-$(clockModels)/noClock/noClock.C
-
-$(liggghtsCommandModels)/liggghtsCommandModel/liggghtsCommandModel.C
-$(liggghtsCommandModels)/liggghtsCommandModel/newLiggghtsCommandModel.C
-$(liggghtsCommandModels)/execute/execute.C
-$(liggghtsCommandModels)/runLiggghts/runLiggghts.C
-$(liggghtsCommandModels)/setDEMGravity/setDEMGravity.C
-$(liggghtsCommandModels)/writeLiggghts/writeLiggghts.C
-$(liggghtsCommandModels)/readLiggghtsData/readLiggghtsData.C
-
-$(smoothingModels)/smoothingModel/smoothingModel.C
-$(smoothingModels)/smoothingModel/newSmoothingModel.C
-$(smoothingModels)/noSmoothing/noSmoothing.C
-$(smoothingModels)/constDiffSmoothing/constDiffSmoothing.C
-
-LIB = $(CFDEM_LIB_DIR)/lib$(CFDEM_LIB_COMP_NAME)
diff --git a/src/lagrangian/cfdemParticleComp/Make/options b/src/lagrangian/cfdemParticleComp/Make/options
deleted file mode 100755
index a3034b0..0000000
--- a/src/lagrangian/cfdemParticleComp/Make/options
+++ /dev/null
@@ -1,40 +0,0 @@
-/*NOTE: for compiling the lnInclude of cfdemParticle is needed (exist after wmake libso of cfdemParticle)*/
-/*BUT: the *.dep files of cfdemParticle MUST NOT EXIST (do an rmdepall of of cfdemParticle)*/
-
-sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
-sinclude $(RULES)/mplib$(WM_MPLIB)
-
-GIT_VERSION := $(shell git describe --dirty --always --tags)
-PFLAGS+= -DGITVERSION=\"$(GIT_VERSION)\"
-PFLAGS+= -DDEBUGFLAG=\"$(DEBUG)\"
-PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
-PFLAGS+= -Dcompre
-
-include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
-
-EXE_INC = \
- $(PFLAGS) \
- $(PINC) \
- -I ../cfdemParticle/lnInclude \
- -I$(LIB_SRC)/finiteVolume/lnInclude \
- -I$(LIB_SRC)/transportModels \
- $(CFDEM_ADD_COMPTURBMOD_PATHS) \
- -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
- -I$(LIB_SRC)/meshTools/lnInclude \
- -I$(LIB_SRC)/lagrangian/basic/lnInclude \
- -I$(LIB_SRC)/OpenFOAM/containers/HashTables/labelHashSet \
- -I$(CFDEM_LIGGGHTS_SRC_DIR) \
- -I$(CFDEM_SRC_DIR)/cfdTools \
-
-LIB_LIBS = \
- $(PLIBS) \
- -L$(CFDEM_LIB_DIR) \
- -lfiniteVolume \
- $(CFDEM_ADD_COMPTURBMOD_LIBS) \
- -lfluidThermophysicalModels \
- -lmeshTools \
- -llagrangian \
- -L$(CFDEM_LIGGGHTS_SRC_DIR) \
- -Wl,--whole-archive -l$(CFDEM_LIGGGHTS_LIB_NAME) -Wl,--no-whole-archive \
- $(CFDEM_ADD_LIB_PATHS) \
- $(CFDEM_ADD_STATICLIBS)
diff --git a/tutorials/cfdemSolverIB/twoSpheresGlowinskiMPI/parCFDDEMrun.sh b/tutorials/cfdemSolverIB/twoSpheresGlowinskiMPI/parCFDDEMrun.sh
index 134f5d9..674c0c8 100644
--- a/tutorials/cfdemSolverIB/twoSpheresGlowinskiMPI/parCFDDEMrun.sh
+++ b/tutorials/cfdemSolverIB/twoSpheresGlowinskiMPI/parCFDDEMrun.sh
@@ -64,14 +64,6 @@ fi
cp ../../$logfileName $testHarnessPath
#- clean up case
-echo "deleting data at: $casePath"
-source $WM_PROJECT_DIR/bin/tools/CleanFunctions
-cd $casePath/CFD
-cleanCase
-rm -r $casePath/CFD/clockData
-rm $casePath/DEM/post/*.*
-#rm -r $casePath/DEM/post/restart/*.*
-#- preserve post directory
-touch $casePath/DEM/post/.gitignore
-echo "done"
+keepDEMrestart="false"
+cleanCFDEMcase $casePath/CFD $keepDEMrestart
diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI/Allrun.sh b/tutorials/cfdemSolverPiso/ErgunTestMPI/Allrun.sh
index ba165d9..29beae2 100755
--- a/tutorials/cfdemSolverPiso/ErgunTestMPI/Allrun.sh
+++ b/tutorials/cfdemSolverPiso/ErgunTestMPI/Allrun.sh
@@ -25,6 +25,21 @@ else
$casePath/parDEMrun.sh
fi
+# keep old couplingProperties
+cp $casePath/CFD/constant/couplingProperties $casePath/CFD/constant/couplingProperties_backup
+
+# change to M2M + type B
+#changeDictionary -constant -dict changeDicts/changeDictionaryDict_1 -case $casePath/CFD
+
+# change to MPI + type A
+#changeDictionary -constant -dict changeDicts/changeDictionaryDict_2 -case $casePath/CFD
+
+# change to MPI + engineIB
+#changeDictionary -constant -dict changeDicts/changeDictionaryDict_3 -case $casePath/CFD
+
#- run parallel CFD-DEM in new terminal
#gnome-terminal --title='cfdemSolverPiso ErgunTestMPI CFD' -e "bash $casePath/parCFDDEMrun.sh"
. $casePath/parCFDDEMrun.sh
+
+# restore old couplingProperties
+mv $casePath/CFD/constant/couplingProperties_backup $casePath/CFD/constant/couplingProperties
diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/0/U b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/0/U
index bd31ab5..926287d 100644
--- a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/0/U
+++ b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/0/U
@@ -39,7 +39,7 @@ boundaryField
//type zeroGradient;
-/* type groovyBC;
+ /*type groovyBC;
variables "Uend=vector(0,0,0.02);tEnd=0.1;";
valueExpression "((time() < tEnd) ? Uend/tEnd*time():Uend)";
value uniform (0 0 0);*/
diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/constant/couplingProperties b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/constant/couplingProperties
index fe686f6..6448f7d 100644
--- a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/constant/couplingProperties
+++ b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/constant/couplingProperties
@@ -32,7 +32,7 @@ couplingInterval 100;
voidFractionModel divided;//centre;//
-locateModel engine;
+locateModel engine;//engineIB;//
meshMotionModel noMeshMotion;
@@ -46,7 +46,7 @@ dataExchangeModel twoWayMPI;
averagingModel dense;//dilute;//
-clockModel standardClock;//off;
+clockModel off;//standardClock;//
smoothingModel off;// localPSizeDiffSmoothing;// constDiffSmoothing; //
@@ -259,18 +259,26 @@ centreProps
alphaMin 0.1;
}
-engineProps
+"(engineProps|turboEngineM2MProps)"
{
treeSearch true;
}
+engineIBProps
+{
+ treeSearch true;
+ zSplit 8;
+ xySplit 16;
+}
+
dividedProps
{
alphaMin 0.1;
scaleUpVol 1.0;
+ //procBoundaryCorrection true;
}
-twoWayMPIProps
+"(twoWayMPIProps|M2MProps)"
{
liggghtsPath "../DEM/in.liggghts_run";
}
diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/constant/liggghtsCommands b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/constant/liggghtsCommands
index d9e1ce8..16a83a1 100644
--- a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/constant/liggghtsCommands
+++ b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/constant/liggghtsCommands
@@ -38,6 +38,7 @@ liggghtsCommandModels
writeLiggghtsProps
{
writeLast off;
+ //path "../DEM"; // optional setting
writeName "post/restart/liggghts.restartCFDEM";
overwrite on;
}
diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/octave/totalPressureDrop.m b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/octave/totalPressureDrop.m
index 4dea628..0de8d6d 100644
--- a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/octave/totalPressureDrop.m
+++ b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/octave/totalPressureDrop.m
@@ -9,13 +9,6 @@ clc;
rhoG = 10 % density in kg/m3
%path = '../probes/0/p'; % ext32
path = '../postProcessing/probes/0/p';
-
-%- nomenclature before 2.4.x
-%columns=22;
-%headerlines=4;
-%data = loaddata(path,columns,headerlines);
-%data=transpose(data);
-
data = load(path);
[x,y]=size(data)
dp_sim = (data(:,2)-data(:,y))*rhoG; %conversion to Pa!
diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/system/controlDict b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/system/controlDict
index 888ae26..efeef32 100644
--- a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/system/controlDict
+++ b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/system/controlDict
@@ -52,8 +52,8 @@ maxCo 0.1;
/*libs (
"libsimpleSwakFunctionObjects.so"
"libswakFunctionObjects.so"
- "libgroovyBC.so"
- "libfiniteVolumeCFDEM.so"
+ "libgroovyBC.so"
+ "libfiniteVolumeCFDEM.so"
);*/
functions
@@ -69,25 +69,6 @@ functions
probeLocations
(
(0.00003 0 0.0001)
- (0.00003 0 0.0026)
- (0.00003 0 0.0051)
- (0.00003 0 0.0076)
- (0.00003 0 0.0101)
- (0.00003 0 0.0126)
- (0.00003 0 0.0151)
- (0.00003 0 0.0176)
- (0.00003 0 0.0201)
- (0.00003 0 0.0226)
- (0.00003 0 0.0251)
- (0.00003 0 0.0276)
- (0.00003 0 0.0301)
- (0.00003 0 0.0326)
- (0.00003 0 0.0351)
- (0.00003 0 0.0375)
- (0.00003 0 0.0401)
- (0.00003 0 0.0426)
- (0.00003 0 0.0451)
- (0.00003 0 0.0476)
(0.00003 0 0.0529)
);
diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/system/fvSolution b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/system/fvSolution
index 3780d0d..6a9ee73 100644
--- a/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/system/fvSolution
+++ b/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD/system/fvSolution
@@ -77,9 +77,9 @@ relaxationFactors
}
equations
{
- "U.*" 1.0;
+ "U.*" 1.;
"k.*" 1.;
- "epsilon.*" 1.;
+ "epsilon.*" 1.;
}
}
diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI/parCFDDEMrun.sh b/tutorials/cfdemSolverPiso/ErgunTestMPI/parCFDDEMrun.sh
index ef122dd..a05aa1c 100644
--- a/tutorials/cfdemSolverPiso/ErgunTestMPI/parCFDDEMrun.sh
+++ b/tutorials/cfdemSolverPiso/ErgunTestMPI/parCFDDEMrun.sh
@@ -77,21 +77,8 @@ if [ $postproc == "true" ]
echo "...press enter to clean up case"
echo "press Ctr+C to keep data"
read
-
fi
#- clean up case
-echo "deleting data at: $casePath ?\n"
-read
-source $WM_PROJECT_DIR/bin/tools/CleanFunctions
-cd $casePath/CFD
-cleanCase
-rm -r $casePath/CFD/clockData
-rm $casePath/CFD/octave/octave-workspace
-rm -r $casePath/CFD/hpctoolkit-*
-rm $casePath/DEM/post/*.*
-touch $casePath/DEM/post/.gitignore
-#rm $casePath/DEM/post/restart/*.*
-rm $casePath/DEM/post/restart/liggghts.restartCFDEM*
-touch $casePath/DEM/post/restart/.gitignore
-echo "done"
+keepDEMrestart="false"
+cleanCFDEMcase $casePath/CFD $keepDEMrestart
diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI_cgs/CFD/constant/couplingProperties b/tutorials/cfdemSolverPiso/ErgunTestMPI_cgs/CFD/constant/couplingProperties
index 0bd99ef..aea3431 100644
--- a/tutorials/cfdemSolverPiso/ErgunTestMPI_cgs/CFD/constant/couplingProperties
+++ b/tutorials/cfdemSolverPiso/ErgunTestMPI_cgs/CFD/constant/couplingProperties
@@ -32,7 +32,7 @@ couplingInterval 100;
voidFractionModel divided;
-locateModel engine;//turboEngineM2M;//
+locateModel engine;
meshMotionModel noMeshMotion;
@@ -160,14 +160,6 @@ engineProps
treeSearch true;
}
-turboEngineM2MProps
-{
- turboEngineProps
- {
- treeSearch true;
- }
-}
-
dividedProps
{
alphaMin 0.1;
diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI_restart/CFD/constant/couplingProperties_restart b/tutorials/cfdemSolverPiso/ErgunTestMPI_restart/CFD/constant/couplingProperties_restart
index d83c123..a065ce8 100644
--- a/tutorials/cfdemSolverPiso/ErgunTestMPI_restart/CFD/constant/couplingProperties_restart
+++ b/tutorials/cfdemSolverPiso/ErgunTestMPI_restart/CFD/constant/couplingProperties_restart
@@ -32,7 +32,7 @@ couplingInterval 100;
voidFractionModel divided;//centre;//
-locateModel engine;//turboEngineM2M;//
+locateModel engine;
meshMotionModel noMeshMotion;
@@ -201,14 +201,6 @@ engineProps
treeSearch true;
}
-turboEngineM2MProps
-{
- turboEngineProps
- {
- treeSearch true;
- }
-}
-
dividedProps
{
alphaMin 0.01;
diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI_restart/CFD/constant/couplingProperties_run b/tutorials/cfdemSolverPiso/ErgunTestMPI_restart/CFD/constant/couplingProperties_run
index f46e8d1..e4ebdce 100644
--- a/tutorials/cfdemSolverPiso/ErgunTestMPI_restart/CFD/constant/couplingProperties_run
+++ b/tutorials/cfdemSolverPiso/ErgunTestMPI_restart/CFD/constant/couplingProperties_run
@@ -32,7 +32,7 @@ couplingInterval 100;
voidFractionModel divided;//centre;//
-locateModel engine;//turboEngineM2M;//
+locateModel engine;
meshMotionModel noMeshMotion;
@@ -201,14 +201,6 @@ engineProps
treeSearch true;
}
-turboEngineM2MProps
-{
- turboEngineProps
- {
- treeSearch true;
- }
-}
-
dividedProps
{
alphaMin 0.01;
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/Allrun.sh b/tutorials/cfdemSolverPiso/periodicChannel/Allrun.sh
new file mode 100755
index 0000000..8fe47e1
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/Allrun.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+#===================================================================#
+# allrun script for testcase as part of test routine
+# run periodicChannel
+# Christoph Goniva - Sept. 2010
+#===================================================================#
+
+#- define variables
+casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+
+# check if mesh was built
+if [ -f "$casePath/CFD/constant/polyMesh/points" ]; then
+ echo "mesh was built before - using old mesh"
+else
+ echo "mesh needs to be built"
+ cd $casePath/CFD
+ blockMesh
+fi
+
+if [ -f "$casePath/DEM/post/restart/liggghts.restart" ]; then
+ echo "LIGGGHTS init was run before - using existing restart file"
+else
+ #- run DEM in new terminal
+ $casePath/parDEMrun.sh
+fi
+
+#- run parallel CFD-DEM in new terminal
+. $casePath/parCFDDEMrun.sh
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/Ksl b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/Ksl
new file mode 100644
index 0000000..800bd3a
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/Ksl
@@ -0,0 +1,40 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ location "0";
+ object Ksl;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [1 -3 -1 0 0 0 0];
+
+internalField uniform 0;
+
+boundaryField
+{
+ inlet
+ {
+ type cyclic;
+ }
+
+ outlet
+ {
+ type cyclic;
+ }
+ wall
+ {
+ type zeroGradient;
+ }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/U b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/U
new file mode 100644
index 0000000..44178e1
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/U
@@ -0,0 +1,39 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: http://www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volVectorField;
+ object U;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 1 -1 0 0 0 0];
+
+internalField uniform (0 0 0);
+
+boundaryField
+{
+ inlet
+ {
+ type cyclic;
+ }
+
+ outlet
+ {
+ type cyclic;
+ }
+ wall
+ {
+ type fixedValue;
+ value uniform (0 0 0);
+ }
+}
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/Us b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/Us
new file mode 100644
index 0000000..68f9479
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/Us
@@ -0,0 +1,40 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volVectorField;
+ location "0";
+ object Us;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 1 -1 0 0 0 0];
+
+internalField uniform (0 0 0);
+
+boundaryField
+{
+ inlet
+ {
+ type cyclic;
+ }
+
+ outlet
+ {
+ type cyclic;
+ }
+ wall
+ {
+ type zeroGradient;
+ }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/p b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/p
new file mode 100644
index 0000000..0ce5cd6
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/p
@@ -0,0 +1,38 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: http://www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ object p;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 2 -2 0 0 0 0];
+
+internalField uniform 0.;
+
+boundaryField
+{
+ inlet
+ {
+ type cyclic;
+ }
+
+ outlet
+ {
+ type cyclic;
+ }
+ wall
+ {
+ type zeroGradient;
+ }
+}
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/rho b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/rho
new file mode 100644
index 0000000..32ad9dd
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/rho
@@ -0,0 +1,38 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: http://www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ object rho;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [1 -3 0 0 0 0 0];
+
+internalField uniform 1.3;
+
+boundaryField
+{
+ inlet
+ {
+ type cyclic;
+ }
+
+ outlet
+ {
+ type cyclic;
+ }
+ wall
+ {
+ type zeroGradient;
+ }
+}
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/voidfraction b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/voidfraction
new file mode 100644
index 0000000..29b4e17
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/0/voidfraction
@@ -0,0 +1,40 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ location "0";
+ object voidfraction;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 0 0 0 0 0 0];
+
+internalField uniform 1;
+
+boundaryField
+{
+ inlet
+ {
+ type cyclic;
+ }
+
+ outlet
+ {
+ type cyclic;
+ }
+ wall
+ {
+ type zeroGradient;
+ }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/RASProperties b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/RASProperties
new file mode 100644
index 0000000..daec182
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/RASProperties
@@ -0,0 +1,25 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "constant";
+ object RASProperties;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+RASModel laminar;
+
+turbulence off;
+
+printCoeffs on;
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/couplingProperties b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/couplingProperties
new file mode 100644
index 0000000..f4415f3
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/couplingProperties
@@ -0,0 +1,116 @@
+/*---------------------------------------------------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.4 |
+| \\ / A nd | Web: http://www.openfoam.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+
+
+FoamFile
+{
+ version 2.0;
+ format ascii;
+
+ root "";
+ case "";
+ instance "";
+ local "";
+
+ class dictionary;
+ object couplingProperties;
+}
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+//===========================================================================//
+// sub-models & settings
+
+modelType "A"; // A or B
+
+couplingInterval 100;
+
+voidFractionModel divided;//centre;//
+
+locateModel engine;//engineIB;//
+
+meshMotionModel noMeshMotion;
+
+regionModel allRegion;
+
+IOModel basicIO;
+
+probeModel off;
+
+dataExchangeModel twoWayMPI;
+
+averagingModel dense;//dilute;//
+
+clockModel off;//standardClock;//
+
+smoothingModel off;// localPSizeDiffSmoothing;// constDiffSmoothing; //
+
+forceModels
+(
+ KochHillDrag
+ gradPForce
+ viscForce
+);
+
+momCoupleModels
+(
+ implicitCouple
+);
+
+//turbulenceModelType "RASProperties";//"LESProperties";//OFversion24x
+turbulenceModelType turbulenceProperties;//"LESProperties";//OFversion30x
+
+//===========================================================================//
+// sub-model properties
+
+implicitCoupleProps
+{
+ velFieldName "U";
+ granVelFieldName "Us";
+ voidfractionFieldName "voidfraction";
+}
+
+gradPForceProps
+{
+ pFieldName "p";
+ voidfractionFieldName "voidfraction";
+ velocityFieldName "U";
+ interpolation true;
+}
+
+viscForceProps
+{
+ velocityFieldName "U";
+ interpolation true;
+}
+
+KochHillDragProps
+{
+ velFieldName "U";
+ rhoParticle 1500;
+ voidfractionFieldName "voidfraction";
+ interpolation true;
+}
+
+engineProps
+{
+ treeSearch true;
+}
+
+dividedProps
+{
+ alphaMin 0.1;
+ scaleUpVol 1.0;
+}
+
+twoWayMPIProps
+{
+ maxNumberOfParticles 10100;
+ liggghtsPath "../DEM/in.liggghts_resume";
+}
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/g b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/g
new file mode 100644
index 0000000..936f357
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/g
@@ -0,0 +1,22 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class uniformDimensionedVectorField;
+ location "constant";
+ object g;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 1 -2 0 0 0 0];
+value ( 0 0 9.81 );
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/liggghtsCommands b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/liggghtsCommands
new file mode 100644
index 0000000..d2bb7f5
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/liggghtsCommands
@@ -0,0 +1,31 @@
+/*---------------------------------------------------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.4 |
+| \\ / A nd | Web: http://www.openfoam.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+
+
+FoamFile
+{
+ version 2.0;
+ format ascii;
+
+ root "";
+ case "";
+ instance "";
+ local "";
+
+ class dictionary;
+ object liggghtsCommands;
+}
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+liggghtsCommandModels
+(
+ runLiggghts
+);
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/polyMesh/blockMeshDict b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/polyMesh/blockMeshDict
new file mode 100644
index 0000000..46a542f
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/polyMesh/blockMeshDict
@@ -0,0 +1,83 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: http://www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ object blockMeshDict;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+convertToMeters 1;//0.008;
+
+vertices
+(
+ (0. 0. 0.)
+ (0.4 0. 0.)
+ (0.4 0.1 0.)
+ (0. 0.1 0.)
+ (0. 0. 0.1)
+ (0.4 0. 0.1)
+ (0.4 0.1 0.1)
+ (0. 0.1 0.1)
+);
+
+blocks
+(
+ hex (0 1 2 3 4 5 6 7) (32 8 8) simpleGrading (1 1 1)
+);
+
+edges
+(
+);
+
+boundary
+(
+ wall
+ {
+ type wall;
+ faces
+ (
+ (0 3 2 1)//bottom
+ (4 5 6 7)//top
+ (1 5 4 0)//front
+ (3 7 6 2)//back
+ );
+ }
+
+ outlet
+ {
+ type cyclic;//cyclicAMI;
+ neighbourPatch inlet;
+ transform translational;
+ separationVector (-0.4 0 0);
+ faces
+ (
+ (2 6 5 1)//outlet
+ );
+ }
+
+ inlet
+ {
+ type cyclic;//cyclicAMI;
+ neighbourPatch outlet;
+ transform translational;
+ separationVector (0.4 0 0);
+ faces
+ (
+ (0 4 7 3)//inlet
+ );
+ }
+);
+
+mergePatchPairs
+(
+);
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/transportProperties b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/transportProperties
new file mode 100644
index 0000000..1e80362
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/transportProperties
@@ -0,0 +1,37 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "constant";
+ object transportProperties;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+transportModel Newtonian;
+
+nu nu [ 0 2 -1 0 0 0 0 ] 1.5e-04;
+
+CrossPowerLawCoeffs
+{
+ nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
+ nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
+ m m [ 0 0 1 0 0 0 0 ] 1;
+ n n [ 0 0 0 0 0 0 0 ] 1;
+}
+
+BirdCarreauCoeffs
+{
+ nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
+ nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
+ k k [ 0 0 1 0 0 0 0 ] 0;
+ n n [ 0 0 0 0 0 0 0 ] 1;
+}
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/turbulenceProperties b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/turbulenceProperties
new file mode 100644
index 0000000..67156f5
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/constant/turbulenceProperties
@@ -0,0 +1,29 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "constant";
+ object turbulenceProperties;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+//simulationType RASModel; //OFversion24x
+simulationType laminar; //OFversion30x
+
+RAS //OFversion30x
+{ //OFversion30x
+ RASModel laminar; //kEpsilon; //OFversion30x
+ turbulence off; //OFversion30x
+ printCoeffs on; //OFversion30x
+} //OFversion30x
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/octave/checkVolFlow.m b/tutorials/cfdemSolverPiso/periodicChannel/CFD/octave/checkVolFlow.m
new file mode 100644
index 0000000..0b68173
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/octave/checkVolFlow.m
@@ -0,0 +1,152 @@
+%
+close all;
+clear;
+clc;
+
+%====================================%
+% simulation data
+%====================================%
+
+skip=0;
+nrSamples = 0;
+Ainlet=1.000000e-02; % cross sectional area in m2
+Utarget=10; % target superficial velocity in m/s
+Vtarget=Utarget*Ainlet; % target flowrate in m3/s
+
+filename = 'faceSource.dat';
+timedirectory = '0';
+
+ %Daten einlesen
+ path = '../../CFD/postProcessing/volFlow_inlet';
+ data = transpose(load(strcat(path,'/',timedirectory,'/',filename))); %data
+ [x,y]=size(data);
+ time=data(1,1+skip:y)
+ volFlow_inlet=data(3,1+skip:y)
+
+ %Daten einlesen
+ path = '../../CFD/postProcessing/volFlow_outlet';
+ data = transpose(load(strcat(path,'/',timedirectory,'/',filename))); %data
+ [x,y]=size(data)
+ time=data(1,1+skip:y);
+ volFlow_outlet=data(3,1+skip:y);
+
+ %Daten einlesen
+ path = '../../CFD/postProcessing/volFlow_wall';
+ data = transpose(load(strcat(path,'/',timedirectory,'/',filename))); %data
+ [x,y]=size(data)
+ time=data(1,1+skip:y);
+ volFlow_wall=data(3,1+skip:y);
+
+%- time integrate data to vol entered per TS
+deltatT=time(2)-time(1)
+volPerTs_inlet=volFlow_inlet(1,:).*deltatT;
+volPerTs_outlet=volFlow_outlet(1,:).*deltatT;
+volPerTs_wall=volFlow_wall(1,:).*deltatT;
+
+%- accumulated vol entered
+vol_inlet(1)=volPerTs_inlet(1);
+vol_outlet(1)=volPerTs_outlet(1);
+vol_wall(1)=volPerTs_wall(1);
+for i=2:y-skip
+ vol_inlet(i) = vol_inlet(i-1) + volPerTs_inlet(i);
+ vol_outlet(i) = vol_outlet(i-1) + volPerTs_outlet(i);
+ vol_wall(i) = vol_wall(i-1) + volPerTs_wall(i);
+end
+
+%===================================
+% plot 1
+xAxisLabel = 'time [s]';
+yAxisLabel = 'time integrated flux in [m3]';
+
+% Create figure
+figure1 = figure('PaperPositionMode','manual','PaperUnits','centimeters',...
+% 'PaperPosition',[0 0 15.5 10],'PaperSize',[15.5 10],...
+ 'Color',[1 1 1]);
+
+% Create axes
+axes1 = axes('Parent',figure1,'YGrid','on','XGrid','on','LineWidth',1,...
+ 'FontWeight','light','FontSize',11,'FontName','Helvetica-Narrow');
+box(axes1,'on');
+hold(axes1,'all');
+
+% Create plot
+plot(time,vol_inlet,'r','Parent',axes1,'Marker','none','LineWidth',1,...
+ time,-vol_outlet,'g','Parent',axes1,'Marker','none','LineWidth',1,...
+ time,-vol_wall,'b','Parent',axes1,'Marker','none','LineWidth',1);
+
+% Create xlabel
+xlabel(xAxisLabel,'FontWeight','bold','FontSize',11,'FontName','Helvetica-Narrow');
+% Create ylabel
+ylabel(yAxisLabel,'FontWeight','bold','FontSize',11,'FontName','Helvetica-Narrow');
+% Define axis
+%axis([dMin,dMax]);
+
+title('time integrated flux acoss patches');
+legend('inlet','-1*outlet','wall');
+print -color "volEntered.png"
+
+%===================================
+% plot 2
+xAxisLabel = 'time [s]';
+yAxisLabel = 'vol entered in TS [m3]';
+
+% Create figure
+figure2 = figure('PaperPositionMode','manual','PaperUnits','centimeters',...
+% 'PaperPosition',[0 0 15.5 10],'PaperSize',[15.5 10],...
+ 'Color',[1 1 1]);
+
+% Create axes
+axes2 = axes('Parent',figure2,'YGrid','on','XGrid','on','LineWidth',1,...
+ 'FontWeight','light','FontSize',11,'FontName','Helvetica-Narrow');
+box(axes2,'on');
+hold(axes2,'all');
+
+% Create plot
+plot(time,volPerTs_inlet,'r','Parent',axes2,'Marker','none','LineWidth',1,...
+ time,-volPerTs_outlet,'g','Parent',axes2,'Marker','none','LineWidth',1,...
+ time,-volPerTs_wall,'b','Parent',axes2,'Marker','none','LineWidth',1);
+
+% Create xlabel
+xlabel(xAxisLabel,'FontWeight','bold','FontSize',11,'FontName','Helvetica-Narrow');
+% Create ylabel
+ylabel(yAxisLabel,'FontWeight','bold','FontSize',11,'FontName','Helvetica-Narrow');
+% Define axis
+%axis([dMin,dMax]);
+
+title('vol flux * time = vol entered per TS');
+legend('inlet','outlet','wall');
+print -color "volEnteredPerTS.png"
+
+%===================================
+% plot 3
+xAxisLabel = 'time [s]';
+yAxisLabel = 'vol flux in [m3/s]';
+
+% Create figure
+figure3 = figure('PaperPositionMode','manual','PaperUnits','centimeters',...
+% 'PaperPosition',[0 0 15.5 10],'PaperSize',[15.5 10],...
+ 'Color',[1 1 1]);
+
+% Create axes
+axes3 = axes('Parent',figure3,'YGrid','on','XGrid','on','LineWidth',1,...
+ 'FontWeight','light','FontSize',11,'FontName','Helvetica-Narrow');
+box(axes3,'on');
+hold(axes3,'all');
+
+% Create plot
+plot(time,volFlow_inlet(1,:),'r','Parent',axes3,'Marker','none','LineWidth',1,...
+ time,-volFlow_outlet(1,:),'g','Parent',axes3,'Marker','none','LineWidth',1,...
+ time,-volFlow_wall(1,:),'b','Parent',axes3,'Marker','none','LineWidth',1,...
+ [min(time),max(time)],[-Vtarget,-Vtarget],'c','Parent',axes3,'Marker','none','LineWidth',1);
+
+% Create xlabel
+xlabel(xAxisLabel,'FontWeight','bold','FontSize',11,'FontName','Helvetica-Narrow');
+% Create ylabel
+ylabel(yAxisLabel,'FontWeight','bold','FontSize',11,'FontName','Helvetica-Narrow');
+% Define axis
+%axis([dMin,dMax]);
+
+title('vol flux');
+legend('inlet','outlet','wall','Vtarget');
+print -color "volflow.png"
+
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/controlDict b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/controlDict
new file mode 100644
index 0000000..1911872
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/controlDict
@@ -0,0 +1,139 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "system";
+ object controlDict;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+application cfdemSolverPiso;
+
+startFrom startTime;
+
+startTime 0;
+
+stopAt endTime;
+
+endTime 0.01;
+
+deltaT 1e-3;
+
+writeControl adjustableRunTime;
+
+writeInterval 1e-3;
+
+purgeWrite 0;
+
+writeFormat ascii;
+
+writePrecision 6;
+
+writeCompression uncompressed;
+
+timeFormat general;
+
+timePrecision 6;
+
+runTimeModifiable yes;
+
+adjustTimeStep no;
+
+maxCo 0.1;
+
+libs ( "libfvOptionsCFDEM.so" );
+
+functions
+(
+
+ probes
+ {
+ type probes;
+ // Where to load it from
+ functionObjectLibs ( "libsampling.so" );
+ // Name of the directory for probe data
+ name probes;
+ probeLocations
+ (
+ (0.00003 0.05 0.05)
+ (0.39999 0.05 0.05)
+ );
+
+ // Fields to be probed
+ fields ( p U voidfraction );
+
+ // Write at same frequency as fields
+ outputControl timeStep;//outputTime;
+ outputInterval 1;
+ }
+
+
+ volFlow_inlet
+ {
+ type faceSource;
+ functionObjectLibs ("libfieldFunctionObjects.so");
+ enabled true;
+ outputControl outputTime;//timeStep;
+ log true;
+ writeArea true; //write for OF 3.0 to be consistent
+ valueOutput true;
+ source patch;
+ sourceName inlet;
+ operation sum;
+
+ fields
+ (
+ phi
+ );
+ surfaceFormat null;
+ }
+
+ volFlow_outlet
+ {
+ type faceSource;
+ functionObjectLibs ("libfieldFunctionObjects.so");
+ enabled true;
+ outputControl outputTime;//timeStep;
+ log true;
+ writeArea true; //write for OF 3.0 to be consistent
+ valueOutput true;
+ source patch;
+ sourceName outlet;
+ operation sum;
+
+ fields
+ (
+ phi
+ );
+ surfaceFormat null;
+ }
+
+ volFlow_wall
+ {
+ type faceSource;
+ functionObjectLibs ("libfieldFunctionObjects.so");
+ enabled true;
+ outputControl outputTime;//timeStep;
+ log true;
+ writeArea true; //write for OF 3.0 to be consistent
+ valueOutput true;
+ source patch;
+ sourceName wall;
+ operation sum;
+
+ fields
+ (
+ phi
+ );
+ surfaceFormat null;
+ }
+);
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/controlDict.foam b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/controlDict.foam
new file mode 100644
index 0000000..310256a
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/controlDict.foam
@@ -0,0 +1,115 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "system";
+ object controlDict;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+application pisoFoam;
+
+startFrom startTime;
+
+startTime 0;
+
+stopAt endTime;
+
+endTime 2.0;
+
+deltaT 1e-5;
+
+writeControl adjustableRunTime;
+
+writeInterval 0.2;
+
+purgeWrite 0;
+
+writeFormat ascii;
+
+writePrecision 6;
+
+writeCompression uncompressed;
+
+timeFormat general;
+
+timePrecision 6;
+
+runTimeModifiable yes;
+
+adjustTimeStep no;
+
+maxCo 0.1;
+
+//libs ( "libgroovyBC.so" );
+
+functions
+(
+
+/* probes
+ {
+ type probes;
+ // Where to load it from
+ functionObjectLibs ( "libsampling.so" );
+ // Name of the directory for probe data
+ name probes;
+ probeLocations
+ (
+ (0 0 0)
+ );
+
+ // Fields to be probed
+ fields ( avUslipX avUslipY avUslipZ );
+
+ // Write at same frequency as fields
+ outputControl timeStep;//outputTime;
+ outputInterval 1;
+ }
+/*/
+
+ volAvU
+ {
+ type cellSource;
+ functionObjectLibs ("libfieldFunctionObjects.so");
+ enabled true;
+ outputControl outputTime;//timeStep;//
+ log false;
+ valueOutput false;
+ source all;
+ operation weightedAverage;
+ weightField "voidfraction";
+ fields
+ (
+ U
+ );
+ }
+
+ /*pressureDrop
+ {
+ type patchAverage;
+ functionObjectLibs
+ (
+ "libsimpleFunctionObjects.so"
+ );
+ verbose true;
+ patches
+ (
+ inlet
+ outlet
+ );
+ fields
+ (
+ p
+ );
+ factor 1;
+ }*/
+);
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/decomposeParDict b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/decomposeParDict
new file mode 100644
index 0000000..dd1f909
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/decomposeParDict
@@ -0,0 +1,86 @@
+/*-------------------------------*- C++ -*---------------------------------*\
+| ========= |
+| \\ / OpenFOAM |
+| \\ / |
+| \\ / The Open Source CFD Toolbox |
+| \\/ http://www.OpenFOAM.org |
+\*-------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ note "mesh decomposition control dictionary";
+ location "system";
+ object decomposeParDict;
+}
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+numberOfSubdomains 4;
+
+//- Keep owner and neighbour on same processor for faces in zones:
+// preserveFaceZones (heater solid1 solid3);
+
+//method scotch;
+// method hierarchical;
+ method simple;
+// method metis;
+// method manual;
+
+simpleCoeffs
+{
+ n (1 1 4);
+ delta 0.001;
+}
+
+hierarchicalCoeffs
+{
+ n (2 2 1);
+ delta 0.001;
+ order xyz;
+}
+
+metisCoeffs
+{
+ /*
+ processorWeights
+ (
+ 1
+ 1
+ 1
+ 1
+ );
+ */
+}
+
+scotchCoeffs
+{
+ //processorWeights
+ //(
+ // 1
+ // 1
+ // 1
+ // 1
+ //);
+ //writeGraph true;
+ //strategy "b";
+}
+
+manualCoeffs
+{
+ dataFile "decompositionData";
+}
+
+
+//// Is the case distributed
+//distributed yes;
+//// Per slave (so nProcs-1 entries) the directory above the case.
+//roots
+//(
+// "/tmp"
+// "/tmp"
+//);
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/fvOptions b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/fvOptions
new file mode 100644
index 0000000..ec7071d
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/fvOptions
@@ -0,0 +1,35 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 3.0.x |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "constant";
+ object fvOptions;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+momentumSource
+{
+ type meanSupVelocityForce;
+ active yes;
+
+ meanSupVelocityForceCoeffs
+ {
+ selectionMode all; // apply force to all cells
+
+ fieldNames (U); // name of velocity field
+ Ubar (10 0 0);// desired mean velocity
+ relaxation 0.9; // optional relaxation factor
+ voidfractionField "voidfraction";
+ }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/fvSchemes b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/fvSchemes
new file mode 100644
index 0000000..2c26136
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/fvSchemes
@@ -0,0 +1,56 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "system";
+ object fvSchemes;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+ddtSchemes
+{
+ default backward;
+}
+
+gradSchemes
+{
+ default Gauss linear;
+}
+
+divSchemes
+{
+ default Gauss linear;
+ div(phi,U) Gauss limitedLinearV 1;
+}
+
+laplacianSchemes
+{
+ default Gauss linear corrected;
+}
+
+interpolationSchemes
+{
+ default linear;
+}
+
+snGradSchemes
+{
+ default corrected;
+}
+
+fluxRequired
+{
+ default no;
+ p ;
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/fvSolution b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/fvSolution
new file mode 100644
index 0000000..253d52f
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/CFD/system/fvSolution
@@ -0,0 +1,72 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "system";
+ object fvSolution;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+solvers
+{
+ p
+ {
+ solver PCG;
+ preconditioner DIC;
+ tolerance 1e-06;
+ relTol 0.1;
+ }
+
+ pFinal
+ {
+ $p;
+ relTol 0;
+ }
+
+ "(U|k|epsilon|R|nuTilda)"
+ {
+ solver PBiCG;
+ preconditioner DILU;
+ tolerance 1e-05;
+ relTol 0.1;
+ }
+
+ "(U|k|epsilon|R|nuTilda)Final"
+ {
+ $U;
+ relTol 0;
+ }
+}
+
+relaxationFactors
+{
+ fields
+ {
+ p 1.0;
+ }
+ equations
+ {
+ "U.*" 1.;
+ "k.*" 1.;
+ "epsilon.*" 1.;
+ }
+}
+
+PISO
+{
+ nCorrectors 3;
+ nNonOrthogonalCorrectors 0;
+ pRefCell 0;
+ pRefValue 0;
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/DEM/in.liggghts_init b/tutorials/cfdemSolverPiso/periodicChannel/DEM/in.liggghts_init
new file mode 100644
index 0000000..17942e4
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/DEM/in.liggghts_init
@@ -0,0 +1,65 @@
+echo both
+log ../DEM/log.liggghts
+thermo_log ../DEM/post/thermo.txt
+
+atom_style granular
+atom_modify map array
+communicate single vel yes
+
+boundary p f f
+newton off
+
+units si
+
+region reg block 0 0.4 0 0.1 0 0.1 units box
+create_box 1 reg
+
+neighbor 0.001 bin
+neigh_modify delay 0
+
+
+# Material properties required for granular pair styles
+
+fix m1 all property/global youngsModulus peratomtype 5.e6
+fix m2 all property/global poissonsRatio peratomtype 0.45
+fix m3 all property/global coefficientRestitution peratomtypepair 1 0.3
+fix m4 all property/global coefficientFriction peratomtypepair 1 0.5
+
+# pair style
+pair_style gran model hertz tangential history # Hertzian without cohesion
+pair_coeff * *
+
+# timestep, gravity
+timestep 0.00001
+fix gravi all gravity 9.81 vector 0.0 0.0 1.0
+
+# walls
+#fix xwalls1 all wall/gran model hertz tangential history primitive type 1 xplane 0.0
+#fix xwalls2 all wall/gran model hertz tangential history primitive type 1 xplane 0.4
+fix ywalls1 all wall/gran model hertz tangential history primitive type 1 yplane 0.0
+fix ywalls2 all wall/gran model hertz tangential history primitive type 1 yplane 0.1
+fix zwalls1 all wall/gran model hertz tangential history primitive type 1 zplane 0.0
+fix zwalls2 all wall/gran model hertz tangential history primitive type 1 zplane 0.1
+
+# particle distributions and insertion
+fix pts1 all particletemplate/sphere 15485863 atom_type 1 density constant 2000 radius constant 0.0005
+fix pdd1 all particledistribution/discrete 15485867 1 pts1 1.0
+
+fix ins all insert/pack seed 32452843 distributiontemplate pdd1 vel constant 0. 0. 1. insert_every once overlapcheck yes all_in yes particles_in_region 1000 region reg
+
+# apply nve integration to all particles that are inserted as single particles
+fix integr all nve/sphere
+
+# screen output
+compute 1 all erotate/sphere
+thermo_style custom step atoms ke c_1 vol
+thermo 1000
+thermo_modify lost ignore norm no
+compute_modify thermo_temp dynamic yes
+
+# insert the first particles so that dump is not empty
+run 1
+dump dmp all custom 5000 post/dump.liggghts_init id type type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
+
+run 10000 upto
+write_restart post/restart/liggghts.restart
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/DEM/in.liggghts_resume b/tutorials/cfdemSolverPiso/periodicChannel/DEM/in.liggghts_resume
new file mode 100644
index 0000000..0360ddb
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/DEM/in.liggghts_resume
@@ -0,0 +1,70 @@
+echo both
+log ../DEM/log.liggghts
+thermo_log ../DEM/post/thermo.txt
+
+atom_style granular
+atom_modify map array
+communicate single vel yes
+
+boundary p f f
+newton off
+
+units si
+processors 2 2 1
+
+#read the restart file
+read_restart ../DEM/post/restart/liggghts.restart
+
+neighbor 0.0005 bin
+neigh_modify delay 0
+
+#Material properties required for new pair styles
+
+fix m1 all property/global youngsModulus peratomtype 5.e6
+fix m2 all property/global poissonsRatio peratomtype 0.45
+fix m3 all property/global coefficientRestitution peratomtypepair 1 0.3
+fix m4 all property/global coefficientFriction peratomtypepair 1 0.5
+
+#pair style
+pair_style gran model hertz tangential history #Hertzian without cohesion
+pair_coeff * *
+
+#timestep, gravity
+timestep 0.00001
+fix gravi all gravity 9.81 vector 0.0 0.0 1.0
+
+#walls
+#fix xwalls1 all wall/gran model hertz tangential history primitive type 1 xplane 0.0
+#fix xwalls2 all wall/gran model hertz tangential history primitive type 1 xplane 0.4
+fix ywalls1 all wall/gran model hertz tangential history primitive type 1 yplane 0.0
+fix ywalls2 all wall/gran model hertz tangential history primitive type 1 yplane 0.1
+fix zwalls1 all wall/gran model hertz tangential history primitive type 1 zplane 0.0
+fix zwalls2 all wall/gran model hertz tangential history primitive type 1 zplane 0.1
+
+#cfd coupling
+fix cfd all couple/cfd couple_every 100 mpi
+fix cfd2 all couple/cfd/force/implicit
+
+#apply nve integration to all particles that are inserted as single particles
+fix integr all nve/sphere
+
+#center of mass
+compute centerOfMass all com
+
+#compute total dragforce
+compute dragtotal all reduce sum f_dragforce[1] f_dragforce[2] f_dragforce[3]
+
+#screen output
+compute 1 all erotate/sphere
+thermo_style custom step atoms ke c_1 vol c_centerOfMass[3] c_dragtotal[1] c_dragtotal[2] c_dragtotal[3]
+thermo 10
+thermo_modify lost ignore norm no
+compute_modify thermo_temp dynamic yes
+
+#insert the first particles so that dump is not empty
+dump myDump all stl 1 post/dump_*.stl
+#run 1
+dump dmp all custom 5000 ../DEM/post/dump*.liggghts_restart id type type x y z vx vy vz fx fy fz f_dragforce[1] f_dragforce[2] f_dragforce[3] radius
+undump myDump
+
+run 0
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/DEM/post/.gitignore b/tutorials/cfdemSolverPiso/periodicChannel/DEM/post/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/DEM/post/restart/.gitignore b/tutorials/cfdemSolverPiso/periodicChannel/DEM/post/restart/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/parCFDDEMrun.sh b/tutorials/cfdemSolverPiso/periodicChannel/parCFDDEMrun.sh
new file mode 100755
index 0000000..1cb8afe
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/parCFDDEMrun.sh
@@ -0,0 +1,90 @@
+#!/bin/bash
+
+#===================================================================#
+# allrun script for testcase as part of test routine
+# run settlingTest CFD part
+# Christoph Goniva - Feb. 2011
+#===================================================================#
+
+#- source CFDEM env vars
+. ~/.bashrc
+
+#- include functions
+source $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/functions.sh
+
+#--------------------------------------------------------------------------------#
+#- define variables
+casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+logpath=$casePath
+headerText="run_parallel_cfdemSolverPiso_periodicChannel_CFDDEM"
+logfileName="log_$headerText"
+solverName="cfdemSolverPiso"
+nrProcs="4"
+machineFileName="none" # yourMachinefileName | none
+debugMode="off" # on | off| strict
+testHarnessPath="$CFDEM_TEST_HARNESS_PATH"
+runOctave="true"
+postproc="false"
+cleanCase="true"
+#--------------------------------------------------------------------------------#
+
+#- call function to run a parallel CFD-DEM case
+parCFDDEMrun $logpath $logfileName $casePath $headerText $solverName $nrProcs $machineFileName $debugMode
+
+
+if [ $runOctave == "true" ]
+ then
+ #------------------------------#
+ # octave
+
+ #- change path
+ cd octave
+
+ #- rmove old graph
+ rm *.png
+
+ #- run octave
+ octave checkVolFlow.m
+
+ #- show plot
+ eog volflow.png
+
+ #- copy log file to test harness
+ cp ../../$logfileName $testHarnessPath
+ cp *.png $testHarnessPath
+fi
+
+if [ $postproc == "true" ]
+ then
+
+ #- keep terminal open (if started in new terminal)
+ echo "simulation finished? ...press enter to proceed"
+ read
+
+ #- get VTK data from liggghts dump file
+ cd $casePath/DEM/post
+ python -i $CFDEM_LPP_DIR/lpp.py dump*.liggghts_restart
+
+ #- get VTK data from CFD sim
+ cd $casePath/CFD
+ foamToVTK #- serial run of foamToVTK
+ #source $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/functions.sh #- include functions
+ #pseudoParallelRun "foamToVTK" $nrPostProcProcessors #- pseudo parallel run of foamToVTK
+
+ #- start paraview
+ paraview
+
+ #- keep terminal open (if started in new terminal)
+ echo "...press enter to clean up case"
+ echo "press Ctr+C to keep data"
+ read
+
+fi
+
+#- clean up case
+if [ $cleanCase == "true" ]
+ then
+ #- clean up case
+ keepDEMrestart="false"
+ cleanCFDEMcase $casePath/CFD $keepDEMrestart
+fi
diff --git a/tutorials/cfdemSolverPiso/periodicChannel/parDEMrun.sh b/tutorials/cfdemSolverPiso/periodicChannel/parDEMrun.sh
new file mode 100755
index 0000000..85cc298
--- /dev/null
+++ b/tutorials/cfdemSolverPiso/periodicChannel/parDEMrun.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+#===================================================================#
+# DEMrun script for ErgunTestMPI testcase
+# init ErgunTestMPI
+# Christoph Goniva - July 2014
+#===================================================================#
+
+#- source CFDEM env vars
+. ~/.bashrc
+
+#- include functions
+source $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/functions.sh
+
+echo "starting DEM run in parallel..."
+#--------------------------------------------------------------------------------#
+#- define variables
+casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+logpath="$casePath"
+headerText="run_liggghts_init_DEM"
+logfileName="log_$headerText"
+solverName="in.liggghts_init"
+nrProcs=4
+machineFileName="none" # yourMachinefileName | none
+debugMode="off"
+#--------------------------------------------------------------------------------#
+
+#- call function to run DEM case
+parDEMrun $logpath $logfileName $casePath $headerText $solverName $nrProcs $machineFileName $debugMode
+
diff --git a/tutorials/cfdemSolverPiso/settlingTestMPI/Allrun.sh b/tutorials/cfdemSolverPiso/settlingTestMPI/Allrun.sh
index 3d81448..a0e7064 100755
--- a/tutorials/cfdemSolverPiso/settlingTestMPI/Allrun.sh
+++ b/tutorials/cfdemSolverPiso/settlingTestMPI/Allrun.sh
@@ -18,6 +18,18 @@ else
blockMesh
fi
+# keep old couplingProperties
+cp $casePath/CFD/constant/couplingProperties $casePath/CFD/constant/couplingProperties_backup
+
+# change to M2M
+#changeDictionary -constant -dict changeDicts/changeDictionaryDict_1 -case $casePath/CFD
+
+# change to MPI
+#changeDictionary -constant -dict changeDicts/changeDictionaryDict_2 -case $casePath/CFD
+
#- run parallel CFD-DEM in new terminal
#gnome-terminal --title='cfdemSolverPiso settlingTest CFD' -e "bash $casePath/parCFDDEMrun.sh"
. $casePath/parCFDDEMrun.sh
+
+# restore old couplingProperties
+mv $casePath/CFD/constant/couplingProperties_backup $casePath/CFD/constant/couplingProperties
diff --git a/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/constant/couplingProperties b/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/constant/couplingProperties
index e444ff4..79aaf7f 100755
--- a/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/constant/couplingProperties
+++ b/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/constant/couplingProperties
@@ -31,7 +31,7 @@ couplingInterval 100;
voidFractionModel divided;//centre;//bigParticle;//
-locateModel engine;///ijk;//standard;
+locateModel engine;//turboEngineM2M;//
meshMotionModel noMeshMotion;
@@ -41,7 +41,7 @@ IOModel basicIO; //trackIO; //
probeModel off;
-dataExchangeModel twoWayMPI;//twoWayFiles;//oneWayVTK;//
+dataExchangeModel twoWayMPI;//M2M;//
averagingModel dense;//dilute;//
@@ -137,7 +137,7 @@ oneWayVTKProps
maxNumberOfParticles 30000;
}
-twoWayMPIProps
+"(twoWayMPIProps|M2MProps)"
{
liggghtsPath "../DEM/in.liggghts_run";
}
@@ -166,7 +166,7 @@ bigParticleProps
scaleUpVol 1.0;
}
-engineProps
+"(engineProps|turboEngineM2MProps)"
{
treeSearch true;
}
diff --git a/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/constant/liggghtsCommands b/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/constant/liggghtsCommands
index 6517f08..cf09fe4 100644
--- a/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/constant/liggghtsCommands
+++ b/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/constant/liggghtsCommands
@@ -34,6 +34,7 @@ liggghtsCommandModels
writeLiggghtsProps
{
writeLast off;
+ path "../DEM/post/restart";
//writeName "name";
overwrite on;
verbose;
diff --git a/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/octave/settlingVelocity.m b/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/octave/settlingVelocity.m
index 4a9e226..d1eea02 100644
--- a/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/octave/settlingVelocity.m
+++ b/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/octave/settlingVelocity.m
@@ -1,3 +1,4 @@
+%
close all;
clear;
clc;
@@ -55,7 +56,8 @@ hold on
plot(t_sim,-U_sim(:,2),'rd-')
legend("analytical - Stokes","simulation - DiFelice?")
-print('cfdemSolverPiso_settlingTestMPI.eps','-deps2')
+%print('cfdemSolverPiso_settlingTestMPI.eps','-deps2')
+print -color "cfdemSolverPiso_settlingTestMPI.png"
%figure(2)
%plot(t_,X_)
diff --git a/tutorials/cfdemSolverPiso/settlingTestMPI/DEM/post/restart/.gitignore b/tutorials/cfdemSolverPiso/settlingTestMPI/DEM/post/restart/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/tutorials/cfdemSolverPiso/settlingTestMPI/parCFDDEMrun.sh b/tutorials/cfdemSolverPiso/settlingTestMPI/parCFDDEMrun.sh
index 2d622d7..c3d168a 100644
--- a/tutorials/cfdemSolverPiso/settlingTestMPI/parCFDDEMrun.sh
+++ b/tutorials/cfdemSolverPiso/settlingTestMPI/parCFDDEMrun.sh
@@ -37,17 +37,17 @@ if [ $runOctave == "true" ]
cd octave
#- rmove old graph
- rm cfdemSolverPiso_settlingTestMPI.eps
+ rm cfdemSolverPiso_settlingTestMPI.png
#- run octave
octave settlingVelocity.m
#- show plot
- evince cfdemSolverPiso_settlingTestMPI.eps
+ eog cfdemSolverPiso_settlingTestMPI.png
#- copy log file to test harness
cp ../../$logfileName $testHarnessPath
- cp cfdemSolverPiso_settlingTestMPI.eps $testHarnessPath
+ cp cfdemSolverPiso_settlingTestMPI.png $testHarnessPath
fi
if [ $postproc == "true" ]
@@ -79,17 +79,6 @@ fi
#- clean up case
if [ $cleanUp == "true" ]
then
- echo "deleting data at: $casePath :\n"
- source $WM_PROJECT_DIR/bin/tools/CleanFunctions
- cd $casePath/CFD
- cleanCase
- cd $casePath
- rm -r $casePath/CFD/clockData
- rm -r $casePath/DEM/post/*
- rm -r $casePath/DEM/liggghts.restartCFDEM*
- echo "done"
+ keepDEMrestart="false"
+ cleanCFDEMcase $casePath/CFD $keepDEMrestart
fi
-
-#- preserve post directory
-touch $casePath/DEM/post/.gitignore
-
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTemp/Allrun.sh b/tutorials/cfdemSolverPisoSTM/packedBedTemp/Allrun.sh
index 28a67b7..a237af7 100755
--- a/tutorials/cfdemSolverPisoSTM/packedBedTemp/Allrun.sh
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTemp/Allrun.sh
@@ -26,5 +26,4 @@ else
fi
#- run parallel CFD-DEM in new terminal
-#gnome-terminal --title='cfdemSolverPisoScalar packedBedTemp CFD' -e "bash $casePath/parCFDDEMrun.sh"
. $casePath/parCFDDEMrun.sh
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/constant/couplingProperties b/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/constant/couplingProperties
index 96c744d..2d56c8d 100644
--- a/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/constant/couplingProperties
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/constant/couplingProperties
@@ -41,7 +41,7 @@ regionModel allRegion;
IOModel basicIO;
-probeModel particleProbe;
+probeModel off;
dataExchangeModel twoWayMPI;
@@ -54,7 +54,7 @@ smoothingModel off;
forceModels
(
KochHillDrag
- scalarGeneralExchange
+ scalarGeneralExchange
Archimedes
);
@@ -124,9 +124,9 @@ scalarGeneralExchangeProps
implicitCoupleProps
{
- velFieldName "U";
- granVelFieldName "Us";
- voidfractionFieldName "voidfraction";
+ velFieldName "U";
+ granVelFieldName "Us";
+ voidfractionFieldName "voidfraction";
//KslLimit 0; // source switched off!!!
}
@@ -165,12 +165,6 @@ viscForceProps
interpolation true;
}
-oneWayVTKProps
-{
- couplingFilename "vtk_out%4.4d.vtk";
- maxNumberOfParticles 30000;
-}
-
twoWayMPIProps
{
maxNumberOfParticles 10000;
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/octave/totalPressureDropAndNusselt.m b/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/octave/totalPressureDropAndNusselt.m
index 7e70f72..dab6cb3 100644
--- a/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/octave/totalPressureDropAndNusselt.m
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/octave/totalPressureDropAndNusselt.m
@@ -15,10 +15,10 @@ dp = 0.022; % particle diameter
phip = 1; % sphericity
epsilon = 0.4436; % voidfraction
U = 1; % superficial velocity
-L = 1; % length of bed
-rhoG = 1.188; % density in kg/m
-nuG = 1.5e-3; % kinemat Visk in m2/s
-muG = nuG*rhoG % dynam visc in Pa s
+L = 1; % length of bed
+rhoG = 1.188; % density in kg/m
+nuG = 1.5e-3; % kinemat Visk in m2/s
+muG = nuG*rhoG % dynam visc in Pa s
dpErgun= L * (
150*((1-epsilon)^2/epsilon^3)*((muG*U)/(phip*dp)^2)
@@ -29,14 +29,8 @@ fprintf('final pressure drop = %f Pa\n',dpErgun)
%====================================%
% simulation data
%====================================%
-%path = '../probes/0/p'; % 2.1.x
-path = '../postProcessing/probes/0/p'; % 2.2.x
-
-%- nomenclature before 2.4.x
-%columns=3;
-%headerlines=5;
-%data = loaddata(path,columns,headerlines);
-%data=transpose(data);
+%path = '../probes/0/p'; % ext32
+path = '../postProcessing/probes/0/p';
data = load(path);
[x,y]=size(data);
@@ -54,7 +48,7 @@ title("Ergun pressure drop")
legend("analytical - Ergun","simulation")
%print('cfdemSolverPiso_settlingTest.eps','-deps2')
-print -color "cfdemSolverPisoScalar_pressureDrop.eps"
+print -color "cfdemSolverPisoSTM_pressureDrop.png"
%*********************************************************************%
% heat transfer
@@ -74,13 +68,8 @@ Tp = 600;
Np = 1005;
lambda = 0.0256;
-%path = '../probes/0/T'; % 2.1.x
-path = '../postProcessing/probes/0/T'; % 2.2.x
-%- nomenclature before 2.4.x
-%columns=5;
-%headerlines=5;
-%data = loaddata(path,columns,headerlines);
-%data=transpose(data);
+%path = '../probes/0/T'; % ext32
+path = '../postProcessing/probes/0/T';
data = load(path);
[x,y]=size(data);
@@ -130,14 +119,14 @@ plot(t_sim,Nu_LiMason,t_sim,Nu_sim)
title("Nusselt nr")
legend("analytical - ","simulation")
-%print('cfdemSolverPisoScalar_NusseltNr.eps','-deps2')
-print -color "cfdemSolverPisoScalar_Nusselt.eps"
+%print('cfdemSolverPisoSTM_NusseltNr.eps','-deps2')
+print -color "cfdemSolverPisoSTM_Nusselt.png"
figure(3)
plot(t_sim,Tin_sim,t_sim,Tout_sim)
title("inlet/outlet temperature")
legend("inlet","outlet")
-%print('cfdemSolverPisoScalar_NusseltNr.eps','-deps2')
-print -color "cfdemSolverPisoScalar_temperatures.eps"
+%print('cfdemSolverPisoSTM_NusseltNr.eps','-deps2')
+print -color "cfdemSolverPisoSTM_temperatures.png"
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/system/controlDict b/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/system/controlDict
index 1995970..8327c85 100644
--- a/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/system/controlDict
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/system/controlDict
@@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-application cfdemSolverPisoScalar;
+application cfdemSolverPisoSTM;
startFrom startTime;
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/system/fvSolution b/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/system/fvSolution
index c205e1a..a926d09 100644
--- a/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/system/fvSolution
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTemp/CFD/system/fvSolution
@@ -46,19 +46,16 @@ solvers
$U
}
- k
+ "(k|epsilon)"
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
- relTol 0;
+ relTol 0.1;
}
-
- epsilon
+ "(k|epsilon)Final"
{
- solver PBiCG;
- preconditioner DILU;
- tolerance 1e-05;
+ $epsilon;
relTol 0;
}
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTemp/DEM/in.liggghts_run b/tutorials/cfdemSolverPisoSTM/packedBedTemp/DEM/in.liggghts_run
index 96b882a..ca182fd 100644
--- a/tutorials/cfdemSolverPisoSTM/packedBedTemp/DEM/in.liggghts_run
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTemp/DEM/in.liggghts_run
@@ -57,7 +57,8 @@ fix cfd2 all couple/cfd/force
# heat transfer
fix ftco all property/global thermalConductivity peratomtype 5. # lambda in [W/(K*m)]
fix ftca all property/global thermalCapacity peratomtype 0.1 # cp in [J/(kg*K)]
-fix cfd3 all couple/cfd/convection T0 600
+fix cfd3 all couple/cfd/convection T0 600
+fix heattransfer all heat/gran initial_temperature 600.
# species transfer
fix specCap all property/global speciesCCapacity peratomtype 1.0
@@ -68,17 +69,12 @@ run 0
region total block INF INF INF INF INF INF units box
set region total property/atom Temp 600.
-
-# this one invokes heat transfer calculation, transfers per-particle temperature and adds convective heat flux to particles
-
-
-
# apply nve integration to all particles that are inserted as single particles
fix integr all nve/sphere
# output settings, include total thermal energy
compute rke all erotate/sphere
-thermo_style custom step atoms ke c_rke
+thermo_style custom step atoms ke c_rke vol f_heattransfer
thermo 1000
thermo_modify lost ignore norm no
compute_modify thermo_temp dynamic yes
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTemp/parCFDDEMrun.sh b/tutorials/cfdemSolverPisoSTM/packedBedTemp/parCFDDEMrun.sh
index c777d5b..6bd0049 100644
--- a/tutorials/cfdemSolverPisoSTM/packedBedTemp/parCFDDEMrun.sh
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTemp/parCFDDEMrun.sh
@@ -39,20 +39,20 @@ if [ $runOctave == "true" ]
cd octave
#- rmove old graph
- rm *.eps
+ rm *.png
#- run octave
octave totalPressureDropAndNusselt.m
#- show plots
- evince cfdemSolverPisoScalar_Nusselt.eps &
- evince cfdemSolverPisoScalar_pressureDrop.eps
+ eog cfdemSolverPisoSTM_Nusselt.png &
+ eog cfdemSolverPisoSTM_pressureDrop.png
#------------------------------#
#- copy log file to test harness
cp ../../$logfileName $testHarnessPath
- cp cfdemSolverPisoScalar_Nusselt.eps $testHarnessPath
- cp cfdemSolverPisoScalar_pressureDrop.eps $testHarnessPath
+ cp cfdemSolverPisoSTM_Nusselt.png $testHarnessPath
+ cp cfdemSolverPisoSTM_pressureDrop.png $testHarnessPath
fi
@@ -86,18 +86,9 @@ fi
#- clean up case
if [ $cleanup == "true" ]
then
- echo "deleting data at: $casePath : \n"
- source $WM_PROJECT_DIR/bin/tools/CleanFunctions
- cd $casePath/CFD
- cleanCase
- rm -r $casePath/CFD/clockData
- rm $casePath/DEM/post/*.*
- #rm -r $casePath/DEM/post/restart/*.*
- echo "done"
-
- #- preserve post directory
- touch $casePath/DEM/post/.gitignore
- touch $casePath/DEM/post/restart/.gitignore
+ #- clean up case
+ keepDEMrestart="false"
+ cleanCFDEMcase $casePath/CFD $keepDEMrestart
fi
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/Allrun.sh b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/Allrun.sh
new file mode 100755
index 0000000..a237af7
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/Allrun.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+#===================================================================#
+# allrun script for testcase as part of test routine
+# run settlingTest
+# Christoph Goniva - August 2011
+#===================================================================#
+
+#- define variables
+casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+
+# check if mesh was built
+if [ -f "$casePath/CFD/constant/polyMesh/points" ]; then
+ echo "mesh was built before - using old mesh"
+else
+ echo "mesh needs to be built"
+ cd $casePath/CFD
+ blockMesh
+fi
+
+if [ -f "$casePath/DEM/post/restart/liggghts.restart" ]; then
+ echo "LIGGGHTS init was run before - using existing restart file"
+else
+ #- run DEM init
+ $casePath/parDEMrun.sh
+fi
+
+#- run parallel CFD-DEM in new terminal
+. $casePath/parCFDDEMrun.sh
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/Ksl b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/Ksl
new file mode 100644
index 0000000..f44ecab
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/Ksl
@@ -0,0 +1,41 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ location "0";
+ object Ksl;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [1 -3 -1 0 0 0 0];
+
+internalField uniform 0;
+
+boundaryField
+{
+ wall
+ {
+ type zeroGradient;
+ //type fixedValue;
+ //value uniform 0;
+ }
+ inlet
+ {
+ type zeroGradient;
+ }
+ outlet
+ {
+ type zeroGradient;
+ }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/T b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/T
new file mode 100644
index 0000000..e18d73a
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/T
@@ -0,0 +1,40 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: http://www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ object T;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 0 0 1 0 0 0];
+
+internalField uniform 263;
+
+boundaryField
+{
+ inlet
+ {
+ type fixedValue;
+ value uniform 263;
+ }
+
+ outlet
+ {
+ type zeroGradient;
+ }
+
+ wall
+ {
+ type zeroGradient;
+ }
+}
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/TSource b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/TSource
new file mode 100644
index 0000000..2920828
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/TSource
@@ -0,0 +1,50 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ location "0.05";
+ object TSource;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 0 -1 1 0 0 0];
+
+// Tsource[K/s] = q[W/m3]/(rho[kg/m3]*cp[W*s/(kg*K)])
+// Q=10 W
+// V=0.01 m3
+// q=1000 W/m3
+// cp=1000
+// rho=1
+// --> Tsource = 1
+
+internalField uniform 0;
+
+boundaryField
+{
+ inlet
+ {
+ type zeroGradient;
+ value uniform 0;
+ }
+ outlet
+ {
+ type zeroGradient;
+ value uniform 0;
+ }
+ wall
+ {
+ type zeroGradient;
+ value uniform 0;
+ }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/U b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/U
new file mode 100644
index 0000000..b241f8d
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/U
@@ -0,0 +1,43 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: http://www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volVectorField;
+ object U;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 1 -1 0 0 0 0];
+
+internalField uniform (0 0 0.001);
+
+boundaryField
+{
+
+ wall
+ {
+ //type fixedValue;
+ //value uniform (0 0 0);
+ type slip;
+ }
+
+ inlet
+ {
+ type fixedValue;
+ value uniform (0 0 1);
+ }
+
+ outlet
+ {
+ type zeroGradient;
+ }
+}
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/Us b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/Us
new file mode 100644
index 0000000..1af9a05
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/Us
@@ -0,0 +1,45 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volVectorField;
+ location "0";
+ object Us;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 1 -1 0 0 0 0];
+
+internalField uniform (0 0 0);
+
+boundaryField
+{
+ wall
+ {
+ type zeroGradient;
+ //type fixedValue;
+ //value uniform (1 0 0);
+ }
+ inlet
+ {
+ type zeroGradient;
+ //type fixedValue;
+ //value uniform (1 0 0);;
+ }
+ outlet
+ {
+ type zeroGradient;
+ //type fixedValue;
+ //value uniform (1 0 0);
+ }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/epsilon b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/epsilon
new file mode 100644
index 0000000..37ffab5
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/epsilon
@@ -0,0 +1,48 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ location "0";
+ object epsilon;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 2 -3 0 0 0 0];
+
+internalField uniform 0.003;
+
+boundaryField
+{
+ wall
+ {
+ type epsilonWallFunction;
+ Cmu 0.09;
+ kappa 0.41;
+ E 9.8;
+ value uniform 0.003;
+ }
+ outlet
+ {
+ type inletOutlet;
+ inletValue uniform 0.003;
+ value uniform 0.003;
+ }
+ inlet
+ {
+ /*type turbulentMixingLengthDissipationRateInlet;
+ mixingLength 0.005;
+ value uniform 0.003;*/
+ type zeroGradient;
+ }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/k b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/k
new file mode 100644
index 0000000..bbf04af
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/k
@@ -0,0 +1,45 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ location "0";
+ object k;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 2 -2 0 0 0 0];
+
+internalField uniform 0.001;
+
+boundaryField
+{
+ wall
+ {
+ type kqRWallFunction;
+ value uniform 0.001;
+ }
+ outlet
+ {
+ type inletOutlet;
+ inletValue uniform 0.001;
+ value uniform 0.001;
+ }
+ inlet
+ {
+ /*type turbulentIntensityKineticEnergyInlet;
+ intensity 0.05;
+ value uniform 0.001;*/
+ type zeroGradient;
+ }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/nut b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/nut
new file mode 100644
index 0000000..bc53fb9
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/nut
@@ -0,0 +1,45 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ location "0";
+ object nut;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 2 -1 0 0 0 0];
+
+internalField uniform 0;
+
+boundaryField
+{
+ wall
+ {
+ type nutkWallFunction;
+ Cmu 0.09;
+ kappa 0.41;
+ E 9.8;
+ value uniform 0;
+ }
+ outlet
+ {
+ type calculated;
+ value uniform 0;
+ }
+ inlet
+ {
+ type calculated;
+ value uniform 0;
+ }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/p b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/p
new file mode 100644
index 0000000..99e3041
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/p
@@ -0,0 +1,45 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: http://www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ object p;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 2 -2 0 0 0 0];
+
+internalField uniform 0;
+
+boundaryField
+{
+
+ wall
+ {
+// type fixedFluxPressure;
+// phi phi;
+ type zeroGradient;
+ }
+
+ inlet
+ {
+// type fixedFluxPressure;
+// phi phi;
+ type zeroGradient;
+ }
+ outlet
+ {
+ //type zeroGradient;
+ type fixedValue;
+ value uniform 0;
+ }
+}
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/rho b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/rho
new file mode 100644
index 0000000..af41954
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/rho
@@ -0,0 +1,39 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: http://www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ object rho;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [1 -3 0 0 0 0 0];
+
+internalField uniform 1.188;
+
+boundaryField
+{
+
+ wall
+ {
+ type zeroGradient;
+ }
+
+ inlet
+ {
+ type zeroGradient;
+ }
+ outlet
+ {
+ type zeroGradient;
+ }
+}
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/voidfraction b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/voidfraction
new file mode 100644
index 0000000..3fdf6da
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/0/voidfraction
@@ -0,0 +1,41 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class volScalarField;
+ location "0";
+ object voidfraction;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 0 0 0 0 0 0];
+
+internalField uniform 1;
+
+boundaryField
+{
+ wall
+ {
+ type zeroGradient;
+ }
+ outlet
+ {
+ type fixedValue;
+ value uniform 1;
+ }
+ inlet
+ {
+ type fixedValue;
+ value uniform 1;
+ }
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/RASProperties b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/RASProperties
new file mode 100644
index 0000000..81b1ec9
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/RASProperties
@@ -0,0 +1,25 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "constant";
+ object RASProperties;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+RASModel kEpsilon;
+
+turbulence on;
+
+printCoeffs on;
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/couplingProperties b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/couplingProperties
new file mode 100644
index 0000000..a8958e1
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/couplingProperties
@@ -0,0 +1,185 @@
+/*---------------------------------------------------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.4 |
+| \\ / A nd | Web: http://www.openfoam.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+
+
+FoamFile
+{
+ version 2.0;
+ format ascii;
+
+ root "";
+ case "";
+ instance "";
+ local "";
+
+ class dictionary;
+ object couplingProperties;
+}
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+//===========================================================================//
+// sub-models & settings
+solveFlow true;
+
+modelType B; // A or B
+
+couplingInterval 500;
+
+voidFractionModel divided;
+
+locateModel engine;
+
+meshMotionModel noMeshMotion;
+
+regionModel allRegion;
+
+IOModel basicIO;
+
+probeModel off;//particleProbe;
+
+dataExchangeModel twoWayMPI;
+
+averagingModel dense;//dilute;//
+
+clockModel off;//standardClock;//
+
+smoothingModel off;
+
+forceModels
+(
+ KochHillDrag
+ scalarGeneralExchange
+ Archimedes
+);
+
+momCoupleModels
+(
+ implicitCouple
+);
+
+//turbulenceModelType RASProperties;//LESProperties;//OFversion24x
+turbulenceModelType turbulenceProperties;//OFversion30x
+
+//===========================================================================//
+// sub-model properties
+particleProbeProps
+{
+ particleIDsToSample (0 0);
+ verboseToFile; //main switch
+ printEvery 20; //print every this many CFD time steps
+ sampleAll; //Activate sampling for all particles
+ probeDebug; //probes additional fields
+ includePosition; //will include particle position in the output file
+ writePrecision 4; //number of significant digits to print
+}
+
+scalarGeneralExchangeProps
+{
+/* verbose true;*/
+ velFieldName "U";
+ voidfractionFieldName "voidfraction";
+ tempFieldName "T";
+ partTempName "Temp";
+ //Option 1: cool with implicit coupling
+/* partHeatTransCoeffName "heatTransCoeff"; //switch off for explicit coupling, e.g., to ParScale */
+/* partHeatFluidName "heatFluid"; //switch off for explicit coupling, e.g., to ParScale */
+
+ //Option 2: cool with explicit setting of flux
+ partHeatFluxName "convectiveHeatFlux"; //switch off for implicit coupling, e.g., to ParScale
+
+ lambda 0.0256;
+ //Cp 1007;
+ Prandtl 70.097; //WARNING: this is not a typical gas - just for testing purposes!
+ useLiMason true;
+
+ //Lists with information for each species FOR THE PARTICLES
+ //MUST be in the same order as eulerian species in 'scalarTransportProperties'
+ //MUST correspond to property/atom in liggghts (use 'couple/cfd/speciesConvection' to auto-generate individual fields)
+ partSpeciesNames
+ (
+ );
+ partSpeciesFluxNames
+ (
+ );
+ partSpeciesTransCoeffNames
+ (
+ );
+ partSpeciesFluidNames
+ (
+ );
+ DMolecular
+ (
+ );
+ //parameters for the vapor pressure model
+ parameterVap
+ (
+ 0
+ );
+}
+
+implicitCoupleProps
+{
+ velFieldName "U";
+ granVelFieldName "Us";
+ voidfractionFieldName "voidfraction";
+ //KslLimit 0; // source switched off!!!
+}
+
+explicitCoupleProps
+{
+ //fLimit (0 0 0);
+}
+
+KochHillDragProps
+{
+ velFieldName "U";
+ voidfractionFieldName "voidfraction";
+}
+
+ArchimedesProps
+{
+ gravityFieldName "g";
+}
+gradPForceProps
+{
+ pFieldName "p";
+ voidfractionFieldName "voidfraction";
+ velocityFieldName "U";
+ //interpolation true;
+}
+
+viscForceProps
+{
+ velocityFieldName "U";
+ interpolation true;
+}
+
+twoWayMPIProps
+{
+ maxNumberOfParticles 10000;
+ liggghtsPath "../DEM/in.liggghts_run";
+}
+
+centreProps
+{
+ alphaMin 0.1;
+}
+
+dividedProps
+{
+ alphaMin 0.4;
+ scaleUpVol 1.0;
+}
+
+engineProps
+{
+ treeSearch true;
+}
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/g b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/g
new file mode 100644
index 0000000..769d982
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/g
@@ -0,0 +1,22 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class uniformDimensionedVectorField;
+ location "constant";
+ object g;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+dimensions [0 1 -2 0 0 0 0];
+value ( 0 -9.81 0);
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/liggghtsCommands b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/liggghtsCommands
new file mode 100644
index 0000000..abff2e2
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/liggghtsCommands
@@ -0,0 +1,57 @@
+/*---------------------------------------------------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.4 |
+| \\ / A nd | Web: http://www.openfoam.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+
+
+FoamFile
+{
+ version 2.0;
+ format ascii;
+
+ root "";
+ case "";
+ instance "";
+ local "";
+
+ class dictionary;
+ object liggghtsCommands;
+}
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+liggghtsCommandModels
+(
+ runLiggghts
+ execute
+);
+
+// reset particle temperature every coupling step
+executeProps1
+{
+ command
+ (
+ set
+ region
+ total
+ noBlanks
+ property
+ slash
+ atom // former peratom
+ blanks
+ Temp
+ number
+ );
+ scalars
+ (
+ 600
+ );
+ runFirst off;
+ runLast off;
+ runEveryCouplingStep on;
+}
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/polyMesh/blockMeshDict b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/polyMesh/blockMeshDict
new file mode 100644
index 0000000..d47576f
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/polyMesh/blockMeshDict
@@ -0,0 +1,63 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: http://www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ object blockMeshDict;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+convertToMeters 1.;
+
+vertices
+(
+ (0. 0 -0.5)
+ (0.1 0 -0.5)
+ (0.1 0.1 -0.5)
+ (0. 0.1 -0.5)
+ (0. 0 1.5)
+ (0.1 0 1.5)
+ (0.1 0.1 1.5)
+ (0. 0.1 1.5)
+);
+
+blocks
+(
+ hex (0 1 2 3 4 5 6 7) (2 2 33) simpleGrading (1 1 1)
+);
+
+edges
+(
+);
+
+patches
+(
+ wall inlet
+ (
+ (0 3 2 1)
+ )
+ wall outlet
+ (
+ (4 5 6 7)
+ )
+ wall wall
+ (
+ (3 7 6 2)
+ (1 5 4 0)
+ (0 4 7 3)
+ (2 6 5 1)
+ )
+);
+
+mergePatchPairs
+(
+);
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/scalarTransportProperties b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/scalarTransportProperties
new file mode 100644
index 0000000..3ec2f67
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/scalarTransportProperties
@@ -0,0 +1,54 @@
+/*---------------------------------------------------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.4 |
+| \\ / A nd | Web: http://www.openfoam.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+
+
+FoamFile
+{
+ version 2.0;
+ format ascii;
+
+ root "";
+ case "";
+ instance "";
+ local "";
+
+ class dictionary;
+ object scalarTransportProperties;
+}
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+//===========================================================================//
+// sub-models & settings
+
+scalarTransportModel generalManual;
+
+generalManualProps
+{
+ ScT 0.7; //optional
+ PrT 0.7; //optional
+
+ //in case the user does not want to generate a separate field,
+ //the volumetric heat capacity can be set here (as a global constant)
+ cpVolumetric 1196; //this is the mixture density times the heat capacity
+ //must have dimensions [J/K/(m_voidspace)³]
+ //will only be used if cpVolumetricFieldName, or updateMixtureProperties = false
+
+// cpVolumetricFieldName "cpRho";
+// rhoMixFieldName "rhoMix";
+
+ eulerianFields
+ (
+ //C
+ T
+ );
+
+ // fvOptionsC {};
+ fvOptionsT {};
+};
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/transportProperties b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/transportProperties
new file mode 100644
index 0000000..26794a1
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/transportProperties
@@ -0,0 +1,22 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "constant";
+ object transportProperties;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+transportModel Newtonian;
+
+nu nu [ 0 2 -1 0 0 0 0 ] 1.5e-03;
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/turbulenceProperties b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/turbulenceProperties
new file mode 100644
index 0000000..a3dfd6b
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/constant/turbulenceProperties
@@ -0,0 +1,31 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "constant";
+ object turbulenceProperties;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+//simulationType RASModel;//OFversion24x
+simulationType RAS;//OFversion30x
+
+RAS
+{
+ RASModel kEpsilon;
+
+ turbulence on;
+
+ printCoeffs on;
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/octave/totalPressureDropAndNusselt.m b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/octave/totalPressureDropAndNusselt.m
new file mode 100644
index 0000000..f5924cc
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/octave/totalPressureDropAndNusselt.m
@@ -0,0 +1,132 @@
+close all;
+clear;
+clc;
+
+
+%*********************************************************************%
+% pressure drop
+%*********************************************************************%
+
+%===================
+% Ergun Equation
+%===================
+fprintf('\ncalc Ergun eqn:\n')
+dp = 0.022; % particle diameter
+phip = 1; % sphericity
+epsilon = 0.4436; % voidfraction
+U = 1; % superficial velocity
+L = 1; % length of bed
+rhoG = 1.188; % density in kg/m
+nuG = 1.5e-3; % kinemat Visk in m2/s
+muG = nuG*rhoG % dynam visc in Pa s
+
+dpErgun= L * (
+ 150*((1-epsilon)^2/epsilon^3)*((muG*U)/(phip*dp)^2)
+ +1.75*((1-epsilon)/epsilon^3)*((rhoG*U^2)/(phip*dp))
+ )
+
+fprintf('final pressure drop = %f Pa\n',dpErgun)
+%====================================%
+% simulation data
+%====================================%
+%path = '../probes/0/p'; % ext32
+path = '../postProcessing/probes/0/p';
+
+data = load(path);
+[x,y]=size(data);
+dp_sim = data(:,2)-data(:,y);
+t_sim = data(:,1);
+fprintf('final pressureDrop of sim = %f Pa\n',dp_sim(length(dp_sim)) )
+
+%====================================%
+% plot data
+%====================================%
+figure(1)
+plot(t_sim,dpErgun*ones(1,length(t_sim)),t_sim,dp_sim)
+axis([0,0.7,0,dpErgun(length(dpErgun))])
+title("Ergun pressure drop")
+legend("analytical - Ergun","simulation")
+
+%print('cfdemSolverPiso_settlingTest.eps','-deps2')
+print -color "cfdemSolverPisoSTM_pressureDrop.png"
+
+%*********************************************************************%
+% heat transfer
+%*********************************************************************%
+
+%====================================%
+% simulation data
+%====================================%
+
+cp = 1007;
+A = 0.01;
+U = U;
+alpha = epsilon;
+nuF = nuG;
+rhoF = rhoG;
+Tp = 600;
+Np = 1005;
+lambda = 0.0256;
+
+%path = '../probes/0/T'; % ext32
+path = '../postProcessing/probes/0/T';
+
+data = load(path);
+[x,y]=size(data);
+Tin_sim = data(:,2); % mean temp inlet temp [K]
+Tout_sim = data(:,3); % mean temp outlet temp [K]
+t_sim = data(:,1);
+fprintf('final inlet temperature of sim = %f K\n',Tin_sim(length(Tin_sim)) )
+fprintf('final outlet temperature of sim = %f K\n',Tout_sim(length(Tout_sim)) )
+
+
+uF = U/alpha; % interstitial velocity [m/s]
+ReP_sim = uF.*ones(length(t_sim),1)*dp/nuF; % ReynoldsNr based in dp
+Pr = nuF*rhoF*cp/lambda;
+qin_sim = U * A * rhoF * cp .* Tin_sim;
+qout_sim = U * A * rhoF * cp .* Tout_sim;
+q_sim = (qout_sim-qin_sim); % particle fluid heat flux [W] (out-in)
+Tmean_sim = 0.5*(Tin_sim+Tout_sim); % mean temp of fluid
+deltaT = Tp - Tmean_sim; % mean temp diff between partcles and fluid
+h=q_sim./(Np*dp^2*pi*deltaT); % average particle-fluid heat transfer coeff [W/(m2*K)]
+Nu_sim = h.*dp/lambda; % mean particle Nusselt nr
+t_sim = data(:,1);
+fprintf('q_sim = %f \n',q_sim(length(Nu_sim)))
+fprintf('Nu_sim = %f \n',Nu_sim(length(Nu_sim)))
+
+%===================
+% Nusselt Equation
+%===================
+fprintf('\ncalc Nusselt eqn:\n')
+
+%% following Li and Mason
+n=3.5
+if (ReP_sim(length(uF)) <200)
+ Nu_LiMason=2.*ones(length(uF),1)+0.6*alpha^n.*ReP_sim.^0.5.*Pr^0.33;
+elseif (ReP_sim(length(uF)) <1500)
+ Nu_LiMason=2.*ones(length(uF),1)+0.5*alpha^n.*ReP_sim.^0.5*Pr^0.33 + 0.02*alpha^n.*ReP_sim.^0.8.*Pr^0.33;
+else
+ Nu_LiMason=2.*ones(length(uF),1) +0.000045*alpha^n.*ReP_sim.^1.8;
+end
+
+fprintf('Nu_LiMason = %f \n',Nu_LiMason(length(Nu_LiMason)))
+
+%====================================%
+% plot data
+%====================================%
+figure(2)
+plot(t_sim,Nu_LiMason,t_sim,Nu_sim)
+title("Nusselt nr")
+legend("analytical - ","simulation")
+
+%print('cfdemSolverPisoScalar_NusseltNr.eps','-deps2')
+print -color "cfdemSolverPisoSTM_Nusselt.png"
+
+figure(3)
+plot(t_sim,Tin_sim,t_sim,Tout_sim)
+title("inlet/outlet temperature")
+legend("inlet","outlet")
+
+%print('cfdemSolverPisoScalar_NusseltNr.eps','-deps2')
+print -color "cfdemSolverPisoSTM_temperatures.png"
+
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/0/heat.json b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/0/heat.json
new file mode 100644
index 0000000..1cdaffe
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/0/heat.json
@@ -0,0 +1,1011 @@
+{
+ "name": "heat",
+ "data":
+ {
+ "1": [293,293,293,293,293,293,293,293,293,293, 323],
+ "2": [293,293,293,293,293,293,293,293,293,293, 323],
+ "3": [293,293,293,293,293,293,293,293,293,293, 323],
+ "4": [293,293,293,293,293,293,293,293,293,293, 323],
+ "5": [293,293,293,293,293,293,293,293,293,293, 323],
+ "6": [293,293,293,293,293,293,293,293,293,293, 323],
+ "7": [293,293,293,293,293,293,293,293,293,293, 323],
+ "8": [293,293,293,293,293,293,293,293,293,293, 323],
+ "9": [293,293,293,293,293,293,293,293,293,293, 323],
+ "10": [293,293,293,293,293,293,293,293,293,293, 323],
+ "11": [293,293,293,293,293,293,293,293,293,293, 323],
+ "12": [293,293,293,293,293,293,293,293,293,293, 323],
+ "13": [293,293,293,293,293,293,293,293,293,293, 323],
+ "14": [293,293,293,293,293,293,293,293,293,293, 323],
+ "15": [293,293,293,293,293,293,293,293,293,293, 323],
+ "16": [293,293,293,293,293,293,293,293,293,293, 323],
+ "17": [293,293,293,293,293,293,293,293,293,293, 323],
+ "18": [293,293,293,293,293,293,293,293,293,293, 323],
+ "19": [293,293,293,293,293,293,293,293,293,293, 323],
+ "20": [293,293,293,293,293,293,293,293,293,293, 323],
+ "21": [293,293,293,293,293,293,293,293,293,293, 323],
+ "22": [293,293,293,293,293,293,293,293,293,293, 323],
+ "23": [293,293,293,293,293,293,293,293,293,293, 323],
+ "24": [293,293,293,293,293,293,293,293,293,293, 323],
+ "25": [293,293,293,293,293,293,293,293,293,293, 323],
+ "26": [293,293,293,293,293,293,293,293,293,293, 323],
+ "27": [293,293,293,293,293,293,293,293,293,293, 323],
+ "28": [293,293,293,293,293,293,293,293,293,293, 323],
+ "29": [293,293,293,293,293,293,293,293,293,293, 323],
+ "30": [293,293,293,293,293,293,293,293,293,293, 323],
+ "31": [293,293,293,293,293,293,293,293,293,293, 323],
+ "32": [293,293,293,293,293,293,293,293,293,293, 323],
+ "33": [293,293,293,293,293,293,293,293,293,293, 323],
+ "34": [293,293,293,293,293,293,293,293,293,293, 323],
+ "35": [293,293,293,293,293,293,293,293,293,293, 323],
+ "36": [293,293,293,293,293,293,293,293,293,293, 323],
+ "37": [293,293,293,293,293,293,293,293,293,293, 323],
+ "38": [293,293,293,293,293,293,293,293,293,293, 323],
+ "39": [293,293,293,293,293,293,293,293,293,293, 323],
+ "40": [293,293,293,293,293,293,293,293,293,293, 323],
+ "41": [293,293,293,293,293,293,293,293,293,293, 323],
+ "42": [293,293,293,293,293,293,293,293,293,293, 323],
+ "43": [293,293,293,293,293,293,293,293,293,293, 323],
+ "44": [293,293,293,293,293,293,293,293,293,293, 323],
+ "45": [293,293,293,293,293,293,293,293,293,293, 323],
+ "46": [293,293,293,293,293,293,293,293,293,293, 323],
+ "47": [293,293,293,293,293,293,293,293,293,293, 323],
+ "48": [293,293,293,293,293,293,293,293,293,293, 323],
+ "49": [293,293,293,293,293,293,293,293,293,293, 323],
+ "50": [293,293,293,293,293,293,293,293,293,293, 323],
+ "51": [293,293,293,293,293,293,293,293,293,293, 323],
+ "52": [293,293,293,293,293,293,293,293,293,293, 323],
+ "53": [293,293,293,293,293,293,293,293,293,293, 323],
+ "54": [293,293,293,293,293,293,293,293,293,293, 323],
+ "55": [293,293,293,293,293,293,293,293,293,293, 323],
+ "56": [293,293,293,293,293,293,293,293,293,293, 323],
+ "57": [293,293,293,293,293,293,293,293,293,293, 323],
+ "58": [293,293,293,293,293,293,293,293,293,293, 323],
+ "59": [293,293,293,293,293,293,293,293,293,293, 323],
+ "60": [293,293,293,293,293,293,293,293,293,293, 323],
+ "61": [293,293,293,293,293,293,293,293,293,293, 323],
+ "62": [293,293,293,293,293,293,293,293,293,293, 323],
+ "63": [293,293,293,293,293,293,293,293,293,293, 323],
+ "64": [293,293,293,293,293,293,293,293,293,293, 323],
+ "65": [293,293,293,293,293,293,293,293,293,293, 323],
+ "66": [293,293,293,293,293,293,293,293,293,293, 323],
+ "67": [293,293,293,293,293,293,293,293,293,293, 323],
+ "68": [293,293,293,293,293,293,293,293,293,293, 323],
+ "69": [293,293,293,293,293,293,293,293,293,293, 323],
+ "70": [293,293,293,293,293,293,293,293,293,293, 323],
+ "71": [293,293,293,293,293,293,293,293,293,293, 323],
+ "72": [293,293,293,293,293,293,293,293,293,293, 323],
+ "73": [293,293,293,293,293,293,293,293,293,293, 323],
+ "74": [293,293,293,293,293,293,293,293,293,293, 323],
+ "75": [293,293,293,293,293,293,293,293,293,293, 323],
+ "76": [293,293,293,293,293,293,293,293,293,293, 323],
+ "77": [293,293,293,293,293,293,293,293,293,293, 323],
+ "78": [293,293,293,293,293,293,293,293,293,293, 323],
+ "79": [293,293,293,293,293,293,293,293,293,293, 323],
+ "80": [293,293,293,293,293,293,293,293,293,293, 323],
+ "81": [293,293,293,293,293,293,293,293,293,293, 323],
+ "82": [293,293,293,293,293,293,293,293,293,293, 323],
+ "83": [293,293,293,293,293,293,293,293,293,293, 323],
+ "84": [293,293,293,293,293,293,293,293,293,293, 323],
+ "85": [293,293,293,293,293,293,293,293,293,293, 323],
+ "86": [293,293,293,293,293,293,293,293,293,293, 323],
+ "87": [293,293,293,293,293,293,293,293,293,293, 323],
+ "88": [293,293,293,293,293,293,293,293,293,293, 323],
+ "89": [293,293,293,293,293,293,293,293,293,293, 323],
+ "90": [293,293,293,293,293,293,293,293,293,293, 323],
+ "91": [293,293,293,293,293,293,293,293,293,293, 323],
+ "92": [293,293,293,293,293,293,293,293,293,293, 323],
+ "93": [293,293,293,293,293,293,293,293,293,293, 323],
+ "94": [293,293,293,293,293,293,293,293,293,293, 323],
+ "95": [293,293,293,293,293,293,293,293,293,293, 323],
+ "96": [293,293,293,293,293,293,293,293,293,293, 323],
+ "97": [293,293,293,293,293,293,293,293,293,293, 323],
+ "98": [293,293,293,293,293,293,293,293,293,293, 323],
+ "99": [293,293,293,293,293,293,293,293,293,293, 323],
+ "100": [293,293,293,293,293,293,293,293,293,293, 323],
+ "101": [293,293,293,293,293,293,293,293,293,293, 323],
+ "102": [293,293,293,293,293,293,293,293,293,293, 323],
+ "103": [293,293,293,293,293,293,293,293,293,293, 323],
+ "104": [293,293,293,293,293,293,293,293,293,293, 323],
+ "105": [293,293,293,293,293,293,293,293,293,293, 323],
+ "106": [293,293,293,293,293,293,293,293,293,293, 323],
+ "107": [293,293,293,293,293,293,293,293,293,293, 323],
+ "108": [293,293,293,293,293,293,293,293,293,293, 323],
+ "109": [293,293,293,293,293,293,293,293,293,293, 323],
+ "110": [293,293,293,293,293,293,293,293,293,293, 323],
+ "111": [293,293,293,293,293,293,293,293,293,293, 323],
+ "112": [293,293,293,293,293,293,293,293,293,293, 323],
+ "113": [293,293,293,293,293,293,293,293,293,293, 323],
+ "114": [293,293,293,293,293,293,293,293,293,293, 323],
+ "115": [293,293,293,293,293,293,293,293,293,293, 323],
+ "116": [293,293,293,293,293,293,293,293,293,293, 323],
+ "117": [293,293,293,293,293,293,293,293,293,293, 323],
+ "118": [293,293,293,293,293,293,293,293,293,293, 323],
+ "119": [293,293,293,293,293,293,293,293,293,293, 323],
+ "120": [293,293,293,293,293,293,293,293,293,293, 323],
+ "121": [293,293,293,293,293,293,293,293,293,293, 323],
+ "122": [293,293,293,293,293,293,293,293,293,293, 323],
+ "123": [293,293,293,293,293,293,293,293,293,293, 323],
+ "124": [293,293,293,293,293,293,293,293,293,293, 323],
+ "125": [293,293,293,293,293,293,293,293,293,293, 323],
+ "126": [293,293,293,293,293,293,293,293,293,293, 323],
+ "127": [293,293,293,293,293,293,293,293,293,293, 323],
+ "128": [293,293,293,293,293,293,293,293,293,293, 323],
+ "129": [293,293,293,293,293,293,293,293,293,293, 323],
+ "130": [293,293,293,293,293,293,293,293,293,293, 323],
+ "131": [293,293,293,293,293,293,293,293,293,293, 323],
+ "132": [293,293,293,293,293,293,293,293,293,293, 323],
+ "133": [293,293,293,293,293,293,293,293,293,293, 323],
+ "134": [293,293,293,293,293,293,293,293,293,293, 323],
+ "135": [293,293,293,293,293,293,293,293,293,293, 323],
+ "136": [293,293,293,293,293,293,293,293,293,293, 323],
+ "137": [293,293,293,293,293,293,293,293,293,293, 323],
+ "138": [293,293,293,293,293,293,293,293,293,293, 323],
+ "139": [293,293,293,293,293,293,293,293,293,293, 323],
+ "140": [293,293,293,293,293,293,293,293,293,293, 323],
+ "141": [293,293,293,293,293,293,293,293,293,293, 323],
+ "142": [293,293,293,293,293,293,293,293,293,293, 323],
+ "143": [293,293,293,293,293,293,293,293,293,293, 323],
+ "144": [293,293,293,293,293,293,293,293,293,293, 323],
+ "145": [293,293,293,293,293,293,293,293,293,293, 323],
+ "146": [293,293,293,293,293,293,293,293,293,293, 323],
+ "147": [293,293,293,293,293,293,293,293,293,293, 323],
+ "148": [293,293,293,293,293,293,293,293,293,293, 323],
+ "149": [293,293,293,293,293,293,293,293,293,293, 323],
+ "150": [293,293,293,293,293,293,293,293,293,293, 323],
+ "151": [293,293,293,293,293,293,293,293,293,293, 323],
+ "152": [293,293,293,293,293,293,293,293,293,293, 323],
+ "153": [293,293,293,293,293,293,293,293,293,293, 323],
+ "154": [293,293,293,293,293,293,293,293,293,293, 323],
+ "155": [293,293,293,293,293,293,293,293,293,293, 323],
+ "156": [293,293,293,293,293,293,293,293,293,293, 323],
+ "157": [293,293,293,293,293,293,293,293,293,293, 323],
+ "158": [293,293,293,293,293,293,293,293,293,293, 323],
+ "159": [293,293,293,293,293,293,293,293,293,293, 323],
+ "160": [293,293,293,293,293,293,293,293,293,293, 323],
+ "161": [293,293,293,293,293,293,293,293,293,293, 323],
+ "162": [293,293,293,293,293,293,293,293,293,293, 323],
+ "163": [293,293,293,293,293,293,293,293,293,293, 323],
+ "164": [293,293,293,293,293,293,293,293,293,293, 323],
+ "165": [293,293,293,293,293,293,293,293,293,293, 323],
+ "166": [293,293,293,293,293,293,293,293,293,293, 323],
+ "167": [293,293,293,293,293,293,293,293,293,293, 323],
+ "168": [293,293,293,293,293,293,293,293,293,293, 323],
+ "169": [293,293,293,293,293,293,293,293,293,293, 323],
+ "170": [293,293,293,293,293,293,293,293,293,293, 323],
+ "171": [293,293,293,293,293,293,293,293,293,293, 323],
+ "172": [293,293,293,293,293,293,293,293,293,293, 323],
+ "173": [293,293,293,293,293,293,293,293,293,293, 323],
+ "174": [293,293,293,293,293,293,293,293,293,293, 323],
+ "175": [293,293,293,293,293,293,293,293,293,293, 323],
+ "176": [293,293,293,293,293,293,293,293,293,293, 323],
+ "177": [293,293,293,293,293,293,293,293,293,293, 323],
+ "178": [293,293,293,293,293,293,293,293,293,293, 323],
+ "179": [293,293,293,293,293,293,293,293,293,293, 323],
+ "180": [293,293,293,293,293,293,293,293,293,293, 323],
+ "181": [293,293,293,293,293,293,293,293,293,293, 323],
+ "182": [293,293,293,293,293,293,293,293,293,293, 323],
+ "183": [293,293,293,293,293,293,293,293,293,293, 323],
+ "184": [293,293,293,293,293,293,293,293,293,293, 323],
+ "185": [293,293,293,293,293,293,293,293,293,293, 323],
+ "186": [293,293,293,293,293,293,293,293,293,293, 323],
+ "187": [293,293,293,293,293,293,293,293,293,293, 323],
+ "188": [293,293,293,293,293,293,293,293,293,293, 323],
+ "189": [293,293,293,293,293,293,293,293,293,293, 323],
+ "190": [293,293,293,293,293,293,293,293,293,293, 323],
+ "191": [293,293,293,293,293,293,293,293,293,293, 323],
+ "192": [293,293,293,293,293,293,293,293,293,293, 323],
+ "193": [293,293,293,293,293,293,293,293,293,293, 323],
+ "194": [293,293,293,293,293,293,293,293,293,293, 323],
+ "195": [293,293,293,293,293,293,293,293,293,293, 323],
+ "196": [293,293,293,293,293,293,293,293,293,293, 323],
+ "197": [293,293,293,293,293,293,293,293,293,293, 323],
+ "198": [293,293,293,293,293,293,293,293,293,293, 323],
+ "199": [293,293,293,293,293,293,293,293,293,293, 323],
+ "200": [293,293,293,293,293,293,293,293,293,293, 323],
+ "201": [293,293,293,293,293,293,293,293,293,293, 323],
+ "202": [293,293,293,293,293,293,293,293,293,293, 323],
+ "203": [293,293,293,293,293,293,293,293,293,293, 323],
+ "204": [293,293,293,293,293,293,293,293,293,293, 323],
+ "205": [293,293,293,293,293,293,293,293,293,293, 323],
+ "206": [293,293,293,293,293,293,293,293,293,293, 323],
+ "207": [293,293,293,293,293,293,293,293,293,293, 323],
+ "208": [293,293,293,293,293,293,293,293,293,293, 323],
+ "209": [293,293,293,293,293,293,293,293,293,293, 323],
+ "210": [293,293,293,293,293,293,293,293,293,293, 323],
+ "211": [293,293,293,293,293,293,293,293,293,293, 323],
+ "212": [293,293,293,293,293,293,293,293,293,293, 323],
+ "213": [293,293,293,293,293,293,293,293,293,293, 323],
+ "214": [293,293,293,293,293,293,293,293,293,293, 323],
+ "215": [293,293,293,293,293,293,293,293,293,293, 323],
+ "216": [293,293,293,293,293,293,293,293,293,293, 323],
+ "217": [293,293,293,293,293,293,293,293,293,293, 323],
+ "218": [293,293,293,293,293,293,293,293,293,293, 323],
+ "219": [293,293,293,293,293,293,293,293,293,293, 323],
+ "220": [293,293,293,293,293,293,293,293,293,293, 323],
+ "221": [293,293,293,293,293,293,293,293,293,293, 323],
+ "222": [293,293,293,293,293,293,293,293,293,293, 323],
+ "223": [293,293,293,293,293,293,293,293,293,293, 323],
+ "224": [293,293,293,293,293,293,293,293,293,293, 323],
+ "225": [293,293,293,293,293,293,293,293,293,293, 323],
+ "226": [293,293,293,293,293,293,293,293,293,293, 323],
+ "227": [293,293,293,293,293,293,293,293,293,293, 323],
+ "228": [293,293,293,293,293,293,293,293,293,293, 323],
+ "229": [293,293,293,293,293,293,293,293,293,293, 323],
+ "230": [293,293,293,293,293,293,293,293,293,293, 323],
+ "231": [293,293,293,293,293,293,293,293,293,293, 323],
+ "232": [293,293,293,293,293,293,293,293,293,293, 323],
+ "233": [293,293,293,293,293,293,293,293,293,293, 323],
+ "234": [293,293,293,293,293,293,293,293,293,293, 323],
+ "235": [293,293,293,293,293,293,293,293,293,293, 323],
+ "236": [293,293,293,293,293,293,293,293,293,293, 323],
+ "237": [293,293,293,293,293,293,293,293,293,293, 323],
+ "238": [293,293,293,293,293,293,293,293,293,293, 323],
+ "239": [293,293,293,293,293,293,293,293,293,293, 323],
+ "240": [293,293,293,293,293,293,293,293,293,293, 323],
+ "241": [293,293,293,293,293,293,293,293,293,293, 323],
+ "242": [293,293,293,293,293,293,293,293,293,293, 323],
+ "243": [293,293,293,293,293,293,293,293,293,293, 323],
+ "244": [293,293,293,293,293,293,293,293,293,293, 323],
+ "245": [293,293,293,293,293,293,293,293,293,293, 323],
+ "246": [293,293,293,293,293,293,293,293,293,293, 323],
+ "247": [293,293,293,293,293,293,293,293,293,293, 323],
+ "248": [293,293,293,293,293,293,293,293,293,293, 323],
+ "249": [293,293,293,293,293,293,293,293,293,293, 323],
+ "250": [293,293,293,293,293,293,293,293,293,293, 323],
+ "251": [293,293,293,293,293,293,293,293,293,293, 323],
+ "252": [293,293,293,293,293,293,293,293,293,293, 323],
+ "253": [293,293,293,293,293,293,293,293,293,293, 323],
+ "254": [293,293,293,293,293,293,293,293,293,293, 323],
+ "255": [293,293,293,293,293,293,293,293,293,293, 323],
+ "256": [293,293,293,293,293,293,293,293,293,293, 323],
+ "257": [293,293,293,293,293,293,293,293,293,293, 323],
+ "258": [293,293,293,293,293,293,293,293,293,293, 323],
+ "259": [293,293,293,293,293,293,293,293,293,293, 323],
+ "260": [293,293,293,293,293,293,293,293,293,293, 323],
+ "261": [293,293,293,293,293,293,293,293,293,293, 323],
+ "262": [293,293,293,293,293,293,293,293,293,293, 323],
+ "263": [293,293,293,293,293,293,293,293,293,293, 323],
+ "264": [293,293,293,293,293,293,293,293,293,293, 323],
+ "265": [293,293,293,293,293,293,293,293,293,293, 323],
+ "266": [293,293,293,293,293,293,293,293,293,293, 323],
+ "267": [293,293,293,293,293,293,293,293,293,293, 323],
+ "268": [293,293,293,293,293,293,293,293,293,293, 323],
+ "269": [293,293,293,293,293,293,293,293,293,293, 323],
+ "270": [293,293,293,293,293,293,293,293,293,293, 323],
+ "271": [293,293,293,293,293,293,293,293,293,293, 323],
+ "272": [293,293,293,293,293,293,293,293,293,293, 323],
+ "273": [293,293,293,293,293,293,293,293,293,293, 323],
+ "274": [293,293,293,293,293,293,293,293,293,293, 323],
+ "275": [293,293,293,293,293,293,293,293,293,293, 323],
+ "276": [293,293,293,293,293,293,293,293,293,293, 323],
+ "277": [293,293,293,293,293,293,293,293,293,293, 323],
+ "278": [293,293,293,293,293,293,293,293,293,293, 323],
+ "279": [293,293,293,293,293,293,293,293,293,293, 323],
+ "280": [293,293,293,293,293,293,293,293,293,293, 323],
+ "281": [293,293,293,293,293,293,293,293,293,293, 323],
+ "282": [293,293,293,293,293,293,293,293,293,293, 323],
+ "283": [293,293,293,293,293,293,293,293,293,293, 323],
+ "284": [293,293,293,293,293,293,293,293,293,293, 323],
+ "285": [293,293,293,293,293,293,293,293,293,293, 323],
+ "286": [293,293,293,293,293,293,293,293,293,293, 323],
+ "287": [293,293,293,293,293,293,293,293,293,293, 323],
+ "288": [293,293,293,293,293,293,293,293,293,293, 323],
+ "289": [293,293,293,293,293,293,293,293,293,293, 323],
+ "290": [293,293,293,293,293,293,293,293,293,293, 323],
+ "291": [293,293,293,293,293,293,293,293,293,293, 323],
+ "292": [293,293,293,293,293,293,293,293,293,293, 323],
+ "293": [293,293,293,293,293,293,293,293,293,293, 323],
+ "294": [293,293,293,293,293,293,293,293,293,293, 323],
+ "295": [293,293,293,293,293,293,293,293,293,293, 323],
+ "296": [293,293,293,293,293,293,293,293,293,293, 323],
+ "297": [293,293,293,293,293,293,293,293,293,293, 323],
+ "298": [293,293,293,293,293,293,293,293,293,293, 323],
+ "299": [293,293,293,293,293,293,293,293,293,293, 323],
+ "300": [293,293,293,293,293,293,293,293,293,293, 323],
+ "301": [293,293,293,293,293,293,293,293,293,293, 323],
+ "302": [293,293,293,293,293,293,293,293,293,293, 323],
+ "303": [293,293,293,293,293,293,293,293,293,293, 323],
+ "304": [293,293,293,293,293,293,293,293,293,293, 323],
+ "305": [293,293,293,293,293,293,293,293,293,293, 323],
+ "306": [293,293,293,293,293,293,293,293,293,293, 323],
+ "307": [293,293,293,293,293,293,293,293,293,293, 323],
+ "308": [293,293,293,293,293,293,293,293,293,293, 323],
+ "309": [293,293,293,293,293,293,293,293,293,293, 323],
+ "310": [293,293,293,293,293,293,293,293,293,293, 323],
+ "311": [293,293,293,293,293,293,293,293,293,293, 323],
+ "312": [293,293,293,293,293,293,293,293,293,293, 323],
+ "313": [293,293,293,293,293,293,293,293,293,293, 323],
+ "314": [293,293,293,293,293,293,293,293,293,293, 323],
+ "315": [293,293,293,293,293,293,293,293,293,293, 323],
+ "316": [293,293,293,293,293,293,293,293,293,293, 323],
+ "317": [293,293,293,293,293,293,293,293,293,293, 323],
+ "318": [293,293,293,293,293,293,293,293,293,293, 323],
+ "319": [293,293,293,293,293,293,293,293,293,293, 323],
+ "320": [293,293,293,293,293,293,293,293,293,293, 323],
+ "321": [293,293,293,293,293,293,293,293,293,293, 323],
+ "322": [293,293,293,293,293,293,293,293,293,293, 323],
+ "323": [293,293,293,293,293,293,293,293,293,293, 323],
+ "324": [293,293,293,293,293,293,293,293,293,293, 323],
+ "325": [293,293,293,293,293,293,293,293,293,293, 323],
+ "326": [293,293,293,293,293,293,293,293,293,293, 323],
+ "327": [293,293,293,293,293,293,293,293,293,293, 323],
+ "328": [293,293,293,293,293,293,293,293,293,293, 323],
+ "329": [293,293,293,293,293,293,293,293,293,293, 323],
+ "330": [293,293,293,293,293,293,293,293,293,293, 323],
+ "331": [293,293,293,293,293,293,293,293,293,293, 323],
+ "332": [293,293,293,293,293,293,293,293,293,293, 323],
+ "333": [293,293,293,293,293,293,293,293,293,293, 323],
+ "334": [293,293,293,293,293,293,293,293,293,293, 323],
+ "335": [293,293,293,293,293,293,293,293,293,293, 323],
+ "336": [293,293,293,293,293,293,293,293,293,293, 323],
+ "337": [293,293,293,293,293,293,293,293,293,293, 323],
+ "338": [293,293,293,293,293,293,293,293,293,293, 323],
+ "339": [293,293,293,293,293,293,293,293,293,293, 323],
+ "340": [293,293,293,293,293,293,293,293,293,293, 323],
+ "341": [293,293,293,293,293,293,293,293,293,293, 323],
+ "342": [293,293,293,293,293,293,293,293,293,293, 323],
+ "343": [293,293,293,293,293,293,293,293,293,293, 323],
+ "344": [293,293,293,293,293,293,293,293,293,293, 323],
+ "345": [293,293,293,293,293,293,293,293,293,293, 323],
+ "346": [293,293,293,293,293,293,293,293,293,293, 323],
+ "347": [293,293,293,293,293,293,293,293,293,293, 323],
+ "348": [293,293,293,293,293,293,293,293,293,293, 323],
+ "349": [293,293,293,293,293,293,293,293,293,293, 323],
+ "350": [293,293,293,293,293,293,293,293,293,293, 323],
+ "351": [293,293,293,293,293,293,293,293,293,293, 323],
+ "352": [293,293,293,293,293,293,293,293,293,293, 323],
+ "353": [293,293,293,293,293,293,293,293,293,293, 323],
+ "354": [293,293,293,293,293,293,293,293,293,293, 323],
+ "355": [293,293,293,293,293,293,293,293,293,293, 323],
+ "356": [293,293,293,293,293,293,293,293,293,293, 323],
+ "357": [293,293,293,293,293,293,293,293,293,293, 323],
+ "358": [293,293,293,293,293,293,293,293,293,293, 323],
+ "359": [293,293,293,293,293,293,293,293,293,293, 323],
+ "360": [293,293,293,293,293,293,293,293,293,293, 323],
+ "361": [293,293,293,293,293,293,293,293,293,293, 323],
+ "362": [293,293,293,293,293,293,293,293,293,293, 323],
+ "363": [293,293,293,293,293,293,293,293,293,293, 323],
+ "364": [293,293,293,293,293,293,293,293,293,293, 323],
+ "365": [293,293,293,293,293,293,293,293,293,293, 323],
+ "366": [293,293,293,293,293,293,293,293,293,293, 323],
+ "367": [293,293,293,293,293,293,293,293,293,293, 323],
+ "368": [293,293,293,293,293,293,293,293,293,293, 323],
+ "369": [293,293,293,293,293,293,293,293,293,293, 323],
+ "370": [293,293,293,293,293,293,293,293,293,293, 323],
+ "371": [293,293,293,293,293,293,293,293,293,293, 323],
+ "372": [293,293,293,293,293,293,293,293,293,293, 323],
+ "373": [293,293,293,293,293,293,293,293,293,293, 323],
+ "374": [293,293,293,293,293,293,293,293,293,293, 323],
+ "375": [293,293,293,293,293,293,293,293,293,293, 323],
+ "376": [293,293,293,293,293,293,293,293,293,293, 323],
+ "377": [293,293,293,293,293,293,293,293,293,293, 323],
+ "378": [293,293,293,293,293,293,293,293,293,293, 323],
+ "379": [293,293,293,293,293,293,293,293,293,293, 323],
+ "380": [293,293,293,293,293,293,293,293,293,293, 323],
+ "381": [293,293,293,293,293,293,293,293,293,293, 323],
+ "382": [293,293,293,293,293,293,293,293,293,293, 323],
+ "383": [293,293,293,293,293,293,293,293,293,293, 323],
+ "384": [293,293,293,293,293,293,293,293,293,293, 323],
+ "385": [293,293,293,293,293,293,293,293,293,293, 323],
+ "386": [293,293,293,293,293,293,293,293,293,293, 323],
+ "387": [293,293,293,293,293,293,293,293,293,293, 323],
+ "388": [293,293,293,293,293,293,293,293,293,293, 323],
+ "389": [293,293,293,293,293,293,293,293,293,293, 323],
+ "390": [293,293,293,293,293,293,293,293,293,293, 323],
+ "391": [293,293,293,293,293,293,293,293,293,293, 323],
+ "392": [293,293,293,293,293,293,293,293,293,293, 323],
+ "393": [293,293,293,293,293,293,293,293,293,293, 323],
+ "394": [293,293,293,293,293,293,293,293,293,293, 323],
+ "395": [293,293,293,293,293,293,293,293,293,293, 323],
+ "396": [293,293,293,293,293,293,293,293,293,293, 323],
+ "397": [293,293,293,293,293,293,293,293,293,293, 323],
+ "398": [293,293,293,293,293,293,293,293,293,293, 323],
+ "399": [293,293,293,293,293,293,293,293,293,293, 323],
+ "400": [293,293,293,293,293,293,293,293,293,293, 323],
+ "401": [293,293,293,293,293,293,293,293,293,293, 323],
+ "402": [293,293,293,293,293,293,293,293,293,293, 323],
+ "403": [293,293,293,293,293,293,293,293,293,293, 323],
+ "404": [293,293,293,293,293,293,293,293,293,293, 323],
+ "405": [293,293,293,293,293,293,293,293,293,293, 323],
+ "406": [293,293,293,293,293,293,293,293,293,293, 323],
+ "407": [293,293,293,293,293,293,293,293,293,293, 323],
+ "408": [293,293,293,293,293,293,293,293,293,293, 323],
+ "409": [293,293,293,293,293,293,293,293,293,293, 323],
+ "410": [293,293,293,293,293,293,293,293,293,293, 323],
+ "411": [293,293,293,293,293,293,293,293,293,293, 323],
+ "412": [293,293,293,293,293,293,293,293,293,293, 323],
+ "413": [293,293,293,293,293,293,293,293,293,293, 323],
+ "414": [293,293,293,293,293,293,293,293,293,293, 323],
+ "415": [293,293,293,293,293,293,293,293,293,293, 323],
+ "416": [293,293,293,293,293,293,293,293,293,293, 323],
+ "417": [293,293,293,293,293,293,293,293,293,293, 323],
+ "418": [293,293,293,293,293,293,293,293,293,293, 323],
+ "419": [293,293,293,293,293,293,293,293,293,293, 323],
+ "420": [293,293,293,293,293,293,293,293,293,293, 323],
+ "421": [293,293,293,293,293,293,293,293,293,293, 323],
+ "422": [293,293,293,293,293,293,293,293,293,293, 323],
+ "423": [293,293,293,293,293,293,293,293,293,293, 323],
+ "424": [293,293,293,293,293,293,293,293,293,293, 323],
+ "425": [293,293,293,293,293,293,293,293,293,293, 323],
+ "426": [293,293,293,293,293,293,293,293,293,293, 323],
+ "427": [293,293,293,293,293,293,293,293,293,293, 323],
+ "428": [293,293,293,293,293,293,293,293,293,293, 323],
+ "429": [293,293,293,293,293,293,293,293,293,293, 323],
+ "430": [293,293,293,293,293,293,293,293,293,293, 323],
+ "431": [293,293,293,293,293,293,293,293,293,293, 323],
+ "432": [293,293,293,293,293,293,293,293,293,293, 323],
+ "433": [293,293,293,293,293,293,293,293,293,293, 323],
+ "434": [293,293,293,293,293,293,293,293,293,293, 323],
+ "435": [293,293,293,293,293,293,293,293,293,293, 323],
+ "436": [293,293,293,293,293,293,293,293,293,293, 323],
+ "437": [293,293,293,293,293,293,293,293,293,293, 323],
+ "438": [293,293,293,293,293,293,293,293,293,293, 323],
+ "439": [293,293,293,293,293,293,293,293,293,293, 323],
+ "440": [293,293,293,293,293,293,293,293,293,293, 323],
+ "441": [293,293,293,293,293,293,293,293,293,293, 323],
+ "442": [293,293,293,293,293,293,293,293,293,293, 323],
+ "443": [293,293,293,293,293,293,293,293,293,293, 323],
+ "444": [293,293,293,293,293,293,293,293,293,293, 323],
+ "445": [293,293,293,293,293,293,293,293,293,293, 323],
+ "446": [293,293,293,293,293,293,293,293,293,293, 323],
+ "447": [293,293,293,293,293,293,293,293,293,293, 323],
+ "448": [293,293,293,293,293,293,293,293,293,293, 323],
+ "449": [293,293,293,293,293,293,293,293,293,293, 323],
+ "450": [293,293,293,293,293,293,293,293,293,293, 323],
+ "451": [293,293,293,293,293,293,293,293,293,293, 323],
+ "452": [293,293,293,293,293,293,293,293,293,293, 323],
+ "453": [293,293,293,293,293,293,293,293,293,293, 323],
+ "454": [293,293,293,293,293,293,293,293,293,293, 323],
+ "455": [293,293,293,293,293,293,293,293,293,293, 323],
+ "456": [293,293,293,293,293,293,293,293,293,293, 323],
+ "457": [293,293,293,293,293,293,293,293,293,293, 323],
+ "458": [293,293,293,293,293,293,293,293,293,293, 323],
+ "459": [293,293,293,293,293,293,293,293,293,293, 323],
+ "460": [293,293,293,293,293,293,293,293,293,293, 323],
+ "461": [293,293,293,293,293,293,293,293,293,293, 323],
+ "462": [293,293,293,293,293,293,293,293,293,293, 323],
+ "463": [293,293,293,293,293,293,293,293,293,293, 323],
+ "464": [293,293,293,293,293,293,293,293,293,293, 323],
+ "465": [293,293,293,293,293,293,293,293,293,293, 323],
+ "466": [293,293,293,293,293,293,293,293,293,293, 323],
+ "467": [293,293,293,293,293,293,293,293,293,293, 323],
+ "468": [293,293,293,293,293,293,293,293,293,293, 323],
+ "469": [293,293,293,293,293,293,293,293,293,293, 323],
+ "470": [293,293,293,293,293,293,293,293,293,293, 323],
+ "471": [293,293,293,293,293,293,293,293,293,293, 323],
+ "472": [293,293,293,293,293,293,293,293,293,293, 323],
+ "473": [293,293,293,293,293,293,293,293,293,293, 323],
+ "474": [293,293,293,293,293,293,293,293,293,293, 323],
+ "475": [293,293,293,293,293,293,293,293,293,293, 323],
+ "476": [293,293,293,293,293,293,293,293,293,293, 323],
+ "477": [293,293,293,293,293,293,293,293,293,293, 323],
+ "478": [293,293,293,293,293,293,293,293,293,293, 323],
+ "479": [293,293,293,293,293,293,293,293,293,293, 323],
+ "480": [293,293,293,293,293,293,293,293,293,293, 323],
+ "481": [293,293,293,293,293,293,293,293,293,293, 323],
+ "482": [293,293,293,293,293,293,293,293,293,293, 323],
+ "483": [293,293,293,293,293,293,293,293,293,293, 323],
+ "484": [293,293,293,293,293,293,293,293,293,293, 323],
+ "485": [293,293,293,293,293,293,293,293,293,293, 323],
+ "486": [293,293,293,293,293,293,293,293,293,293, 323],
+ "487": [293,293,293,293,293,293,293,293,293,293, 323],
+ "488": [293,293,293,293,293,293,293,293,293,293, 323],
+ "489": [293,293,293,293,293,293,293,293,293,293, 323],
+ "490": [293,293,293,293,293,293,293,293,293,293, 323],
+ "491": [293,293,293,293,293,293,293,293,293,293, 323],
+ "492": [293,293,293,293,293,293,293,293,293,293, 323],
+ "493": [293,293,293,293,293,293,293,293,293,293, 323],
+ "494": [293,293,293,293,293,293,293,293,293,293, 323],
+ "495": [293,293,293,293,293,293,293,293,293,293, 323],
+ "496": [293,293,293,293,293,293,293,293,293,293, 323],
+ "497": [293,293,293,293,293,293,293,293,293,293, 323],
+ "498": [293,293,293,293,293,293,293,293,293,293, 323],
+ "499": [293,293,293,293,293,293,293,293,293,293, 323],
+ "500": [293,293,293,293,293,293,293,293,293,293, 323],
+ "501": [293,293,293,293,293,293,293,293,293,293, 323],
+ "502": [293,293,293,293,293,293,293,293,293,293, 323],
+ "503": [293,293,293,293,293,293,293,293,293,293, 323],
+ "504": [293,293,293,293,293,293,293,293,293,293, 323],
+ "505": [293,293,293,293,293,293,293,293,293,293, 323],
+ "506": [293,293,293,293,293,293,293,293,293,293, 323],
+ "507": [293,293,293,293,293,293,293,293,293,293, 323],
+ "508": [293,293,293,293,293,293,293,293,293,293, 323],
+ "509": [293,293,293,293,293,293,293,293,293,293, 323],
+ "510": [293,293,293,293,293,293,293,293,293,293, 323],
+ "511": [293,293,293,293,293,293,293,293,293,293, 323],
+ "512": [293,293,293,293,293,293,293,293,293,293, 323],
+ "513": [293,293,293,293,293,293,293,293,293,293, 323],
+ "514": [293,293,293,293,293,293,293,293,293,293, 323],
+ "515": [293,293,293,293,293,293,293,293,293,293, 323],
+ "516": [293,293,293,293,293,293,293,293,293,293, 323],
+ "517": [293,293,293,293,293,293,293,293,293,293, 323],
+ "518": [293,293,293,293,293,293,293,293,293,293, 323],
+ "519": [293,293,293,293,293,293,293,293,293,293, 323],
+ "520": [293,293,293,293,293,293,293,293,293,293, 323],
+ "521": [293,293,293,293,293,293,293,293,293,293, 323],
+ "522": [293,293,293,293,293,293,293,293,293,293, 323],
+ "523": [293,293,293,293,293,293,293,293,293,293, 323],
+ "524": [293,293,293,293,293,293,293,293,293,293, 323],
+ "525": [293,293,293,293,293,293,293,293,293,293, 323],
+ "526": [293,293,293,293,293,293,293,293,293,293, 323],
+ "527": [293,293,293,293,293,293,293,293,293,293, 323],
+ "528": [293,293,293,293,293,293,293,293,293,293, 323],
+ "529": [293,293,293,293,293,293,293,293,293,293, 323],
+ "530": [293,293,293,293,293,293,293,293,293,293, 323],
+ "531": [293,293,293,293,293,293,293,293,293,293, 323],
+ "532": [293,293,293,293,293,293,293,293,293,293, 323],
+ "533": [293,293,293,293,293,293,293,293,293,293, 323],
+ "534": [293,293,293,293,293,293,293,293,293,293, 323],
+ "535": [293,293,293,293,293,293,293,293,293,293, 323],
+ "536": [293,293,293,293,293,293,293,293,293,293, 323],
+ "537": [293,293,293,293,293,293,293,293,293,293, 323],
+ "538": [293,293,293,293,293,293,293,293,293,293, 323],
+ "539": [293,293,293,293,293,293,293,293,293,293, 323],
+ "540": [293,293,293,293,293,293,293,293,293,293, 323],
+ "541": [293,293,293,293,293,293,293,293,293,293, 323],
+ "542": [293,293,293,293,293,293,293,293,293,293, 323],
+ "543": [293,293,293,293,293,293,293,293,293,293, 323],
+ "544": [293,293,293,293,293,293,293,293,293,293, 323],
+ "545": [293,293,293,293,293,293,293,293,293,293, 323],
+ "546": [293,293,293,293,293,293,293,293,293,293, 323],
+ "547": [293,293,293,293,293,293,293,293,293,293, 323],
+ "548": [293,293,293,293,293,293,293,293,293,293, 323],
+ "549": [293,293,293,293,293,293,293,293,293,293, 323],
+ "550": [293,293,293,293,293,293,293,293,293,293, 323],
+ "551": [293,293,293,293,293,293,293,293,293,293, 323],
+ "552": [293,293,293,293,293,293,293,293,293,293, 323],
+ "553": [293,293,293,293,293,293,293,293,293,293, 323],
+ "554": [293,293,293,293,293,293,293,293,293,293, 323],
+ "555": [293,293,293,293,293,293,293,293,293,293, 323],
+ "556": [293,293,293,293,293,293,293,293,293,293, 323],
+ "557": [293,293,293,293,293,293,293,293,293,293, 323],
+ "558": [293,293,293,293,293,293,293,293,293,293, 323],
+ "559": [293,293,293,293,293,293,293,293,293,293, 323],
+ "560": [293,293,293,293,293,293,293,293,293,293, 323],
+ "561": [293,293,293,293,293,293,293,293,293,293, 323],
+ "562": [293,293,293,293,293,293,293,293,293,293, 323],
+ "563": [293,293,293,293,293,293,293,293,293,293, 323],
+ "564": [293,293,293,293,293,293,293,293,293,293, 323],
+ "565": [293,293,293,293,293,293,293,293,293,293, 323],
+ "566": [293,293,293,293,293,293,293,293,293,293, 323],
+ "567": [293,293,293,293,293,293,293,293,293,293, 323],
+ "568": [293,293,293,293,293,293,293,293,293,293, 323],
+ "569": [293,293,293,293,293,293,293,293,293,293, 323],
+ "570": [293,293,293,293,293,293,293,293,293,293, 323],
+ "571": [293,293,293,293,293,293,293,293,293,293, 323],
+ "572": [293,293,293,293,293,293,293,293,293,293, 323],
+ "573": [293,293,293,293,293,293,293,293,293,293, 323],
+ "574": [293,293,293,293,293,293,293,293,293,293, 323],
+ "575": [293,293,293,293,293,293,293,293,293,293, 323],
+ "576": [293,293,293,293,293,293,293,293,293,293, 323],
+ "577": [293,293,293,293,293,293,293,293,293,293, 323],
+ "578": [293,293,293,293,293,293,293,293,293,293, 323],
+ "579": [293,293,293,293,293,293,293,293,293,293, 323],
+ "580": [293,293,293,293,293,293,293,293,293,293, 323],
+ "581": [293,293,293,293,293,293,293,293,293,293, 323],
+ "582": [293,293,293,293,293,293,293,293,293,293, 323],
+ "583": [293,293,293,293,293,293,293,293,293,293, 323],
+ "584": [293,293,293,293,293,293,293,293,293,293, 323],
+ "585": [293,293,293,293,293,293,293,293,293,293, 323],
+ "586": [293,293,293,293,293,293,293,293,293,293, 323],
+ "587": [293,293,293,293,293,293,293,293,293,293, 323],
+ "588": [293,293,293,293,293,293,293,293,293,293, 323],
+ "589": [293,293,293,293,293,293,293,293,293,293, 323],
+ "590": [293,293,293,293,293,293,293,293,293,293, 323],
+ "591": [293,293,293,293,293,293,293,293,293,293, 323],
+ "592": [293,293,293,293,293,293,293,293,293,293, 323],
+ "593": [293,293,293,293,293,293,293,293,293,293, 323],
+ "594": [293,293,293,293,293,293,293,293,293,293, 323],
+ "595": [293,293,293,293,293,293,293,293,293,293, 323],
+ "596": [293,293,293,293,293,293,293,293,293,293, 323],
+ "597": [293,293,293,293,293,293,293,293,293,293, 323],
+ "598": [293,293,293,293,293,293,293,293,293,293, 323],
+ "599": [293,293,293,293,293,293,293,293,293,293, 323],
+ "600": [293,293,293,293,293,293,293,293,293,293, 323],
+ "601": [293,293,293,293,293,293,293,293,293,293, 323],
+ "602": [293,293,293,293,293,293,293,293,293,293, 323],
+ "603": [293,293,293,293,293,293,293,293,293,293, 323],
+ "604": [293,293,293,293,293,293,293,293,293,293, 323],
+ "605": [293,293,293,293,293,293,293,293,293,293, 323],
+ "606": [293,293,293,293,293,293,293,293,293,293, 323],
+ "607": [293,293,293,293,293,293,293,293,293,293, 323],
+ "608": [293,293,293,293,293,293,293,293,293,293, 323],
+ "609": [293,293,293,293,293,293,293,293,293,293, 323],
+ "610": [293,293,293,293,293,293,293,293,293,293, 323],
+ "611": [293,293,293,293,293,293,293,293,293,293, 323],
+ "612": [293,293,293,293,293,293,293,293,293,293, 323],
+ "613": [293,293,293,293,293,293,293,293,293,293, 323],
+ "614": [293,293,293,293,293,293,293,293,293,293, 323],
+ "615": [293,293,293,293,293,293,293,293,293,293, 323],
+ "616": [293,293,293,293,293,293,293,293,293,293, 323],
+ "617": [293,293,293,293,293,293,293,293,293,293, 323],
+ "618": [293,293,293,293,293,293,293,293,293,293, 323],
+ "619": [293,293,293,293,293,293,293,293,293,293, 323],
+ "620": [293,293,293,293,293,293,293,293,293,293, 323],
+ "621": [293,293,293,293,293,293,293,293,293,293, 323],
+ "622": [293,293,293,293,293,293,293,293,293,293, 323],
+ "623": [293,293,293,293,293,293,293,293,293,293, 323],
+ "624": [293,293,293,293,293,293,293,293,293,293, 323],
+ "625": [293,293,293,293,293,293,293,293,293,293, 323],
+ "626": [293,293,293,293,293,293,293,293,293,293, 323],
+ "627": [293,293,293,293,293,293,293,293,293,293, 323],
+ "628": [293,293,293,293,293,293,293,293,293,293, 323],
+ "629": [293,293,293,293,293,293,293,293,293,293, 323],
+ "630": [293,293,293,293,293,293,293,293,293,293, 323],
+ "631": [293,293,293,293,293,293,293,293,293,293, 323],
+ "632": [293,293,293,293,293,293,293,293,293,293, 323],
+ "633": [293,293,293,293,293,293,293,293,293,293, 323],
+ "634": [293,293,293,293,293,293,293,293,293,293, 323],
+ "635": [293,293,293,293,293,293,293,293,293,293, 323],
+ "636": [293,293,293,293,293,293,293,293,293,293, 323],
+ "637": [293,293,293,293,293,293,293,293,293,293, 323],
+ "638": [293,293,293,293,293,293,293,293,293,293, 323],
+ "639": [293,293,293,293,293,293,293,293,293,293, 323],
+ "640": [293,293,293,293,293,293,293,293,293,293, 323],
+ "641": [293,293,293,293,293,293,293,293,293,293, 323],
+ "642": [293,293,293,293,293,293,293,293,293,293, 323],
+ "643": [293,293,293,293,293,293,293,293,293,293, 323],
+ "644": [293,293,293,293,293,293,293,293,293,293, 323],
+ "645": [293,293,293,293,293,293,293,293,293,293, 323],
+ "646": [293,293,293,293,293,293,293,293,293,293, 323],
+ "647": [293,293,293,293,293,293,293,293,293,293, 323],
+ "648": [293,293,293,293,293,293,293,293,293,293, 323],
+ "649": [293,293,293,293,293,293,293,293,293,293, 323],
+ "650": [293,293,293,293,293,293,293,293,293,293, 323],
+ "651": [293,293,293,293,293,293,293,293,293,293, 323],
+ "652": [293,293,293,293,293,293,293,293,293,293, 323],
+ "653": [293,293,293,293,293,293,293,293,293,293, 323],
+ "654": [293,293,293,293,293,293,293,293,293,293, 323],
+ "655": [293,293,293,293,293,293,293,293,293,293, 323],
+ "656": [293,293,293,293,293,293,293,293,293,293, 323],
+ "657": [293,293,293,293,293,293,293,293,293,293, 323],
+ "658": [293,293,293,293,293,293,293,293,293,293, 323],
+ "659": [293,293,293,293,293,293,293,293,293,293, 323],
+ "660": [293,293,293,293,293,293,293,293,293,293, 323],
+ "661": [293,293,293,293,293,293,293,293,293,293, 323],
+ "662": [293,293,293,293,293,293,293,293,293,293, 323],
+ "663": [293,293,293,293,293,293,293,293,293,293, 323],
+ "664": [293,293,293,293,293,293,293,293,293,293, 323],
+ "665": [293,293,293,293,293,293,293,293,293,293, 323],
+ "666": [293,293,293,293,293,293,293,293,293,293, 323],
+ "667": [293,293,293,293,293,293,293,293,293,293, 323],
+ "668": [293,293,293,293,293,293,293,293,293,293, 323],
+ "669": [293,293,293,293,293,293,293,293,293,293, 323],
+ "670": [293,293,293,293,293,293,293,293,293,293, 323],
+ "671": [293,293,293,293,293,293,293,293,293,293, 323],
+ "672": [293,293,293,293,293,293,293,293,293,293, 323],
+ "673": [293,293,293,293,293,293,293,293,293,293, 323],
+ "674": [293,293,293,293,293,293,293,293,293,293, 323],
+ "675": [293,293,293,293,293,293,293,293,293,293, 323],
+ "676": [293,293,293,293,293,293,293,293,293,293, 323],
+ "677": [293,293,293,293,293,293,293,293,293,293, 323],
+ "678": [293,293,293,293,293,293,293,293,293,293, 323],
+ "679": [293,293,293,293,293,293,293,293,293,293, 323],
+ "680": [293,293,293,293,293,293,293,293,293,293, 323],
+ "681": [293,293,293,293,293,293,293,293,293,293, 323],
+ "682": [293,293,293,293,293,293,293,293,293,293, 323],
+ "683": [293,293,293,293,293,293,293,293,293,293, 323],
+ "684": [293,293,293,293,293,293,293,293,293,293, 323],
+ "685": [293,293,293,293,293,293,293,293,293,293, 323],
+ "686": [293,293,293,293,293,293,293,293,293,293, 323],
+ "687": [293,293,293,293,293,293,293,293,293,293, 323],
+ "688": [293,293,293,293,293,293,293,293,293,293, 323],
+ "689": [293,293,293,293,293,293,293,293,293,293, 323],
+ "690": [293,293,293,293,293,293,293,293,293,293, 323],
+ "691": [293,293,293,293,293,293,293,293,293,293, 323],
+ "692": [293,293,293,293,293,293,293,293,293,293, 323],
+ "693": [293,293,293,293,293,293,293,293,293,293, 323],
+ "694": [293,293,293,293,293,293,293,293,293,293, 323],
+ "695": [293,293,293,293,293,293,293,293,293,293, 323],
+ "696": [293,293,293,293,293,293,293,293,293,293, 323],
+ "697": [293,293,293,293,293,293,293,293,293,293, 323],
+ "698": [293,293,293,293,293,293,293,293,293,293, 323],
+ "699": [293,293,293,293,293,293,293,293,293,293, 323],
+ "700": [293,293,293,293,293,293,293,293,293,293, 323],
+ "701": [293,293,293,293,293,293,293,293,293,293, 323],
+ "702": [293,293,293,293,293,293,293,293,293,293, 323],
+ "703": [293,293,293,293,293,293,293,293,293,293, 323],
+ "704": [293,293,293,293,293,293,293,293,293,293, 323],
+ "705": [293,293,293,293,293,293,293,293,293,293, 323],
+ "706": [293,293,293,293,293,293,293,293,293,293, 323],
+ "707": [293,293,293,293,293,293,293,293,293,293, 323],
+ "708": [293,293,293,293,293,293,293,293,293,293, 323],
+ "709": [293,293,293,293,293,293,293,293,293,293, 323],
+ "710": [293,293,293,293,293,293,293,293,293,293, 323],
+ "711": [293,293,293,293,293,293,293,293,293,293, 323],
+ "712": [293,293,293,293,293,293,293,293,293,293, 323],
+ "713": [293,293,293,293,293,293,293,293,293,293, 323],
+ "714": [293,293,293,293,293,293,293,293,293,293, 323],
+ "715": [293,293,293,293,293,293,293,293,293,293, 323],
+ "716": [293,293,293,293,293,293,293,293,293,293, 323],
+ "717": [293,293,293,293,293,293,293,293,293,293, 323],
+ "718": [293,293,293,293,293,293,293,293,293,293, 323],
+ "719": [293,293,293,293,293,293,293,293,293,293, 323],
+ "720": [293,293,293,293,293,293,293,293,293,293, 323],
+ "721": [293,293,293,293,293,293,293,293,293,293, 323],
+ "722": [293,293,293,293,293,293,293,293,293,293, 323],
+ "723": [293,293,293,293,293,293,293,293,293,293, 323],
+ "724": [293,293,293,293,293,293,293,293,293,293, 323],
+ "725": [293,293,293,293,293,293,293,293,293,293, 323],
+ "726": [293,293,293,293,293,293,293,293,293,293, 323],
+ "727": [293,293,293,293,293,293,293,293,293,293, 323],
+ "728": [293,293,293,293,293,293,293,293,293,293, 323],
+ "729": [293,293,293,293,293,293,293,293,293,293, 323],
+ "730": [293,293,293,293,293,293,293,293,293,293, 323],
+ "731": [293,293,293,293,293,293,293,293,293,293, 323],
+ "732": [293,293,293,293,293,293,293,293,293,293, 323],
+ "733": [293,293,293,293,293,293,293,293,293,293, 323],
+ "734": [293,293,293,293,293,293,293,293,293,293, 323],
+ "735": [293,293,293,293,293,293,293,293,293,293, 323],
+ "736": [293,293,293,293,293,293,293,293,293,293, 323],
+ "737": [293,293,293,293,293,293,293,293,293,293, 323],
+ "738": [293,293,293,293,293,293,293,293,293,293, 323],
+ "739": [293,293,293,293,293,293,293,293,293,293, 323],
+ "740": [293,293,293,293,293,293,293,293,293,293, 323],
+ "741": [293,293,293,293,293,293,293,293,293,293, 323],
+ "742": [293,293,293,293,293,293,293,293,293,293, 323],
+ "743": [293,293,293,293,293,293,293,293,293,293, 323],
+ "744": [293,293,293,293,293,293,293,293,293,293, 323],
+ "745": [293,293,293,293,293,293,293,293,293,293, 323],
+ "746": [293,293,293,293,293,293,293,293,293,293, 323],
+ "747": [293,293,293,293,293,293,293,293,293,293, 323],
+ "748": [293,293,293,293,293,293,293,293,293,293, 323],
+ "749": [293,293,293,293,293,293,293,293,293,293, 323],
+ "750": [293,293,293,293,293,293,293,293,293,293, 323],
+ "751": [293,293,293,293,293,293,293,293,293,293, 323],
+ "752": [293,293,293,293,293,293,293,293,293,293, 323],
+ "753": [293,293,293,293,293,293,293,293,293,293, 323],
+ "754": [293,293,293,293,293,293,293,293,293,293, 323],
+ "755": [293,293,293,293,293,293,293,293,293,293, 323],
+ "756": [293,293,293,293,293,293,293,293,293,293, 323],
+ "757": [293,293,293,293,293,293,293,293,293,293, 323],
+ "758": [293,293,293,293,293,293,293,293,293,293, 323],
+ "759": [293,293,293,293,293,293,293,293,293,293, 323],
+ "760": [293,293,293,293,293,293,293,293,293,293, 323],
+ "761": [293,293,293,293,293,293,293,293,293,293, 323],
+ "762": [293,293,293,293,293,293,293,293,293,293, 323],
+ "763": [293,293,293,293,293,293,293,293,293,293, 323],
+ "764": [293,293,293,293,293,293,293,293,293,293, 323],
+ "765": [293,293,293,293,293,293,293,293,293,293, 323],
+ "766": [293,293,293,293,293,293,293,293,293,293, 323],
+ "767": [293,293,293,293,293,293,293,293,293,293, 323],
+ "768": [293,293,293,293,293,293,293,293,293,293, 323],
+ "769": [293,293,293,293,293,293,293,293,293,293, 323],
+ "770": [293,293,293,293,293,293,293,293,293,293, 323],
+ "771": [293,293,293,293,293,293,293,293,293,293, 323],
+ "772": [293,293,293,293,293,293,293,293,293,293, 323],
+ "773": [293,293,293,293,293,293,293,293,293,293, 323],
+ "774": [293,293,293,293,293,293,293,293,293,293, 323],
+ "775": [293,293,293,293,293,293,293,293,293,293, 323],
+ "776": [293,293,293,293,293,293,293,293,293,293, 323],
+ "777": [293,293,293,293,293,293,293,293,293,293, 323],
+ "778": [293,293,293,293,293,293,293,293,293,293, 323],
+ "779": [293,293,293,293,293,293,293,293,293,293, 323],
+ "780": [293,293,293,293,293,293,293,293,293,293, 323],
+ "781": [293,293,293,293,293,293,293,293,293,293, 323],
+ "782": [293,293,293,293,293,293,293,293,293,293, 323],
+ "783": [293,293,293,293,293,293,293,293,293,293, 323],
+ "784": [293,293,293,293,293,293,293,293,293,293, 323],
+ "785": [293,293,293,293,293,293,293,293,293,293, 323],
+ "786": [293,293,293,293,293,293,293,293,293,293, 323],
+ "787": [293,293,293,293,293,293,293,293,293,293, 323],
+ "788": [293,293,293,293,293,293,293,293,293,293, 323],
+ "789": [293,293,293,293,293,293,293,293,293,293, 323],
+ "790": [293,293,293,293,293,293,293,293,293,293, 323],
+ "791": [293,293,293,293,293,293,293,293,293,293, 323],
+ "792": [293,293,293,293,293,293,293,293,293,293, 323],
+ "793": [293,293,293,293,293,293,293,293,293,293, 323],
+ "794": [293,293,293,293,293,293,293,293,293,293, 323],
+ "795": [293,293,293,293,293,293,293,293,293,293, 323],
+ "796": [293,293,293,293,293,293,293,293,293,293, 323],
+ "797": [293,293,293,293,293,293,293,293,293,293, 323],
+ "798": [293,293,293,293,293,293,293,293,293,293, 323],
+ "799": [293,293,293,293,293,293,293,293,293,293, 323],
+ "800": [293,293,293,293,293,293,293,293,293,293, 323],
+ "801": [293,293,293,293,293,293,293,293,293,293, 323],
+ "802": [293,293,293,293,293,293,293,293,293,293, 323],
+ "803": [293,293,293,293,293,293,293,293,293,293, 323],
+ "804": [293,293,293,293,293,293,293,293,293,293, 323],
+ "805": [293,293,293,293,293,293,293,293,293,293, 323],
+ "806": [293,293,293,293,293,293,293,293,293,293, 323],
+ "807": [293,293,293,293,293,293,293,293,293,293, 323],
+ "808": [293,293,293,293,293,293,293,293,293,293, 323],
+ "809": [293,293,293,293,293,293,293,293,293,293, 323],
+ "810": [293,293,293,293,293,293,293,293,293,293, 323],
+ "811": [293,293,293,293,293,293,293,293,293,293, 323],
+ "812": [293,293,293,293,293,293,293,293,293,293, 323],
+ "813": [293,293,293,293,293,293,293,293,293,293, 323],
+ "814": [293,293,293,293,293,293,293,293,293,293, 323],
+ "815": [293,293,293,293,293,293,293,293,293,293, 323],
+ "816": [293,293,293,293,293,293,293,293,293,293, 323],
+ "817": [293,293,293,293,293,293,293,293,293,293, 323],
+ "818": [293,293,293,293,293,293,293,293,293,293, 323],
+ "819": [293,293,293,293,293,293,293,293,293,293, 323],
+ "820": [293,293,293,293,293,293,293,293,293,293, 323],
+ "821": [293,293,293,293,293,293,293,293,293,293, 323],
+ "822": [293,293,293,293,293,293,293,293,293,293, 323],
+ "823": [293,293,293,293,293,293,293,293,293,293, 323],
+ "824": [293,293,293,293,293,293,293,293,293,293, 323],
+ "825": [293,293,293,293,293,293,293,293,293,293, 323],
+ "826": [293,293,293,293,293,293,293,293,293,293, 323],
+ "827": [293,293,293,293,293,293,293,293,293,293, 323],
+ "828": [293,293,293,293,293,293,293,293,293,293, 323],
+ "829": [293,293,293,293,293,293,293,293,293,293, 323],
+ "830": [293,293,293,293,293,293,293,293,293,293, 323],
+ "831": [293,293,293,293,293,293,293,293,293,293, 323],
+ "832": [293,293,293,293,293,293,293,293,293,293, 323],
+ "833": [293,293,293,293,293,293,293,293,293,293, 323],
+ "834": [293,293,293,293,293,293,293,293,293,293, 323],
+ "835": [293,293,293,293,293,293,293,293,293,293, 323],
+ "836": [293,293,293,293,293,293,293,293,293,293, 323],
+ "837": [293,293,293,293,293,293,293,293,293,293, 323],
+ "838": [293,293,293,293,293,293,293,293,293,293, 323],
+ "839": [293,293,293,293,293,293,293,293,293,293, 323],
+ "840": [293,293,293,293,293,293,293,293,293,293, 323],
+ "841": [293,293,293,293,293,293,293,293,293,293, 323],
+ "842": [293,293,293,293,293,293,293,293,293,293, 323],
+ "843": [293,293,293,293,293,293,293,293,293,293, 323],
+ "844": [293,293,293,293,293,293,293,293,293,293, 323],
+ "845": [293,293,293,293,293,293,293,293,293,293, 323],
+ "846": [293,293,293,293,293,293,293,293,293,293, 323],
+ "847": [293,293,293,293,293,293,293,293,293,293, 323],
+ "848": [293,293,293,293,293,293,293,293,293,293, 323],
+ "849": [293,293,293,293,293,293,293,293,293,293, 323],
+ "850": [293,293,293,293,293,293,293,293,293,293, 323],
+ "851": [293,293,293,293,293,293,293,293,293,293, 323],
+ "852": [293,293,293,293,293,293,293,293,293,293, 323],
+ "853": [293,293,293,293,293,293,293,293,293,293, 323],
+ "854": [293,293,293,293,293,293,293,293,293,293, 323],
+ "855": [293,293,293,293,293,293,293,293,293,293, 323],
+ "856": [293,293,293,293,293,293,293,293,293,293, 323],
+ "857": [293,293,293,293,293,293,293,293,293,293, 323],
+ "858": [293,293,293,293,293,293,293,293,293,293, 323],
+ "859": [293,293,293,293,293,293,293,293,293,293, 323],
+ "860": [293,293,293,293,293,293,293,293,293,293, 323],
+ "861": [293,293,293,293,293,293,293,293,293,293, 323],
+ "862": [293,293,293,293,293,293,293,293,293,293, 323],
+ "863": [293,293,293,293,293,293,293,293,293,293, 323],
+ "864": [293,293,293,293,293,293,293,293,293,293, 323],
+ "865": [293,293,293,293,293,293,293,293,293,293, 323],
+ "866": [293,293,293,293,293,293,293,293,293,293, 323],
+ "867": [293,293,293,293,293,293,293,293,293,293, 323],
+ "868": [293,293,293,293,293,293,293,293,293,293, 323],
+ "869": [293,293,293,293,293,293,293,293,293,293, 323],
+ "870": [293,293,293,293,293,293,293,293,293,293, 323],
+ "871": [293,293,293,293,293,293,293,293,293,293, 323],
+ "872": [293,293,293,293,293,293,293,293,293,293, 323],
+ "873": [293,293,293,293,293,293,293,293,293,293, 323],
+ "874": [293,293,293,293,293,293,293,293,293,293, 323],
+ "875": [293,293,293,293,293,293,293,293,293,293, 323],
+ "876": [293,293,293,293,293,293,293,293,293,293, 323],
+ "877": [293,293,293,293,293,293,293,293,293,293, 323],
+ "878": [293,293,293,293,293,293,293,293,293,293, 323],
+ "879": [293,293,293,293,293,293,293,293,293,293, 323],
+ "880": [293,293,293,293,293,293,293,293,293,293, 323],
+ "881": [293,293,293,293,293,293,293,293,293,293, 323],
+ "882": [293,293,293,293,293,293,293,293,293,293, 323],
+ "883": [293,293,293,293,293,293,293,293,293,293, 323],
+ "884": [293,293,293,293,293,293,293,293,293,293, 323],
+ "885": [293,293,293,293,293,293,293,293,293,293, 323],
+ "886": [293,293,293,293,293,293,293,293,293,293, 323],
+ "887": [293,293,293,293,293,293,293,293,293,293, 323],
+ "888": [293,293,293,293,293,293,293,293,293,293, 323],
+ "889": [293,293,293,293,293,293,293,293,293,293, 323],
+ "890": [293,293,293,293,293,293,293,293,293,293, 323],
+ "891": [293,293,293,293,293,293,293,293,293,293, 323],
+ "892": [293,293,293,293,293,293,293,293,293,293, 323],
+ "893": [293,293,293,293,293,293,293,293,293,293, 323],
+ "894": [293,293,293,293,293,293,293,293,293,293, 323],
+ "895": [293,293,293,293,293,293,293,293,293,293, 323],
+ "896": [293,293,293,293,293,293,293,293,293,293, 323],
+ "897": [293,293,293,293,293,293,293,293,293,293, 323],
+ "898": [293,293,293,293,293,293,293,293,293,293, 323],
+ "899": [293,293,293,293,293,293,293,293,293,293, 323],
+ "900": [293,293,293,293,293,293,293,293,293,293, 323],
+ "901": [293,293,293,293,293,293,293,293,293,293, 323],
+ "902": [293,293,293,293,293,293,293,293,293,293, 323],
+ "903": [293,293,293,293,293,293,293,293,293,293, 323],
+ "904": [293,293,293,293,293,293,293,293,293,293, 323],
+ "905": [293,293,293,293,293,293,293,293,293,293, 323],
+ "906": [293,293,293,293,293,293,293,293,293,293, 323],
+ "907": [293,293,293,293,293,293,293,293,293,293, 323],
+ "908": [293,293,293,293,293,293,293,293,293,293, 323],
+ "909": [293,293,293,293,293,293,293,293,293,293, 323],
+ "910": [293,293,293,293,293,293,293,293,293,293, 323],
+ "911": [293,293,293,293,293,293,293,293,293,293, 323],
+ "912": [293,293,293,293,293,293,293,293,293,293, 323],
+ "913": [293,293,293,293,293,293,293,293,293,293, 323],
+ "914": [293,293,293,293,293,293,293,293,293,293, 323],
+ "915": [293,293,293,293,293,293,293,293,293,293, 323],
+ "916": [293,293,293,293,293,293,293,293,293,293, 323],
+ "917": [293,293,293,293,293,293,293,293,293,293, 323],
+ "918": [293,293,293,293,293,293,293,293,293,293, 323],
+ "919": [293,293,293,293,293,293,293,293,293,293, 323],
+ "920": [293,293,293,293,293,293,293,293,293,293, 323],
+ "921": [293,293,293,293,293,293,293,293,293,293, 323],
+ "922": [293,293,293,293,293,293,293,293,293,293, 323],
+ "923": [293,293,293,293,293,293,293,293,293,293, 323],
+ "924": [293,293,293,293,293,293,293,293,293,293, 323],
+ "925": [293,293,293,293,293,293,293,293,293,293, 323],
+ "926": [293,293,293,293,293,293,293,293,293,293, 323],
+ "927": [293,293,293,293,293,293,293,293,293,293, 323],
+ "928": [293,293,293,293,293,293,293,293,293,293, 323],
+ "929": [293,293,293,293,293,293,293,293,293,293, 323],
+ "930": [293,293,293,293,293,293,293,293,293,293, 323],
+ "931": [293,293,293,293,293,293,293,293,293,293, 323],
+ "932": [293,293,293,293,293,293,293,293,293,293, 323],
+ "933": [293,293,293,293,293,293,293,293,293,293, 323],
+ "934": [293,293,293,293,293,293,293,293,293,293, 323],
+ "935": [293,293,293,293,293,293,293,293,293,293, 323],
+ "936": [293,293,293,293,293,293,293,293,293,293, 323],
+ "937": [293,293,293,293,293,293,293,293,293,293, 323],
+ "938": [293,293,293,293,293,293,293,293,293,293, 323],
+ "939": [293,293,293,293,293,293,293,293,293,293, 323],
+ "940": [293,293,293,293,293,293,293,293,293,293, 323],
+ "941": [293,293,293,293,293,293,293,293,293,293, 323],
+ "942": [293,293,293,293,293,293,293,293,293,293, 323],
+ "943": [293,293,293,293,293,293,293,293,293,293, 323],
+ "944": [293,293,293,293,293,293,293,293,293,293, 323],
+ "945": [293,293,293,293,293,293,293,293,293,293, 323],
+ "946": [293,293,293,293,293,293,293,293,293,293, 323],
+ "947": [293,293,293,293,293,293,293,293,293,293, 323],
+ "948": [293,293,293,293,293,293,293,293,293,293, 323],
+ "949": [293,293,293,293,293,293,293,293,293,293, 323],
+ "950": [293,293,293,293,293,293,293,293,293,293, 323],
+ "951": [293,293,293,293,293,293,293,293,293,293, 323],
+ "952": [293,293,293,293,293,293,293,293,293,293, 323],
+ "953": [293,293,293,293,293,293,293,293,293,293, 323],
+ "954": [293,293,293,293,293,293,293,293,293,293, 323],
+ "955": [293,293,293,293,293,293,293,293,293,293, 323],
+ "956": [293,293,293,293,293,293,293,293,293,293, 323],
+ "957": [293,293,293,293,293,293,293,293,293,293, 323],
+ "958": [293,293,293,293,293,293,293,293,293,293, 323],
+ "959": [293,293,293,293,293,293,293,293,293,293, 323],
+ "960": [293,293,293,293,293,293,293,293,293,293, 323],
+ "961": [293,293,293,293,293,293,293,293,293,293, 323],
+ "962": [293,293,293,293,293,293,293,293,293,293, 323],
+ "963": [293,293,293,293,293,293,293,293,293,293, 323],
+ "964": [293,293,293,293,293,293,293,293,293,293, 323],
+ "965": [293,293,293,293,293,293,293,293,293,293, 323],
+ "966": [293,293,293,293,293,293,293,293,293,293, 323],
+ "967": [293,293,293,293,293,293,293,293,293,293, 323],
+ "968": [293,293,293,293,293,293,293,293,293,293, 323],
+ "969": [293,293,293,293,293,293,293,293,293,293, 323],
+ "970": [293,293,293,293,293,293,293,293,293,293, 323],
+ "971": [293,293,293,293,293,293,293,293,293,293, 323],
+ "972": [293,293,293,293,293,293,293,293,293,293, 323],
+ "973": [293,293,293,293,293,293,293,293,293,293, 323],
+ "974": [293,293,293,293,293,293,293,293,293,293, 323],
+ "975": [293,293,293,293,293,293,293,293,293,293, 323],
+ "976": [293,293,293,293,293,293,293,293,293,293, 323],
+ "977": [293,293,293,293,293,293,293,293,293,293, 323],
+ "978": [293,293,293,293,293,293,293,293,293,293, 323],
+ "979": [293,293,293,293,293,293,293,293,293,293, 323],
+ "980": [293,293,293,293,293,293,293,293,293,293, 323],
+ "981": [293,293,293,293,293,293,293,293,293,293, 323],
+ "982": [293,293,293,293,293,293,293,293,293,293, 323],
+ "983": [293,293,293,293,293,293,293,293,293,293, 323],
+ "984": [293,293,293,293,293,293,293,293,293,293, 323],
+ "985": [293,293,293,293,293,293,293,293,293,293, 323],
+ "986": [293,293,293,293,293,293,293,293,293,293, 323],
+ "987": [293,293,293,293,293,293,293,293,293,293, 323],
+ "988": [293,293,293,293,293,293,293,293,293,293, 323],
+ "989": [293,293,293,293,293,293,293,293,293,293, 323],
+ "990": [293,293,293,293,293,293,293,293,293,293, 323],
+ "991": [293,293,293,293,293,293,293,293,293,293, 323],
+ "992": [293,293,293,293,293,293,293,293,293,293, 323],
+ "993": [293,293,293,293,293,293,293,293,293,293, 323],
+ "994": [293,293,293,293,293,293,293,293,293,293, 323],
+ "995": [293,293,293,293,293,293,293,293,293,293, 323],
+ "996": [293,293,293,293,293,293,293,293,293,293, 323],
+ "997": [293,293,293,293,293,293,293,293,293,293, 323],
+ "998": [293,293,293,293,293,293,293,293,293,293, 323],
+ "999": [293,293,293,293,293,293,293,293,293,293, 323],
+ "1000": [293,293,293,293,293,293,293,293,293,293, 323],
+ "1001": [293,293,293,293,293,293,293,293,293,293, 323],
+ "1002": [293,293,293,293,293,293,293,293,293,293, 323],
+ "1003": [293,293,293,293,293,293,293,293,293,293, 323],
+ "1004": [293,293,293,293,293,293,293,293,293,293, 323],
+ "1005": [293,293,293,293,293,293,293,293,293,293, 323]
+ }
+}
\ No newline at end of file
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/0/radius.json b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/0/radius.json
new file mode 100644
index 0000000..aa6ed29
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/0/radius.json
@@ -0,0 +1,1011 @@
+{
+ "name": "radius",
+ "data":
+ {
+ "1": [0.001],
+ "2": [0.001],
+ "3": [0.001],
+ "4": [0.001],
+ "5": [0.001],
+ "6": [0.001],
+ "7": [0.001],
+ "8": [0.001],
+ "9": [0.001],
+ "10": [0.001],
+ "11": [0.001],
+ "12": [0.001],
+ "13": [0.001],
+ "14": [0.001],
+ "15": [0.001],
+ "16": [0.001],
+ "17": [0.001],
+ "18": [0.001],
+ "19": [0.001],
+ "20": [0.001],
+ "21": [0.001],
+ "22": [0.001],
+ "23": [0.001],
+ "24": [0.001],
+ "25": [0.001],
+ "26": [0.001],
+ "27": [0.001],
+ "28": [0.001],
+ "29": [0.001],
+ "30": [0.001],
+ "31": [0.001],
+ "32": [0.001],
+ "33": [0.001],
+ "34": [0.001],
+ "35": [0.001],
+ "36": [0.001],
+ "37": [0.001],
+ "38": [0.001],
+ "39": [0.001],
+ "40": [0.001],
+ "41": [0.001],
+ "42": [0.001],
+ "43": [0.001],
+ "44": [0.001],
+ "45": [0.001],
+ "46": [0.001],
+ "47": [0.001],
+ "48": [0.001],
+ "49": [0.001],
+ "50": [0.001],
+ "51": [0.001],
+ "52": [0.001],
+ "53": [0.001],
+ "54": [0.001],
+ "55": [0.001],
+ "56": [0.001],
+ "57": [0.001],
+ "58": [0.001],
+ "59": [0.001],
+ "60": [0.001],
+ "61": [0.001],
+ "62": [0.001],
+ "63": [0.001],
+ "64": [0.001],
+ "65": [0.001],
+ "66": [0.001],
+ "67": [0.001],
+ "68": [0.001],
+ "69": [0.001],
+ "70": [0.001],
+ "71": [0.001],
+ "72": [0.001],
+ "73": [0.001],
+ "74": [0.001],
+ "75": [0.001],
+ "76": [0.001],
+ "77": [0.001],
+ "78": [0.001],
+ "79": [0.001],
+ "80": [0.001],
+ "81": [0.001],
+ "82": [0.001],
+ "83": [0.001],
+ "84": [0.001],
+ "85": [0.001],
+ "86": [0.001],
+ "87": [0.001],
+ "88": [0.001],
+ "89": [0.001],
+ "90": [0.001],
+ "91": [0.001],
+ "92": [0.001],
+ "93": [0.001],
+ "94": [0.001],
+ "95": [0.001],
+ "96": [0.001],
+ "97": [0.001],
+ "98": [0.001],
+ "99": [0.001],
+ "100": [0.001],
+ "101": [0.001],
+ "102": [0.001],
+ "103": [0.001],
+ "104": [0.001],
+ "105": [0.001],
+ "106": [0.001],
+ "107": [0.001],
+ "108": [0.001],
+ "109": [0.001],
+ "110": [0.001],
+ "111": [0.001],
+ "112": [0.001],
+ "113": [0.001],
+ "114": [0.001],
+ "115": [0.001],
+ "116": [0.001],
+ "117": [0.001],
+ "118": [0.001],
+ "119": [0.001],
+ "120": [0.001],
+ "121": [0.001],
+ "122": [0.001],
+ "123": [0.001],
+ "124": [0.001],
+ "125": [0.001],
+ "126": [0.001],
+ "127": [0.001],
+ "128": [0.001],
+ "129": [0.001],
+ "130": [0.001],
+ "131": [0.001],
+ "132": [0.001],
+ "133": [0.001],
+ "134": [0.001],
+ "135": [0.001],
+ "136": [0.001],
+ "137": [0.001],
+ "138": [0.001],
+ "139": [0.001],
+ "140": [0.001],
+ "141": [0.001],
+ "142": [0.001],
+ "143": [0.001],
+ "144": [0.001],
+ "145": [0.001],
+ "146": [0.001],
+ "147": [0.001],
+ "148": [0.001],
+ "149": [0.001],
+ "150": [0.001],
+ "151": [0.001],
+ "152": [0.001],
+ "153": [0.001],
+ "154": [0.001],
+ "155": [0.001],
+ "156": [0.001],
+ "157": [0.001],
+ "158": [0.001],
+ "159": [0.001],
+ "160": [0.001],
+ "161": [0.001],
+ "162": [0.001],
+ "163": [0.001],
+ "164": [0.001],
+ "165": [0.001],
+ "166": [0.001],
+ "167": [0.001],
+ "168": [0.001],
+ "169": [0.001],
+ "170": [0.001],
+ "171": [0.001],
+ "172": [0.001],
+ "173": [0.001],
+ "174": [0.001],
+ "175": [0.001],
+ "176": [0.001],
+ "177": [0.001],
+ "178": [0.001],
+ "179": [0.001],
+ "180": [0.001],
+ "181": [0.001],
+ "182": [0.001],
+ "183": [0.001],
+ "184": [0.001],
+ "185": [0.001],
+ "186": [0.001],
+ "187": [0.001],
+ "188": [0.001],
+ "189": [0.001],
+ "190": [0.001],
+ "191": [0.001],
+ "192": [0.001],
+ "193": [0.001],
+ "194": [0.001],
+ "195": [0.001],
+ "196": [0.001],
+ "197": [0.001],
+ "198": [0.001],
+ "199": [0.001],
+ "200": [0.001],
+ "201": [0.001],
+ "202": [0.001],
+ "203": [0.001],
+ "204": [0.001],
+ "205": [0.001],
+ "206": [0.001],
+ "207": [0.001],
+ "208": [0.001],
+ "209": [0.001],
+ "210": [0.001],
+ "211": [0.001],
+ "212": [0.001],
+ "213": [0.001],
+ "214": [0.001],
+ "215": [0.001],
+ "216": [0.001],
+ "217": [0.001],
+ "218": [0.001],
+ "219": [0.001],
+ "220": [0.001],
+ "221": [0.001],
+ "222": [0.001],
+ "223": [0.001],
+ "224": [0.001],
+ "225": [0.001],
+ "226": [0.001],
+ "227": [0.001],
+ "228": [0.001],
+ "229": [0.001],
+ "230": [0.001],
+ "231": [0.001],
+ "232": [0.001],
+ "233": [0.001],
+ "234": [0.001],
+ "235": [0.001],
+ "236": [0.001],
+ "237": [0.001],
+ "238": [0.001],
+ "239": [0.001],
+ "240": [0.001],
+ "241": [0.001],
+ "242": [0.001],
+ "243": [0.001],
+ "244": [0.001],
+ "245": [0.001],
+ "246": [0.001],
+ "247": [0.001],
+ "248": [0.001],
+ "249": [0.001],
+ "250": [0.001],
+ "251": [0.001],
+ "252": [0.001],
+ "253": [0.001],
+ "254": [0.001],
+ "255": [0.001],
+ "256": [0.001],
+ "257": [0.001],
+ "258": [0.001],
+ "259": [0.001],
+ "260": [0.001],
+ "261": [0.001],
+ "262": [0.001],
+ "263": [0.001],
+ "264": [0.001],
+ "265": [0.001],
+ "266": [0.001],
+ "267": [0.001],
+ "268": [0.001],
+ "269": [0.001],
+ "270": [0.001],
+ "271": [0.001],
+ "272": [0.001],
+ "273": [0.001],
+ "274": [0.001],
+ "275": [0.001],
+ "276": [0.001],
+ "277": [0.001],
+ "278": [0.001],
+ "279": [0.001],
+ "280": [0.001],
+ "281": [0.001],
+ "282": [0.001],
+ "283": [0.001],
+ "284": [0.001],
+ "285": [0.001],
+ "286": [0.001],
+ "287": [0.001],
+ "288": [0.001],
+ "289": [0.001],
+ "290": [0.001],
+ "291": [0.001],
+ "292": [0.001],
+ "293": [0.001],
+ "294": [0.001],
+ "295": [0.001],
+ "296": [0.001],
+ "297": [0.001],
+ "298": [0.001],
+ "299": [0.001],
+ "300": [0.001],
+ "301": [0.001],
+ "302": [0.001],
+ "303": [0.001],
+ "304": [0.001],
+ "305": [0.001],
+ "306": [0.001],
+ "307": [0.001],
+ "308": [0.001],
+ "309": [0.001],
+ "310": [0.001],
+ "311": [0.001],
+ "312": [0.001],
+ "313": [0.001],
+ "314": [0.001],
+ "315": [0.001],
+ "316": [0.001],
+ "317": [0.001],
+ "318": [0.001],
+ "319": [0.001],
+ "320": [0.001],
+ "321": [0.001],
+ "322": [0.001],
+ "323": [0.001],
+ "324": [0.001],
+ "325": [0.001],
+ "326": [0.001],
+ "327": [0.001],
+ "328": [0.001],
+ "329": [0.001],
+ "330": [0.001],
+ "331": [0.001],
+ "332": [0.001],
+ "333": [0.001],
+ "334": [0.001],
+ "335": [0.001],
+ "336": [0.001],
+ "337": [0.001],
+ "338": [0.001],
+ "339": [0.001],
+ "340": [0.001],
+ "341": [0.001],
+ "342": [0.001],
+ "343": [0.001],
+ "344": [0.001],
+ "345": [0.001],
+ "346": [0.001],
+ "347": [0.001],
+ "348": [0.001],
+ "349": [0.001],
+ "350": [0.001],
+ "351": [0.001],
+ "352": [0.001],
+ "353": [0.001],
+ "354": [0.001],
+ "355": [0.001],
+ "356": [0.001],
+ "357": [0.001],
+ "358": [0.001],
+ "359": [0.001],
+ "360": [0.001],
+ "361": [0.001],
+ "362": [0.001],
+ "363": [0.001],
+ "364": [0.001],
+ "365": [0.001],
+ "366": [0.001],
+ "367": [0.001],
+ "368": [0.001],
+ "369": [0.001],
+ "370": [0.001],
+ "371": [0.001],
+ "372": [0.001],
+ "373": [0.001],
+ "374": [0.001],
+ "375": [0.001],
+ "376": [0.001],
+ "377": [0.001],
+ "378": [0.001],
+ "379": [0.001],
+ "380": [0.001],
+ "381": [0.001],
+ "382": [0.001],
+ "383": [0.001],
+ "384": [0.001],
+ "385": [0.001],
+ "386": [0.001],
+ "387": [0.001],
+ "388": [0.001],
+ "389": [0.001],
+ "390": [0.001],
+ "391": [0.001],
+ "392": [0.001],
+ "393": [0.001],
+ "394": [0.001],
+ "395": [0.001],
+ "396": [0.001],
+ "397": [0.001],
+ "398": [0.001],
+ "399": [0.001],
+ "400": [0.001],
+ "401": [0.001],
+ "402": [0.001],
+ "403": [0.001],
+ "404": [0.001],
+ "405": [0.001],
+ "406": [0.001],
+ "407": [0.001],
+ "408": [0.001],
+ "409": [0.001],
+ "410": [0.001],
+ "411": [0.001],
+ "412": [0.001],
+ "413": [0.001],
+ "414": [0.001],
+ "415": [0.001],
+ "416": [0.001],
+ "417": [0.001],
+ "418": [0.001],
+ "419": [0.001],
+ "420": [0.001],
+ "421": [0.001],
+ "422": [0.001],
+ "423": [0.001],
+ "424": [0.001],
+ "425": [0.001],
+ "426": [0.001],
+ "427": [0.001],
+ "428": [0.001],
+ "429": [0.001],
+ "430": [0.001],
+ "431": [0.001],
+ "432": [0.001],
+ "433": [0.001],
+ "434": [0.001],
+ "435": [0.001],
+ "436": [0.001],
+ "437": [0.001],
+ "438": [0.001],
+ "439": [0.001],
+ "440": [0.001],
+ "441": [0.001],
+ "442": [0.001],
+ "443": [0.001],
+ "444": [0.001],
+ "445": [0.001],
+ "446": [0.001],
+ "447": [0.001],
+ "448": [0.001],
+ "449": [0.001],
+ "450": [0.001],
+ "451": [0.001],
+ "452": [0.001],
+ "453": [0.001],
+ "454": [0.001],
+ "455": [0.001],
+ "456": [0.001],
+ "457": [0.001],
+ "458": [0.001],
+ "459": [0.001],
+ "460": [0.001],
+ "461": [0.001],
+ "462": [0.001],
+ "463": [0.001],
+ "464": [0.001],
+ "465": [0.001],
+ "466": [0.001],
+ "467": [0.001],
+ "468": [0.001],
+ "469": [0.001],
+ "470": [0.001],
+ "471": [0.001],
+ "472": [0.001],
+ "473": [0.001],
+ "474": [0.001],
+ "475": [0.001],
+ "476": [0.001],
+ "477": [0.001],
+ "478": [0.001],
+ "479": [0.001],
+ "480": [0.001],
+ "481": [0.001],
+ "482": [0.001],
+ "483": [0.001],
+ "484": [0.001],
+ "485": [0.001],
+ "486": [0.001],
+ "487": [0.001],
+ "488": [0.001],
+ "489": [0.001],
+ "490": [0.001],
+ "491": [0.001],
+ "492": [0.001],
+ "493": [0.001],
+ "494": [0.001],
+ "495": [0.001],
+ "496": [0.001],
+ "497": [0.001],
+ "498": [0.001],
+ "499": [0.001],
+ "500": [0.001],
+ "501": [0.001],
+ "502": [0.001],
+ "503": [0.001],
+ "504": [0.001],
+ "505": [0.001],
+ "506": [0.001],
+ "507": [0.001],
+ "508": [0.001],
+ "509": [0.001],
+ "510": [0.001],
+ "511": [0.001],
+ "512": [0.001],
+ "513": [0.001],
+ "514": [0.001],
+ "515": [0.001],
+ "516": [0.001],
+ "517": [0.001],
+ "518": [0.001],
+ "519": [0.001],
+ "520": [0.001],
+ "521": [0.001],
+ "522": [0.001],
+ "523": [0.001],
+ "524": [0.001],
+ "525": [0.001],
+ "526": [0.001],
+ "527": [0.001],
+ "528": [0.001],
+ "529": [0.001],
+ "530": [0.001],
+ "531": [0.001],
+ "532": [0.001],
+ "533": [0.001],
+ "534": [0.001],
+ "535": [0.001],
+ "536": [0.001],
+ "537": [0.001],
+ "538": [0.001],
+ "539": [0.001],
+ "540": [0.001],
+ "541": [0.001],
+ "542": [0.001],
+ "543": [0.001],
+ "544": [0.001],
+ "545": [0.001],
+ "546": [0.001],
+ "547": [0.001],
+ "548": [0.001],
+ "549": [0.001],
+ "550": [0.001],
+ "551": [0.001],
+ "552": [0.001],
+ "553": [0.001],
+ "554": [0.001],
+ "555": [0.001],
+ "556": [0.001],
+ "557": [0.001],
+ "558": [0.001],
+ "559": [0.001],
+ "560": [0.001],
+ "561": [0.001],
+ "562": [0.001],
+ "563": [0.001],
+ "564": [0.001],
+ "565": [0.001],
+ "566": [0.001],
+ "567": [0.001],
+ "568": [0.001],
+ "569": [0.001],
+ "570": [0.001],
+ "571": [0.001],
+ "572": [0.001],
+ "573": [0.001],
+ "574": [0.001],
+ "575": [0.001],
+ "576": [0.001],
+ "577": [0.001],
+ "578": [0.001],
+ "579": [0.001],
+ "580": [0.001],
+ "581": [0.001],
+ "582": [0.001],
+ "583": [0.001],
+ "584": [0.001],
+ "585": [0.001],
+ "586": [0.001],
+ "587": [0.001],
+ "588": [0.001],
+ "589": [0.001],
+ "590": [0.001],
+ "591": [0.001],
+ "592": [0.001],
+ "593": [0.001],
+ "594": [0.001],
+ "595": [0.001],
+ "596": [0.001],
+ "597": [0.001],
+ "598": [0.001],
+ "599": [0.001],
+ "600": [0.001],
+ "601": [0.001],
+ "602": [0.001],
+ "603": [0.001],
+ "604": [0.001],
+ "605": [0.001],
+ "606": [0.001],
+ "607": [0.001],
+ "608": [0.001],
+ "609": [0.001],
+ "610": [0.001],
+ "611": [0.001],
+ "612": [0.001],
+ "613": [0.001],
+ "614": [0.001],
+ "615": [0.001],
+ "616": [0.001],
+ "617": [0.001],
+ "618": [0.001],
+ "619": [0.001],
+ "620": [0.001],
+ "621": [0.001],
+ "622": [0.001],
+ "623": [0.001],
+ "624": [0.001],
+ "625": [0.001],
+ "626": [0.001],
+ "627": [0.001],
+ "628": [0.001],
+ "629": [0.001],
+ "630": [0.001],
+ "631": [0.001],
+ "632": [0.001],
+ "633": [0.001],
+ "634": [0.001],
+ "635": [0.001],
+ "636": [0.001],
+ "637": [0.001],
+ "638": [0.001],
+ "639": [0.001],
+ "640": [0.001],
+ "641": [0.001],
+ "642": [0.001],
+ "643": [0.001],
+ "644": [0.001],
+ "645": [0.001],
+ "646": [0.001],
+ "647": [0.001],
+ "648": [0.001],
+ "649": [0.001],
+ "650": [0.001],
+ "651": [0.001],
+ "652": [0.001],
+ "653": [0.001],
+ "654": [0.001],
+ "655": [0.001],
+ "656": [0.001],
+ "657": [0.001],
+ "658": [0.001],
+ "659": [0.001],
+ "660": [0.001],
+ "661": [0.001],
+ "662": [0.001],
+ "663": [0.001],
+ "664": [0.001],
+ "665": [0.001],
+ "666": [0.001],
+ "667": [0.001],
+ "668": [0.001],
+ "669": [0.001],
+ "670": [0.001],
+ "671": [0.001],
+ "672": [0.001],
+ "673": [0.001],
+ "674": [0.001],
+ "675": [0.001],
+ "676": [0.001],
+ "677": [0.001],
+ "678": [0.001],
+ "679": [0.001],
+ "680": [0.001],
+ "681": [0.001],
+ "682": [0.001],
+ "683": [0.001],
+ "684": [0.001],
+ "685": [0.001],
+ "686": [0.001],
+ "687": [0.001],
+ "688": [0.001],
+ "689": [0.001],
+ "690": [0.001],
+ "691": [0.001],
+ "692": [0.001],
+ "693": [0.001],
+ "694": [0.001],
+ "695": [0.001],
+ "696": [0.001],
+ "697": [0.001],
+ "698": [0.001],
+ "699": [0.001],
+ "700": [0.001],
+ "701": [0.001],
+ "702": [0.001],
+ "703": [0.001],
+ "704": [0.001],
+ "705": [0.001],
+ "706": [0.001],
+ "707": [0.001],
+ "708": [0.001],
+ "709": [0.001],
+ "710": [0.001],
+ "711": [0.001],
+ "712": [0.001],
+ "713": [0.001],
+ "714": [0.001],
+ "715": [0.001],
+ "716": [0.001],
+ "717": [0.001],
+ "718": [0.001],
+ "719": [0.001],
+ "720": [0.001],
+ "721": [0.001],
+ "722": [0.001],
+ "723": [0.001],
+ "724": [0.001],
+ "725": [0.001],
+ "726": [0.001],
+ "727": [0.001],
+ "728": [0.001],
+ "729": [0.001],
+ "730": [0.001],
+ "731": [0.001],
+ "732": [0.001],
+ "733": [0.001],
+ "734": [0.001],
+ "735": [0.001],
+ "736": [0.001],
+ "737": [0.001],
+ "738": [0.001],
+ "739": [0.001],
+ "740": [0.001],
+ "741": [0.001],
+ "742": [0.001],
+ "743": [0.001],
+ "744": [0.001],
+ "745": [0.001],
+ "746": [0.001],
+ "747": [0.001],
+ "748": [0.001],
+ "749": [0.001],
+ "750": [0.001],
+ "751": [0.001],
+ "752": [0.001],
+ "753": [0.001],
+ "754": [0.001],
+ "755": [0.001],
+ "756": [0.001],
+ "757": [0.001],
+ "758": [0.001],
+ "759": [0.001],
+ "760": [0.001],
+ "761": [0.001],
+ "762": [0.001],
+ "763": [0.001],
+ "764": [0.001],
+ "765": [0.001],
+ "766": [0.001],
+ "767": [0.001],
+ "768": [0.001],
+ "769": [0.001],
+ "770": [0.001],
+ "771": [0.001],
+ "772": [0.001],
+ "773": [0.001],
+ "774": [0.001],
+ "775": [0.001],
+ "776": [0.001],
+ "777": [0.001],
+ "778": [0.001],
+ "779": [0.001],
+ "780": [0.001],
+ "781": [0.001],
+ "782": [0.001],
+ "783": [0.001],
+ "784": [0.001],
+ "785": [0.001],
+ "786": [0.001],
+ "787": [0.001],
+ "788": [0.001],
+ "789": [0.001],
+ "790": [0.001],
+ "791": [0.001],
+ "792": [0.001],
+ "793": [0.001],
+ "794": [0.001],
+ "795": [0.001],
+ "796": [0.001],
+ "797": [0.001],
+ "798": [0.001],
+ "799": [0.001],
+ "800": [0.001],
+ "801": [0.001],
+ "802": [0.001],
+ "803": [0.001],
+ "804": [0.001],
+ "805": [0.001],
+ "806": [0.001],
+ "807": [0.001],
+ "808": [0.001],
+ "809": [0.001],
+ "810": [0.001],
+ "811": [0.001],
+ "812": [0.001],
+ "813": [0.001],
+ "814": [0.001],
+ "815": [0.001],
+ "816": [0.001],
+ "817": [0.001],
+ "818": [0.001],
+ "819": [0.001],
+ "820": [0.001],
+ "821": [0.001],
+ "822": [0.001],
+ "823": [0.001],
+ "824": [0.001],
+ "825": [0.001],
+ "826": [0.001],
+ "827": [0.001],
+ "828": [0.001],
+ "829": [0.001],
+ "830": [0.001],
+ "831": [0.001],
+ "832": [0.001],
+ "833": [0.001],
+ "834": [0.001],
+ "835": [0.001],
+ "836": [0.001],
+ "837": [0.001],
+ "838": [0.001],
+ "839": [0.001],
+ "840": [0.001],
+ "841": [0.001],
+ "842": [0.001],
+ "843": [0.001],
+ "844": [0.001],
+ "845": [0.001],
+ "846": [0.001],
+ "847": [0.001],
+ "848": [0.001],
+ "849": [0.001],
+ "850": [0.001],
+ "851": [0.001],
+ "852": [0.001],
+ "853": [0.001],
+ "854": [0.001],
+ "855": [0.001],
+ "856": [0.001],
+ "857": [0.001],
+ "858": [0.001],
+ "859": [0.001],
+ "860": [0.001],
+ "861": [0.001],
+ "862": [0.001],
+ "863": [0.001],
+ "864": [0.001],
+ "865": [0.001],
+ "866": [0.001],
+ "867": [0.001],
+ "868": [0.001],
+ "869": [0.001],
+ "870": [0.001],
+ "871": [0.001],
+ "872": [0.001],
+ "873": [0.001],
+ "874": [0.001],
+ "875": [0.001],
+ "876": [0.001],
+ "877": [0.001],
+ "878": [0.001],
+ "879": [0.001],
+ "880": [0.001],
+ "881": [0.001],
+ "882": [0.001],
+ "883": [0.001],
+ "884": [0.001],
+ "885": [0.001],
+ "886": [0.001],
+ "887": [0.001],
+ "888": [0.001],
+ "889": [0.001],
+ "890": [0.001],
+ "891": [0.001],
+ "892": [0.001],
+ "893": [0.001],
+ "894": [0.001],
+ "895": [0.001],
+ "896": [0.001],
+ "897": [0.001],
+ "898": [0.001],
+ "899": [0.001],
+ "900": [0.001],
+ "901": [0.001],
+ "902": [0.001],
+ "903": [0.001],
+ "904": [0.001],
+ "905": [0.001],
+ "906": [0.001],
+ "907": [0.001],
+ "908": [0.001],
+ "909": [0.001],
+ "910": [0.001],
+ "911": [0.001],
+ "912": [0.001],
+ "913": [0.001],
+ "914": [0.001],
+ "915": [0.001],
+ "916": [0.001],
+ "917": [0.001],
+ "918": [0.001],
+ "919": [0.001],
+ "920": [0.001],
+ "921": [0.001],
+ "922": [0.001],
+ "923": [0.001],
+ "924": [0.001],
+ "925": [0.001],
+ "926": [0.001],
+ "927": [0.001],
+ "928": [0.001],
+ "929": [0.001],
+ "930": [0.001],
+ "931": [0.001],
+ "932": [0.001],
+ "933": [0.001],
+ "934": [0.001],
+ "935": [0.001],
+ "936": [0.001],
+ "937": [0.001],
+ "938": [0.001],
+ "939": [0.001],
+ "940": [0.001],
+ "941": [0.001],
+ "942": [0.001],
+ "943": [0.001],
+ "944": [0.001],
+ "945": [0.001],
+ "946": [0.001],
+ "947": [0.001],
+ "948": [0.001],
+ "949": [0.001],
+ "950": [0.001],
+ "951": [0.001],
+ "952": [0.001],
+ "953": [0.001],
+ "954": [0.001],
+ "955": [0.001],
+ "956": [0.001],
+ "957": [0.001],
+ "958": [0.001],
+ "959": [0.001],
+ "960": [0.001],
+ "961": [0.001],
+ "962": [0.001],
+ "963": [0.001],
+ "964": [0.001],
+ "965": [0.001],
+ "966": [0.001],
+ "967": [0.001],
+ "968": [0.001],
+ "969": [0.001],
+ "970": [0.001],
+ "971": [0.001],
+ "972": [0.001],
+ "973": [0.001],
+ "974": [0.001],
+ "975": [0.001],
+ "976": [0.001],
+ "977": [0.001],
+ "978": [0.001],
+ "979": [0.001],
+ "980": [0.001],
+ "981": [0.001],
+ "982": [0.001],
+ "983": [0.001],
+ "984": [0.001],
+ "985": [0.001],
+ "986": [0.001],
+ "987": [0.001],
+ "988": [0.001],
+ "989": [0.001],
+ "990": [0.001],
+ "991": [0.001],
+ "992": [0.001],
+ "993": [0.001],
+ "994": [0.001],
+ "995": [0.001],
+ "996": [0.001],
+ "997": [0.001],
+ "998": [0.001],
+ "999": [0.001],
+ "1000": [0.001],
+ "1001": [0.001],
+ "1002": [0.001],
+ "1003": [0.001],
+ "1004": [0.001],
+ "1005": [0.001]
+ }
+}
\ No newline at end of file
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/genPascalInput.m b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/genPascalInput.m
new file mode 100644
index 0000000..6851658
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/genPascalInput.m
@@ -0,0 +1,58 @@
+% *.m file
+clear
+clc
+more off
+
+numberOfParticles = 1005
+
+%================================================================
+text = '[293,293,293,293,293,293,293,293,293,293, 323]';
+
+fid=fopen('0/heat.json','w');
+
+% header
+fprintf(fid, ['{\n']);
+fprintf(fid, [' "name": "heat",\n']);
+fprintf(fid, [' "data":\n']);
+fprintf(fid, [' {\n']);
+
+for iP=1:numberOfParticles
+ index=iP;
+ fprintf(fid, [' "',num2str(index), '": ', text ]);
+ if(iP==numberOfParticles)
+ fprintf(fid, ['\n']);
+ else
+ fprintf(fid, [', \n']);
+ end
+end
+
+% footer
+fprintf(fid, [' }\n']);
+fprintf(fid, ['}']);
+fclose(fid);
+%================================================================
+text = '[0.001]';
+
+fid=fopen('0/radius.json','w');
+
+% header
+fprintf(fid, ['{\n']);
+fprintf(fid, [' "name": "radius",\n']);
+fprintf(fid, [' "data":\n']);
+fprintf(fid, [' {\n']);
+
+for iP=1:numberOfParticles
+ index=iP;
+ fprintf(fid, [' "',num2str(index), '": ', text ]);
+ if(iP==numberOfParticles)
+ fprintf(fid, ['\n']);
+ else
+ fprintf(fid, [', \n']);
+ end
+end
+
+% footer
+fprintf(fid, [' }\n']);
+fprintf(fid, ['}']);
+fclose(fid);
+%================================================================
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/in.pascal b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/in.pascal
new file mode 100644
index 0000000..ed260b8
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/in.pascal
@@ -0,0 +1,22 @@
+particle_mesh nGridPoints 10
+
+particle_data number_particles 1005
+#coupling json myCoupling
+coupling liggghts
+
+#Heat properties
+model propertiesThermo heatThermalConductivity_solid
+model propertiesThermo heatCapacity_solid
+model propertiesThermo heatDensity_solid
+
+
+#Equations
+#Option 1: cool with implicit coupling
+#modelEqn 1DSpherical heat BC0 1 BC1 2 # 2 Convective: will cool based on coefficient and fluid temp
+
+#Option 2: cool with explicit setting of flux
+modelEqn 1DSpherical heat BC0 1 BC1 0 # 0 Neumann: will cool with a fixed rate provided by LIGGGHTS
+
+control outputTimeStep 0.1
+control timeStep 5e-6
+#control run 0.000025 init yes
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/coupling_liggghts.json b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/coupling_liggghts.json
new file mode 100644
index 0000000..9c11dbf
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/coupling_liggghts.json
@@ -0,0 +1,7 @@
+{
+ "properties":
+ {
+ "verbose" : false,
+ "pullEvery": 1
+ }
+}
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/integrator.json b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/integrator.json
new file mode 100644
index 0000000..ddd31a9
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/integrator.json
@@ -0,0 +1,18 @@
+{
+ "integrator":
+ {
+ "type": "CVODE",
+ "linearSolver": "CVDiag"
+ },
+ "parameters":
+ {
+ "absTol": 1e-6,
+ "relTol": 1e-6,
+ "mxsteps": -1,
+ "maxord": 3,
+ "deltaTInit": 1e-10,
+ "deltaTMin": 1e-16,
+ "deltaTMax": 1.0,
+ "maxNonLinearIterations": 2
+ }
+}
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/model_heatCapacity_solid.json b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/model_heatCapacity_solid.json
new file mode 100644
index 0000000..5795501
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/model_heatCapacity_solid.json
@@ -0,0 +1,8 @@
+{
+ "properties":
+ {
+ "model" : "const",
+ "const_value" : 800.0
+ }
+
+}
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/model_heatDensity_solid.json b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/model_heatDensity_solid.json
new file mode 100644
index 0000000..f78113f
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/model_heatDensity_solid.json
@@ -0,0 +1,7 @@
+{
+ "properties":
+ {
+ "model": "const",
+ "const_value": 2500
+ }
+}
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/model_heatThermalConductivity_solid.json b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/model_heatThermalConductivity_solid.json
new file mode 100644
index 0000000..e3893ba
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/pascal/settings/model_heatThermalConductivity_solid.json
@@ -0,0 +1,8 @@
+{
+ "properties":
+ {
+ "model" : "const",
+ "const_value" : 0.8
+ }
+
+}
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/settings/parscale.json b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/settings/parscale.json
new file mode 100644
index 0000000..6944c8e
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/settings/parscale.json
@@ -0,0 +1,8 @@
+{
+ "input":
+ {
+ "writeJSON" : true,
+ "writeHDF5" : false
+ }
+
+}
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/controlDict b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/controlDict
new file mode 100644
index 0000000..c5a67ca
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/controlDict
@@ -0,0 +1,219 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "system";
+ object controlDict;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+application cfdemSolverPisoSTM;
+
+startFrom startTime;
+
+startTime 0;
+
+stopAt endTime;
+
+endTime 0.1;//1.5;
+
+deltaT 0.005;
+
+writeControl adjustableRunTime;
+
+writeInterval 0.1;
+
+purgeWrite 0;
+
+writeFormat ascii;
+
+writePrecision 6;
+
+writeCompression uncompressed;
+
+timeFormat general;
+
+timePrecision 6;
+
+runTimeModifiable yes;
+
+adjustTimeStep no;
+
+maxCo 0.1;
+
+maxDeltaT 1;
+
+//libs ( "libgroovyBC.so" );
+
+functions
+(
+
+ probes
+ {
+ type probes;
+ // Where to load it from
+ functionObjectLibs ( "libsampling.so" );
+ // Name of the directory for probe data
+ name probes;
+ probeLocations
+ (
+ (0.05 0.05 -0.499)
+ (0.05 0.05 1.499)
+ );
+
+ // Fields to be probed
+ fields ( p T );
+
+ // Write at same frequency as fields
+ outputControl timeStep;//outputTime;
+ outputInterval 1;
+ }
+
+ volFlow_inlet
+ {
+ type faceSource;
+ functionObjectLibs ("libfieldFunctionObjects.so");
+ enabled true;
+ outputControl outputTime;//timeStep;
+ log true;
+ writeArea true; //write for OF 3.0 to be consistent
+ valueOutput true;
+ source patch;
+ sourceName inlet;
+ operation sum;
+
+ fields
+ (
+ phi
+ );
+ surfaceFormat null;
+ }
+
+ volFlow_outlet
+ {
+ type faceSource;
+ functionObjectLibs ("libfieldFunctionObjects.so");
+ enabled true;
+ outputControl outputTime;//timeStep;
+ log true;
+ writeArea true; //write for OF 3.0 to be consistent
+ valueOutput true;
+ source patch;
+ sourceName outlet;
+ operation sum;
+
+ fields
+ (
+ phi
+ );
+ surfaceFormat null;
+ }
+
+ volFlow_wall
+ {
+ type faceSource;
+ functionObjectLibs ("libfieldFunctionObjects.so");
+ enabled true;
+ outputControl outputTime;//timeStep;
+ log true;
+ writeArea true; //write for OF 3.0 to be consistent
+ valueOutput true;
+ source patch;
+ sourceName wall;
+ operation sum;
+
+ fields
+ (
+ phi
+ );
+ surfaceFormat null;
+ }
+
+/*
+// simpleFunctionObjects
+ heatFlux
+ {
+ type patchHeatFlux;
+ functionObjectLibs
+ (
+ "libsimpleFunctionObjects.so"
+ );
+ verbose true;
+ patches
+ (
+ inlet
+ outlet
+ );
+ fields // name of temp field
+ (
+ T
+ );
+ cp 1007; // cp in [J/(kg*K)]
+ factor 1.188; // density for incomp solvers!
+ }
+
+ massFlux
+ {
+ type patchMassFlow;
+ functionObjectLibs
+ (
+ "libsimpleFunctionObjects.so"
+ );
+ verbose true;
+ patches
+ (
+ inlet
+ outlet
+ );
+ factor 1.188; // density for incomp solvers!
+ }
+
+ pressureDrop
+ {
+ type patchAverage;
+ functionObjectLibs
+ (
+ "libsimpleFunctionObjects.so"
+ );
+ verbose true;
+ patches
+ (
+ inlet
+ outlet
+ );
+ fields
+ (
+ p
+ );
+ factor 1;
+ }
+
+ T
+ {
+ type patchAverage;
+ functionObjectLibs
+ (
+ "libsimpleFunctionObjects.so"
+ );
+ verbose true;
+ patches
+ (
+ inlet
+ outlet
+ );
+ fields // name of temp field
+ (
+ T
+ );
+ factor 1;
+ }*/
+);
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/controlDict.foam b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/controlDict.foam
new file mode 100644
index 0000000..e69de29
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/decomposeParDict b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/decomposeParDict
new file mode 100644
index 0000000..0ac01d7
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/decomposeParDict
@@ -0,0 +1,56 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "system";
+ object decomposeParDict;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+numberOfSubdomains 2;
+
+method simple;
+
+simpleCoeffs
+{
+ n ( 1 1 2 );
+ delta 0.001;
+}
+
+hierarchicalCoeffs
+{
+ n ( 2 2 1 );
+ delta 0.001;
+ order xyz;
+}
+
+metisCoeffs
+{
+}
+
+manualCoeffs
+{
+ dataFile "";
+}
+
+distributed no;
+
+//// Is the case distributed
+//distributed yes;
+//// Per slave (so nProcs-1 entries) the directory above the case.
+//roots
+//(
+// "/tmp"
+// "/tmp"
+//);
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/fvSchemes b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/fvSchemes
new file mode 100644
index 0000000..29629bf
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/fvSchemes
@@ -0,0 +1,78 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "system";
+ object fvSchemes;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+ddtSchemes
+{
+ default Euler;
+}
+
+gradSchemes
+{
+ default Gauss linear;
+ grad(p) Gauss linear;
+ grad(U) Gauss linear;
+}
+
+divSchemes
+{
+ default Gauss linear;
+ div(phi,U) Gauss limitedLinearV 1;
+ div(phi,k) Gauss limitedLinear 1;
+ div(phi,epsilon) Gauss limitedLinear 1;
+ div(phi,R) Gauss limitedLinear 1;
+ div(R) Gauss linear;
+ div(phi,nuTilda) Gauss limitedLinear 1;
+ div((nuEff*dev(grad(U).T()))) Gauss linear;
+ div((viscousTerm*dev(grad(U).T()))) Gauss linear;
+ div((nu*dev(grad(U).T()))) Gauss linear;
+ div(phi,T) Gauss limitedLinear 1; //Gauss upwind; //
+}
+
+laplacianSchemes
+{
+ default Gauss linear corrected;
+ laplacian(nuEff,U) Gauss linear corrected;
+ laplacian(viscousTerm,U) Gauss linear corrected;
+ laplacian(nu,U) Gauss linear corrected;
+ laplacian((1|A(U)),p) Gauss linear corrected;
+ laplacian((voidfraction2|A(U)),p) Gauss linear corrected;
+ laplacian(DkEff,k) Gauss linear corrected;
+ laplacian(DepsilonEff,epsilon) Gauss linear corrected;
+ laplacian(DREff,R) Gauss linear corrected;
+ laplacian(DnuTildaEff,nuTilda) Gauss linear corrected;
+ laplacian((DT*voidfraction),T) Gauss linear corrected;
+}
+
+interpolationSchemes
+{
+ default linear;
+ interpolate(U) linear;
+}
+
+snGradSchemes
+{
+ default corrected;
+}
+
+fluxRequired
+{
+ default no;
+ p ;
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/fvSolution b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/fvSolution
new file mode 100644
index 0000000..a926d09
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/CFD/system/fvSolution
@@ -0,0 +1,114 @@
+/*--------------------------------*- C++ -*----------------------------------*\
+| ========= | |
+| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
+| \\ / O peration | Version: 1.6 |
+| \\ / A nd | Web: www.OpenFOAM.org |
+| \\/ M anipulation | |
+\*---------------------------------------------------------------------------*/
+FoamFile
+{
+ version 2.0;
+ format ascii;
+ class dictionary;
+ location "system";
+ object fvSolution;
+}
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+solvers
+{
+ p
+ {
+ solver PCG;
+ preconditioner DIC;
+ tolerance 1e-06;
+ relTol 0.1;
+ }
+
+ pFinal
+ {
+ solver PCG;
+ preconditioner DIC;
+ tolerance 1e-06;
+ relTol 0;
+ }
+
+ U
+ {
+ solver PBiCG;
+ preconditioner DILU;
+ tolerance 1e-05;
+ relTol 0;
+ }
+
+ UFinal
+ {
+ $U
+ }
+
+ "(k|epsilon)"
+ {
+ solver PBiCG;
+ preconditioner DILU;
+ tolerance 1e-05;
+ relTol 0.1;
+ }
+ "(k|epsilon)Final"
+ {
+ $epsilon;
+ relTol 0;
+ }
+
+ R
+ {
+ solver PBiCG;
+ preconditioner DILU;
+ tolerance 1e-05;
+ relTol 0;
+ }
+
+ nuTilda
+ {
+ solver PBiCG;
+ preconditioner DILU;
+ tolerance 1e-05;
+ relTol 0;
+ }
+
+ "(T|C)"
+ {
+ solver PBiCG;
+ preconditioner DILU;
+ tolerance 1e-06;
+ relTol 0;
+ }
+}
+
+PIMPLE
+{
+ nOuterCorrectors 1;
+}
+relaxationFactors
+{
+ fields
+ {
+ p 1.0;
+ }
+ equations
+ {
+ "U.*" 1.0;
+ "k.*" 1.;
+ "epsilon.*" 1.;
+ }
+}
+
+PISO
+{
+ nCorrectors 4;
+ nNonOrthogonalCorrectors 0;
+ pRefCell 0;
+ pRefValue 0;
+}
+
+
+// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/DEM/in.liggghts_init b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/DEM/in.liggghts_init
new file mode 100755
index 0000000..1275e23
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/DEM/in.liggghts_init
@@ -0,0 +1,69 @@
+echo both
+log ../DEM/log.liggghts
+
+atom_style granular
+atom_modify map array
+boundary m m m
+newton off
+
+communicate single vel yes
+
+units si
+processors 1 1 2
+
+region reg block 0. 0.1 0. 0.1 0. 1.1 units box
+create_box 1 reg
+
+neighbor 0.002 bin
+neigh_modify delay 0
+
+
+# Material properties required for granular pair styles
+
+fix m1 all property/global youngsModulus peratomtype 5.e6
+fix m2 all property/global poissonsRatio peratomtype 0.45
+fix m3 all property/global coefficientRestitution peratomtypepair 1 0.3
+fix m4 all property/global coefficientFriction peratomtypepair 1 0.5
+
+# pair style
+pair_style gran model hertz tangential history #Hertzian without cohesion
+pair_coeff * *
+
+timestep 0.00001
+
+# walls
+fix xwalls1 all wall/gran model hertz tangential history primitive type 1 xplane 0.0
+fix xwalls2 all wall/gran model hertz tangential history primitive type 1 xplane 0.1
+fix ywalls1 all wall/gran model hertz tangential history primitive type 1 yplane 0.0
+fix ywalls2 all wall/gran model hertz tangential history primitive type 1 yplane 0.1
+fix zwalls1 all wall/gran model hertz tangential history primitive type 1 zplane 0.0
+fix zwalls2 all wall/gran model hertz tangential history primitive type 1 zplane 1.1
+
+fix gravi all gravity 9.81 vector 0.0 0.0 -1.0
+
+
+# particle distributions and insertion
+region bc block 0. 0.1 0. 0.1 0. 1.1 units box
+fix pts1 all particletemplate/sphere 15485863 atom_type 1 density constant 2500 radius constant 0.011
+fix pdd1 all particledistribution/discrete 15485867 1 pts1 1.0
+
+fix ins all insert/pack seed 32452843 distributiontemplate pdd1 vel constant 0. 0. -3. insert_every 10000 overlapcheck yes all_in yes particles_in_region 1005 region bc
+
+# apply nve integration to all particles that are inserted as single particles
+fix integr all nve/sphere
+
+# output settings, include total thermal energy
+compute rke all erotate/sphere
+thermo_style custom step atoms ke c_rke vol #f_heattransfer
+thermo 1000
+thermo_modify lost ignore norm no
+compute_modify thermo_temp dynamic yes
+
+#insert the first particles
+run 1
+dump dmp all custom 1000 post/dump.liggghts_init id type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius #f_heattransfer[0] f_heatFlux[0]
+
+run 150000
+
+write_restart post/restart/liggghts.restart
+
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/DEM/in.liggghts_run b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/DEM/in.liggghts_run
new file mode 100644
index 0000000..c2bf2c6
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/DEM/in.liggghts_run
@@ -0,0 +1,95 @@
+echo both
+log ../DEM/log.liggghts
+thermo_log ../DEM/post/thermo.txt
+
+#######################################################
+# variables #
+#######################################################
+variable r0 equal 0.011
+#######################################################
+
+# read packed bed and calc convective heat transfer
+atom_style granular
+atom_modify map array
+boundary m m m
+newton off
+
+communicate single vel yes
+
+units si
+processors 1 1 2
+
+# read the restart file
+read_restart ../DEM/post/restart/liggghts.restart
+
+neighbor ${r0} bin
+neigh_modify delay 0 binsize 0.01
+
+
+# Material properties required for granular pair styles
+
+fix m1 all property/global youngsModulus peratomtype 5.e6
+fix m2 all property/global poissonsRatio peratomtype 0.45
+fix m3 all property/global coefficientRestitution peratomtypepair 1 0.3
+fix m4 all property/global coefficientFriction peratomtypepair 1 0.5
+
+# pair style
+pair_style gran model hertz tangential history
+pair_coeff * *
+
+# timestep, gravity
+timestep 0.00001
+fix gravi all gravity 9.81 vector 0. 0. -1.
+
+# walls
+fix xwalls1 all wall/gran model hertz tangential history primitive type 1 xplane 0.0
+fix xwalls2 all wall/gran model hertz tangential history primitive type 1 xplane 0.1
+fix ywalls1 all wall/gran model hertz tangential history primitive type 1 yplane 0.0
+fix ywalls2 all wall/gran model hertz tangential history primitive type 1 yplane 0.1
+fix zwalls1 all wall/gran model hertz tangential history primitive type 1 zplane 0.0
+fix zwalls2 all wall/gran model hertz tangential history primitive type 1 zplane 1.1
+
+# cfd coupling
+fix cfd all couple/cfd couple_every 100 mpi
+fix cfd2 all couple/cfd/force
+
+
+# heat transfer
+fix ftco all property/global thermalConductivity peratomtype 5. # lambda in [W/(K*m)]
+fix ftca all property/global thermalCapacity peratomtype 0.1 # cp in [J/(kg*K)]
+fix heattransfer all heat/gran initial_temperature 999 ##temperature not relevant - will be overwritten by ParScale
+
+#Option 1: cool with implicit coupling
+#fix cfd3 all couple/cfd/convectiveImpl #this is an IMPLICIT coupling
+
+#Option 2: cool with explicit setting of flux
+fix cfd3 all couple/cfd/convection T0 0 #Temperature is irrelevant, so set to 0
+fix heatTransCoeff all property/atom heatTransCoeff scalar yes no no 0 #NOT USED, but pulled from ParScale by default, so need to provide something here!
+fix heatFluid all property/atom heatFluid scalar yes no no 0 #NOT USED, but pulled from ParScale by default, so need to provide something here!
+
+# set particle temperature for the bed
+run 0
+region total block INF INF INF INF INF INF units box
+set region total property/atom Temp 600.
+
+# apply nve integration to all particles that are inserted as single particles
+fix integr all nve/sphere
+
+#------------------------------Parscale Coupling_pascal-----------------------------------------------
+
+fix coupling_pascal all couple/pascal reneighbor_at_least_every 1 couple_every 1
+fix heatAv all property/atom heatAv scalar no yes no none #average temperature
+fix TempMin all property/atom TempMin scalar no yes no none #minimum particle
+
+#-----------------------------------------------------------------------------------------------------
+
+# output settings, include total thermal energy
+compute rke all erotate/sphere
+thermo_style custom step atoms ke c_rke vol
+thermo 1000
+thermo_modify lost ignore norm no
+compute_modify thermo_temp dynamic yes
+
+dump dmp all custom 20000 ../DEM/post/dump*.liggghts_run id type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius f_Temp[0] f_heatFlux[0] #f_speciesC[0] f_speciesCFlux[0]
+
+run 1
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/DEM/post/restart/.gitignore b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/DEM/post/restart/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/cleanCase.sh b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/cleanCase.sh
new file mode 100755
index 0000000..fc9925f
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/cleanCase.sh
@@ -0,0 +1,71 @@
+#!/bin/bash
+
+#===================================================================#
+# allrun script for testcase as part of test routine
+# run settlingTest CFD part
+# Christoph Goniva - Feb. 2011
+#===================================================================#
+
+#- source CFDEM env vars
+. ~/.bashrc
+
+#--------------------------------------------------------------------------------#
+#- define variables
+casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+#--------------------------------------------------------------------------------#
+
+
+
+#- clean up case
+echo "deleting data at: $casePath ?"
+#read
+rm -r $casePath/*.e*
+rm -r $casePath/*.o*
+rm -r $casePath/log*
+rm -r $casePath/CFD/0.0*
+rm -r $casePath/CFD/log.*
+rm -r $casePath/CFD/averageProps
+rm -r $casePath/CFD/*.OpenFOAM
+rm -r $casePath/CFD/*.restart*
+rm -r $casePath/CFD/clockData
+rm -r $casePath/CFD/*.dat
+rm -r $casePath/CFD/*.profile
+rm -r $casePath/CFD/octave/*.dat
+rm -r $casePath/CFD/octave/*.eps
+rm -r $casePath/CFD/octave/octave-workspace
+rm -r $casePath/CFD/processor*
+rm -r $casePath/CFD/VTK
+rm -r $casePath/CFD/volAvU
+rm -r $casePath/CFD/couplingFiles
+rm -r $casePath/CFD/particles
+rm -r $casePath/CFD/probe*
+rm -r $casePath/CFD/postProcess*
+rm -r $casePath/CFD/particleProbes
+rm -r $casePath/CFD/*Restart*
+rm -r $casePath/CFD/*restart*
+rm -r $casePath/CFD/fluidFlowStats.res
+rm -r $casePath/CFD/constant/polyMesh/*.gz
+rm -r $casePath/CFD/constant/polyMesh/faces
+rm -r $casePath/CFD/constant/polyMesh/neighbour
+rm -r $casePath/CFD/constant/polyMesh/owner
+rm -r $casePath/CFD/constant/polyMesh/points
+rm -r $casePath/CFD/constant/polyMesh/boundary
+rm -r $casePath/CFD/constant/polyMesh/sets
+rm -r $casePath/CFD/processor*
+rm -r $casePath/DEM/postParticles/*
+rm -r $casePath/DEM/postGlobal/*
+rm -r $casePath/DEM/post/*.*
+rm -r $casePath/DEM/post/restart/*.*
+rm -r $casePath/DEM/log.*
+rm -r $casePath/DEM/*Restart*
+rm -r $casePath/DEM/*restart*
+
+rm -r $casePath/CFD/pascal/0.*
+rm -r $casePath/CFD/pascal/1.*
+rm -r $casePath/CFD/pascal/2.*
+rm -r $casePath/CFD/codeInfo.*
+rm -r $casePath/CFD/*.dat
+
+echo "done"
+
+
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/parCFDDEMrun.sh b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/parCFDDEMrun.sh
new file mode 100755
index 0000000..6f12819
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/parCFDDEMrun.sh
@@ -0,0 +1,94 @@
+#!/bin/bash
+
+#===================================================================#
+# allrun script for testcase as part of test routine
+# run settlingTest CFD part
+# Christoph Goniva - May. 2011
+#===================================================================#
+
+#- source CFDEM env vars
+. ~/.bashrc
+
+#- include functions
+source $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/functions.sh
+
+#--------------------------------------------------------------------------------#
+#- define variables
+casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+logpath=$casePath
+headerText="run_parallel_cfdemSolverPisoSTM_packedBedTempParScale_CFDDEM"
+logfileName="log_$headerText"
+solverName="cfdemSolverPisoSTM"
+nrProcs="2"
+machineFileName="none" # yourMachinefileName | none
+debugMode="off" # on | off| strict
+testHarnessPath="$CFDEM_TEST_HARNESS_PATH"
+runOctave="true"
+postproc="false"
+cleanup="true"
+#--------------------------------------------------------------------------------#
+
+#- call function to run a parallel CFD-DEM case
+parCFDDEMrun $logpath $logfileName $casePath $headerText $solverName $nrProcs $machineFileName $debugMode
+
+#------------------------------#
+if [ $runOctave == "true" ]
+ then
+
+ #- change path
+ cd octave
+
+ #- rmove old graph
+ rm *.png
+
+ #- run octave
+ octave totalPressureDropAndNusselt.m
+
+ #- show plots
+ eog cfdemSolverPisoSTM_Nusselt.png &
+ eog cfdemSolverPisoSTM_pressureDrop.png
+ #------------------------------#
+
+ #- copy log file to test harness
+ cp ../../$logfileName $testHarnessPath
+ cp cfdemSolverPisoSTM_Nusselt.png $testHarnessPath
+ cp cfdemSolverPisoSTM_pressureDrop.png $testHarnessPath
+
+fi
+
+#-------------------------------------------------------#
+if [ $postproc == "true" ]
+ then
+
+ #- keep terminal open (if started in new terminal)
+ echo "simulation finished? ...press enter to proceed"
+ read
+
+ #- get VTK data from liggghts dump file
+ cd $casePath/DEM/post
+ python -i $CFDEM_LPP_DIR/lpp.py dump.liggghts_run
+
+ #- get VTK data from CFD sim
+ cd $casePath/CFD
+ foamToVTK #- serial run of foamToVTK
+ #source $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/functions.sh #- include functions
+ #pseudoParallelRun "foamToVTK" $nrPostProcProcessors #- pseudo parallel run of foamToVTK
+
+ #- start paraview
+ paraview
+
+ #- keep terminal open (if started in new terminal)
+ echo "...press enter to clean up case"
+ echo "press Ctr+C to keep data"
+ read
+fi
+
+#- clean up case
+if [ $cleanup == "true" ]
+ then
+ #- clean up case
+ keepDEMrestart="false"
+ cleanCFDEMcase $casePath/CFD $keepDEMrestart
+fi
+
+
diff --git a/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/parDEMrun.sh b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/parDEMrun.sh
new file mode 100755
index 0000000..660b45a
--- /dev/null
+++ b/tutorials/cfdemSolverPisoSTM/packedBedTempParScale/parDEMrun.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+#===================================================================#
+# DEMrun script for ErgunTestMPI testcase
+# init ErgunTestMPI
+# Daniel Queteschiner - June 2014
+#===================================================================#
+
+#- source CFDEM env vars
+. ~/.bashrc
+
+#- include functions
+source $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/functions.sh
+
+#--------------------------------------------------------------------------------#
+#- define variables
+casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+logpath="$casePath"
+headerText="run_liggghts_init_DEM"
+logfileName="log_$headerText"
+solverName="in.liggghts_init"
+nrProcs="2"
+machineFileName="none" # yourMachinefileName | none
+#--------------------------------------------------------------------------------#
+
+#- call function to run DEM case
+parDEMrun $logpath $logfileName $casePath $headerText $solverName $nrProcs $machineFileName
+
diff --git a/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/0/nut b/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/0/nut
index dcd36c8..bc53fb9 100644
--- a/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/0/nut
+++ b/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/0/nut
@@ -23,7 +23,7 @@ boundaryField
{
wall
{
- type nutWallFunction;
+ type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
diff --git a/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/constant/turbulenceProperties b/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/constant/turbulenceProperties
index dba43a7..a3dfd6b 100644
--- a/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/constant/turbulenceProperties
+++ b/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/constant/turbulenceProperties
@@ -15,8 +15,17 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-//simulationType RASModel;//LESModel; //OFversion24x
-simulationType laminar; //OFversion30x
+//simulationType RASModel;//OFversion24x
+simulationType RAS;//OFversion30x
+
+RAS
+{
+ RASModel kEpsilon;
+
+ turbulence on;
+
+ printCoeffs on;
+}
// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/octave/totalPressureDropAndNusselt.m b/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/octave/totalPressureDropAndNusselt.m
index 5471450..6aed5f0 100644
--- a/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/octave/totalPressureDropAndNusselt.m
+++ b/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/octave/totalPressureDropAndNusselt.m
@@ -48,7 +48,7 @@ title("Ergun pressure drop")
legend("analytical - Ergun","simulation")
%print('cfdemSolverPiso_settlingTest.eps','-deps2')
-print -color "cfdemSolverPisoScalar_pressureDrop.eps"
+print -color "cfdemSolverPisoScalar_pressureDrop.png"
%*********************************************************************%
% heat transfer
@@ -120,7 +120,7 @@ title("Nusselt nr")
legend("analytical - ","simulation")
%print('cfdemSolverPisoScalar_NusseltNr.eps','-deps2')
-print -color "cfdemSolverPisoScalar_Nusselt.eps"
+print -color "cfdemSolverPisoScalar_Nusselt.png"
figure(3)
plot(t_sim,Tin_sim,t_sim,Tout_sim)
@@ -128,5 +128,5 @@ title("inlet/outlet temperature")
legend("inlet","outlet")
%print('cfdemSolverPisoScalar_NusseltNr.eps','-deps2')
-print -color "cfdemSolverPisoScalar_temperatures.eps"
+print -color "cfdemSolverPisoScalar_temperatures.png"
diff --git a/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/system/controlDict b/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/system/controlDict
index 1b90a56..1995970 100644
--- a/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/system/controlDict
+++ b/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/system/controlDict
@@ -70,7 +70,7 @@ functions
);
// Fields to be probed
- fields ( p T);
+ fields ( p T );
// Write at same frequency as fields
outputControl timeStep;//outputTime;
diff --git a/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/system/fvSolution b/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/system/fvSolution
index 0c017ca..30a7cac 100644
--- a/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/system/fvSolution
+++ b/tutorials/cfdemSolverPisoScalar/packedBedTemp/CFD/system/fvSolution
@@ -41,6 +41,11 @@ solvers
relTol 0;
}
+ UFinal
+ {
+ $U
+ }
+
k
{
solver PBiCG;
@@ -72,7 +77,8 @@ solvers
tolerance 1e-05;
relTol 0;
}
- T
+
+ "(T|C)"
{
solver PBiCG;
preconditioner DILU;
@@ -89,5 +95,23 @@ PISO
pRefValue 0;
}
+PIMPLE
+{
+ nOuterCorrectors 1;
+}
+relaxationFactors
+{
+ fields
+ {
+ p 1.0;
+ }
+ equations
+ {
+ "U.*" 1.0;
+ "k.*" 1.;
+ "epsilon.*" 1.;
+ }
+}
+
// ************************************************************************* //
diff --git a/tutorials/cfdemSolverPisoScalar/packedBedTemp/DEM/in.liggghts_init b/tutorials/cfdemSolverPisoScalar/packedBedTemp/DEM/in.liggghts_init
index 10151d6..78cb9b6 100644
--- a/tutorials/cfdemSolverPisoScalar/packedBedTemp/DEM/in.liggghts_init
+++ b/tutorials/cfdemSolverPisoScalar/packedBedTemp/DEM/in.liggghts_init
@@ -1,8 +1,6 @@
echo both
log ../DEM/log.liggghts
-# Particle packing by insertion and successive growing of particles
-
atom_style granular
atom_modify map array
boundary m m m
@@ -44,8 +42,8 @@ fix zwalls2 all wall/gran model hertz tangential history primitive type 1 zp
fix gravi all gravity 9.81 vector 0.0 0.0 -1.0
# heat transfer
-fix ftco all property/global thermalConductivity peratomtype 5.
-fix ftca all property/global thermalCapacity peratomtype 10.
+fix ftco all property/global thermalConductivity peratomtype 5. # lambda in [W/(K*m)]
+fix ftca all property/global thermalCapacity peratomtype 10. # cp in [J/(kg*K)]
fix heattransfer all heat/gran initial_temperature 263.
# particle distributions and insertion
diff --git a/tutorials/cfdemSolverPisoScalar/packedBedTemp/DEM/in.liggghts_run b/tutorials/cfdemSolverPisoScalar/packedBedTemp/DEM/in.liggghts_run
index 8a69d82..3a8c668 100644
--- a/tutorials/cfdemSolverPisoScalar/packedBedTemp/DEM/in.liggghts_run
+++ b/tutorials/cfdemSolverPisoScalar/packedBedTemp/DEM/in.liggghts_run
@@ -49,10 +49,15 @@ fix ywalls2 all wall/gran model hertz tangential history primitive type 1 yp
fix zwalls1 all wall/gran model hertz tangential history primitive type 1 zplane 0.0
fix zwalls2 all wall/gran model hertz tangential history primitive type 1 zplane 1.1
+# cfd coupling
+fix cfd all couple/cfd couple_every 100 mpi
+fix cfd2 all couple/cfd/force
+
# heat transfer
fix ftco all property/global thermalConductivity peratomtype 5. # lambda in [W/(K*m)]
fix ftca all property/global thermalCapacity peratomtype 0.1 # cp in [J/(kg*K)]
+fix cfd3 all couple/cfd/convection T0 600
fix heattransfer all heat/gran initial_temperature 600.
# set particle temperature for the bed
@@ -60,13 +65,6 @@ run 0
region total block INF INF INF INF INF INF units box
set region total property/atom Temp 600.
-# cfd coupling
-fix cfd all couple/cfd couple_every 100 mpi
-fix cfd2 all couple/cfd/force
-
-# this one invokes heat transfer calculation, transfers per-particle temperature and adds convective heat flux to particles
-fix cfd3 all couple/cfd/convection T0 600
-
# apply nve integration to all particles that are inserted as single particles
fix integr all nve/sphere
@@ -77,6 +75,6 @@ thermo 1000
thermo_modify lost ignore norm no
compute_modify thermo_temp dynamic yes
-dump dmp all custom 100 ../DEM/post/dump.liggghts_run id type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius f_Temp[0] f_heatFlux[0]
+dump dmp all custom 20000 ../DEM/post/dump*.liggghts_run id type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius f_Temp[0] f_heatFlux[0]
run 0
diff --git a/tutorials/cfdemSolverPisoScalar/packedBedTemp/parCFDDEMrun.sh b/tutorials/cfdemSolverPisoScalar/packedBedTemp/parCFDDEMrun.sh
index 244dc21..ca0bbc5 100644
--- a/tutorials/cfdemSolverPisoScalar/packedBedTemp/parCFDDEMrun.sh
+++ b/tutorials/cfdemSolverPisoScalar/packedBedTemp/parCFDDEMrun.sh
@@ -39,20 +39,20 @@ if [ $runOctave == "true" ]
cd octave
#- rmove old graph
- rm *.eps
+ rm *.png
#- run octave
octave totalPressureDropAndNusselt.m
#- show plots
- evince cfdemSolverPisoScalar_Nusselt.eps &
- evince cfdemSolverPisoScalar_pressureDrop.eps
+ eog cfdemSolverPisoScalar_Nusselt.png &
+ eog cfdemSolverPisoScalar_pressureDrop.png
#------------------------------#
#- copy log file to test harness
cp ../../$logfileName $testHarnessPath
- cp cfdemSolverPisoScalar_Nusselt.eps $testHarnessPath
- cp cfdemSolverPisoScalar_pressureDrop.eps $testHarnessPath
+ cp cfdemSolverPisoScalar_Nusselt.png $testHarnessPath
+ cp cfdemSolverPisoScalar_pressureDrop.png $testHarnessPath
fi
@@ -86,18 +86,8 @@ fi
#- clean up case
if [ $cleanup == "true" ]
then
- echo "deleting data at: $casePath : \n"
- source $WM_PROJECT_DIR/bin/tools/CleanFunctions
- cd $casePath/CFD
- cleanCase
- rm -r $casePath/CFD/clockData
- rm $casePath/DEM/post/*.*
- #rm -r $casePath/DEM/post/restart/*.*
- echo "done"
-
- #- preserve post directory
- touch $casePath/DEM/post/.gitignore
- touch $casePath/DEM/post/restart/.gitignore
+ keepDEMrestart="false"
+ cleanCFDEMcase $casePath/CFD $keepDEMrestart
fi