コード例 #1
0
ファイル: momentum.py プロジェクト: pf4d/cslvr
	def initialize(self, model, solve_params=None,
		             linear=False, use_lat_bcs=False,
		             use_pressure_bc=True, **kwargs):
		"""
		Here we set up the problem, and do all of the differentiation and
		memory allocation type stuff.  Note that any Momentum object *must*
		call this method.  See the existing child Momentum objects for reference.
		"""
		raiseNotDefined()
コード例 #2
0
 def initialize(self,
                model,
                solve_params=None,
                linear=False,
                use_lat_bcs=False,
                use_pressure_bc=True):
     """ 
 Here we set up the problem, and do all of the differentiation and
 memory allocation type stuff.  Note that any Momentum object *must*
 call this method.  See the existing child Momentum objects for reference.
 """
     raiseNotDefined()
コード例 #3
0
ファイル: momentum.py プロジェクト: pf4d/cslvr
	def get_velocity(self):
		"""
		Return the velocity :math:`\underline{u}`.
		"""
		raiseNotDefined()
コード例 #4
0
ファイル: physics.py プロジェクト: pf4d/cslvr
	def update_model_var(self, u, annotate=False):
		"""
		Update the appropriate unknown variable in ``self.model`` to ``u``.
		"""
		raiseNotDefined()
コード例 #5
0
ファイル: physics.py プロジェクト: pf4d/cslvr
	def get_Lam(self):
		"""
		Return the adjoint function for ``self.U``.
		"""
		raiseNotDefined()
コード例 #6
0
 def solve(self, annotate=False, params=None):
     """ 
 Perform the Newton solve of the momentum equations 
 """
     raiseNotDefined()
コード例 #7
0
 def get_Lam(self):
     """
 Return the adjoint function for U.
 """
     raiseNotDefined()
コード例 #8
0
 def get_Phi(self):
     """
 Return the test function for U.
 """
     raiseNotDefined()
コード例 #9
0
 def get_dU(self):
     """
 Return the trial function for U.
 """
     raiseNotDefined()
コード例 #10
0
 def get_U(self):
     """
 Return the velocity Function.
 """
     raiseNotDefined()
コード例 #11
0
 def get_residual(self):
     """
 Returns the momentum residual.
 """
     raiseNotDefined()