Examples#
Welcome to CG’s examples library! On this page, you should be able to find a wide array of example scripts for a variety of purposes. Look out for the tags on each example to see what fits your use case, existing knowledge, and time frame.
Using CG#
Learn the basics of CG while taking a model of galaxy cluster Abell 133 all the way from literature to RAMSES simulation. This guide will show you the basic pipeline from analytical profiles to actually running a simulation.
Learn the is and outs of CG’s non-Newtonian gravitational theories in this step by step guide for producing MONDian simulations.
Learn how to pull cluster models directly from literature using the
collection
module.
Learn about the ins and outs of virialization in CG’s initial conditions.
In this guide, we consider the cluster A133 and its analytical model, which is non-physical in certain radii. We show the tools available for correcting these issues.
Code Guides - Going From Code To Science#
In this guide, we show you how to run a simulation in RAMSES from CG models.
In this guide, we show you how to run a simulation in GADGET from CG models.
In this guide, we show you how to run a simulation in ATHENA from CG models.
In this guide, we show you how to run a simulation in GIZMO from CG models.
In this guide, we show you how to run a simulation in FLASH from CG models.
Beyond CG - External Packages#
In this guide, we’ll discuss using CG with the YT package.
In this guide, we’ll discuss using CG with the pynbody package.
In this guide, we’ll discuss using CG with the PyXSIM package.
Developing in CG#
In this guide, we show you how to run a simulation in RAMSES from CG models.