- Open terminal.
- Type
cd CompuCell3D/. - Type
./twedit++.command. - Select 'CC3D project'.
- Choose 'Open project'.
- Click on the
.cc3dfile to open.
The project is now open in Twedit.
- Click on 'CC3D Python' on the top bar for prebuilt blocks of code.
- Remember to save your work using
Ctrl + SorCmd + S. - You can comment out parts of the code using
Ctrl + /orCmd + /.
- Right-click on the folder in the left section of Twedit.
- Select 'Open in Player'.
- Open terminal.
- Type
cd CompuCell3D/. - Type
./compucell3d.command. - Open the folder to run the simulation.
mcs: Time step of the simulation when the event starts.random.random(): Generates a number between 0.0 and 1.0. To make an event more likely, increase the threshold.cell.volume: Controls the size the cells must be for an event to happen.
Initial Position and Area of Cells:
- Found in the
UniformInitializerblock. - Example: To remove macrophages, comment out the corresponding code in
UniformInitializerof typeMAC.
Contact Energies Between Cells:
- Located in the
Contactblock. - Example: Setting the contact energy between
MediumandLUMto indicate non-attraction.
Adding a New Cell Type:
- Located in the
CellTypeblock. - Ensure to add respective values for its contact energies.
ConstraintInitializer Class:
- Sets target volume for each cell type.
- Change the coefficient multiplied by the constant (
cellVol) to adjust volumes.
BreastDuctSim Class:
- Contains code for the cell killer.
GrowthSteppable Class:
- Manages growth rate of cells, primarily
EPIcells. - Increase target volume increment to boost growth rate.
MitosisSteppable Class:
- Governs cell proliferation.
- Modify the proliferation rates as described in the initial notes.
CellMovementSteppable Class:
- Manages movement of
MACcells. - Refer to comments in the class for editing guidance.
PositionPlotSteppable Class:
- Used for testing
CellMovementSteppable. - Avoid editing as it doesn't impact the simulation.
FocalPointPlasticity Class:
- Intended for making
MEMimpermeable, but not used in current versions.
- Avoid editing unless adding new classes to the Python steppable file.