Skip to content

Commit

Permalink
adding TODOs and comments within simulation class
Browse files Browse the repository at this point in the history
  • Loading branch information
bhargavakula01 committed Jan 16, 2025
1 parent d3d1194 commit a1a1b72
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/simulation.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"""
This python script contains the class definition for running simulations
"""

import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))

#Relevant imports
from lib.Exceptions import SimulationCalcInputException
from lib.para import Box
Expand Down Expand Up @@ -109,7 +111,7 @@ def aqueous_mobility(self, value):

_IFT_ = 0
@property
def sigma(self):
def sigma(self): #TODO: Need to update to make sure that i calculate the concentration using the lambda function within the surfactant object
return self._IFT_

@sigma.setter
Expand All @@ -119,6 +121,9 @@ def sigma(self, value):
_is_surfactant_ = None
@property
def is_surfactant(self):
"""
This function differentiates whether the model is SP-Flooding or just polymer flooding
"""
if(self._is_surfactant_ is None):
if(self.surfactant.initial_concentration == 0):
self._is_surfactant_ = False
Expand Down

0 comments on commit a1a1b72

Please sign in to comment.