#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: CEF PNM Team
# License: TBD
# Copyright (c) 2012

#from __future__ import print_function

"""
module __GenericPhysics__: Base class to define pore scale physics
==================================================================

.. warning:: The classes of this module should be loaded through the 'PHYS.__init__.py' file.

"""

import OpenPNM
import scipy as sp
import numpy as np

class GenericPhysics(OpenPNM.BAS.OpenPNMbase):
    r"""


    """
    
    def __init__(self,net=OpenPNM.NET.GenericNetwork,**kwords):
        r"""
        Initialize
        """
        super(GenericPhysics,self).__init__(**kwords)
        self.indent = ""
        self._logger.debug("Construct class")
        self._net = net
        
    def Washburn(self):
        r'''
        this uses the Washburn equation to relate pore size to entry pressure
        '''
        self._net.throat_properties['Pc_entry'] = -4*0.072*np.cos(np.radians(105))/self._net.throat_properties['diameter']
        

if __name__ =="__main__":
    test = GenericPhysics(loggername="TestGenericPhys")
    test.run()
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: CEF PNM Team
# License: TBD
# Copyright (c) 2012

#from __future__ import print_function

"""
module __GenericPhysics__: Base class to define pore scale physics
==================================================================

.. warning:: The classes of this module should be loaded through the 'PHYS.__init__.py' file.

"""

import OpenPNM
import scipy as sp
import numpy as np

class GenericPhysics(OpenPNM.BAS.OpenPNMbase):
    r"""


    """
    
    def __init__(self,net=OpenPNM.NET.GenericNetwork,**kwords):
        r"""
        Initialize
        """
        super(GenericPhysics,self).__init__(**kwords)
        self.indent = ""
        self._logger.debug("Construct class")
        self._net = net
        
    def Washburn(self):
        self._net.throat_properties['Pc_entry'] = -4*0.072*np.cos(np.radians(105))/self._net.throat_properties['diameter']
        

if __name__ =="__main__":
    test = GenericPhysics(loggername="TestGenericPhys")
    test.run()
Revert "Updated docstring for the file (mostly to diagnose/solve a git branch/merge problem)"
Revert "Updated docstring for the file (mostly to diagnose/solve a git branch/merge problem)"

This reverts commit 3bcc40305193f3a46de63f4345812c9c2ee4c27f [formerly e2fe152ba58cfa853637bc5bd805adf0ae9617eb] [formerly 8e549c3bfb3650f08aca2ba204d2904e53aa4ab4].


Former-commit-id: e783ac4d5946403a9d608fe9dffa42212796b402
Former-commit-id: abafc2efec64a1e360594c18b203daa4ea0f7ced