Skip to content

Commit 093c4ed

Browse files
authored
Merge pull request #158 from MathCancer/development
Official 1.12.0 release
2 parents 1a56003 + 5b071a8 commit 093c4ed

113 files changed

Lines changed: 7554 additions & 1975 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BioFVM/BioFVM_vector.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,4 +498,22 @@ void vector3_to_list( const std::vector<double>& vect , char*& buffer , char del
498498
return;
499499
}
500500

501+
double dot_product( std::vector<double>& a , std::vector<double>& b )
502+
{
503+
double out = 0.0;
504+
for( unsigned int i=0 ; i < a.size() ; i++ )
505+
{ out += ( a[i] * b[i] ); }
506+
return out;
507+
}
508+
509+
std::vector<double> cross_product( std::vector<double>& a , std::vector<double>& b )
510+
{
511+
std::vector<double> out( 3, 0.0 );
512+
out[0] = a[1]*b[2] - a[2]*b[1];
513+
out[1] = a[2]*b[0] - a[0]*b[2];
514+
out[2] = a[0]*b[1] - a[1]*b[0];
515+
516+
return out;
517+
}
518+
501519
};

BioFVM/BioFVM_vector.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ void vector_to_list( const std::vector<double>& vect , char*& buffer , char deli
141141

142142
void vector3_to_list( const std::vector<double>& vect , char*& buffer , char delim );
143143

144+
double dot_product( std::vector<double>& a , std::vector<double>& b );
145+
std::vector<double> cross_product( std::vector<double>& a , std::vector<double>& b );
146+
144147
};
145148

146149
#endif

CITATION.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
If you use PhysiCell in your project, please cite PhysiCell and the version
22
number, such as below:
33

4-
We implemented and solved the model using PhysiCell (Version 1.11.0) [1].
4+
We implemented and solved the model using PhysiCell (Version 1.12.0) [1].
55

66
[1] A Ghaffarizadeh, R Heiland, SH Friedman, SM Mumenthaler, and P Macklin,
77
PhysiCell: an Open Source Physics-Based Cell Simulator for Multicellu-
@@ -11,7 +11,7 @@ We implemented and solved the model using PhysiCell (Version 1.11.0) [1].
1111
Because PhysiCell extensively uses BioFVM, we suggest you also cite BioFVM
1212
as below:
1313

14-
We implemented and solved the model using PhysiCell (Version 1.11.0) [1],
14+
We implemented and solved the model using PhysiCell (Version 1.12.0) [1],
1515
with BioFVM [2] to solve the transport equations.
1616

1717
[1] A Ghaffarizadeh, R Heiland, SH Friedman, SM Mumenthaler, and P Macklin,

Makefile

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ BioFVM_utilities.o BioFVM_basic_agent.o BioFVM_MultiCellDS.o BioFVM_agent_contai
4242

4343
PhysiCell_core_OBJECTS := PhysiCell_phenotype.o PhysiCell_cell_container.o PhysiCell_standard_models.o \
4444
PhysiCell_cell.o PhysiCell_custom.o PhysiCell_utilities.o PhysiCell_constants.o PhysiCell_basic_signaling.o \
45-
PhysiCell_signal_behavior.o
45+
PhysiCell_signal_behavior.o PhyisiCell_rules.o
4646

4747
PhysiCell_module_OBJECTS := PhysiCell_SVG.o PhysiCell_pathology.o PhysiCell_MultiCellDS.o PhysiCell_various_outputs.o \
4848
PhysiCell_pugixml.o PhysiCell_settings.o PhysiCell_geometry.o
@@ -73,7 +73,7 @@ name:
7373
list-projects:
7474
@echo "Sample projects: template biorobots-sample cancer-biorobots-sample cancer-immune-sample"
7575
@echo " celltypes3-sample heterogeneity-sample pred-prey-farmer virus-macrophage-sample"
76-
@echo " worm-sample interaction-sample mechano-sample"
76+
@echo " worm-sample interaction-sample mechano-sample rules-sample"
7777
@echo ""
7878
@echo "Sample intracellular projects: ode-energy-sample physiboss-cell-lines-sample cancer-metabolism-sample"
7979
@echo ""
@@ -171,6 +171,24 @@ interaction-sample:
171171
cp ./config/PhysiCell_settings.xml ./config/PhysiCell_settings-backup.xml
172172
cp ./sample_projects/interactions/config/* ./config/
173173

174+
mechano-sample:
175+
cp ./sample_projects/mechano/custom_modules/* ./custom_modules/
176+
touch main.cpp && cp main.cpp main-backup.cpp
177+
cp ./sample_projects/mechano/main.cpp ./main.cpp
178+
cp Makefile Makefile-backup
179+
cp ./sample_projects/mechano/Makefile .
180+
cp ./sample_projects/mechano/config/* ./config/
181+
182+
rules-sample:
183+
cp ./sample_projects/rules_sample/custom_modules/* ./custom_modules/
184+
touch main.cpp && cp main.cpp main-backup.cpp
185+
cp ./sample_projects/rules_sample/main.cpp ./main.cpp
186+
cp Makefile Makefile-backup
187+
cp ./sample_projects/rules_sample/Makefile .
188+
cp ./config/PhysiCell_settings.xml ./config/PhysiCell_settings-backup.xml
189+
cp ./sample_projects/rules_sample/config/* ./config/
190+
191+
174192
# ---- intracellular projects
175193
ode-energy-sample:
176194
cp ./sample_projects_intracellular/ode/ode_energy/custom_modules/* ./custom_modules/
@@ -208,13 +226,6 @@ cancer-metabolism-sample:
208226
cp ./config/PhysiCell_settings.xml ./config/PhysiCell_settings-backup.xml
209227
cp ./sample_projects_intracellular/fba/cancer_metabolism/config/* ./config/
210228

211-
mechano-sample:
212-
cp ./sample_projects/mechano/custom_modules/* ./custom_modules/
213-
touch main.cpp && cp main.cpp main-backup.cpp
214-
cp ./sample_projects/mechano/main.cpp ./main.cpp
215-
cp Makefile Makefile-backup
216-
cp ./sample_projects/mechano/Makefile .
217-
cp ./sample_projects/mechano/config/* ./config/
218229

219230
# early examples for convergence testing
220231

@@ -273,6 +284,9 @@ PhysiCell_constants.o: ./core/PhysiCell_constants.cpp
273284
PhysiCell_signal_behavior.o: ./core/PhysiCell_signal_behavior.cpp
274285
$(COMPILE_COMMAND) -c ./core/PhysiCell_signal_behavior.cpp
275286

287+
PhysiCell_rules.o: ./core/PhysiCell_rules.cpp
288+
$(COMPILE_COMMAND) -c ./core/PhysiCell_rules.cpp
289+
276290
# BioFVM core components (needed by PhysiCell)
277291

278292
BioFVM_vector.o: ./BioFVM/BioFVM_vector.cpp
@@ -451,3 +465,7 @@ load:
451465
cp ./user_projects/$(PROJ)/Makefile .
452466
cp ./user_projects/$(PROJ)/config/* ./config/
453467
cp ./user_projects/$(PROJ)/custom_modules/* ./custom_modules/
468+
469+
list-user-projects:
470+
@echo "user projects::"
471+
@cd ./user_projects && ls -dt1 * | grep . | sed 's!empty.txt!!'

0 commit comments

Comments
 (0)