Skip to content

Two Problems In Conductivity Calculation #25

@RiverEric

Description

@RiverEric

Hi Mike, thank you for the great code! I met two problems when calculating conductivity.

The first is in calcCond.py, it seems that the function: clacJ(self, jx, jy, jz, dt, tsjump, firstpoint,ver) will never use the variable 'firstpoint', which is the GKC_Skip.

The second one is in calcDiffusivity.py. I got a extreme low conductivity because of one negative diffusivity of component. It seems that the maximum possible value of firststep is the len(lnMSD) -1 ( = len( MSD ) -2 since lnMSD = np.log(MSD[1:]) ). Considering len(Time ) = len(MSD), the number of possible i in line 77( for i in range(int(firststep), len(Time)):) is at least 2, which will make the if statement in line 81( if len(calctime)==1:) never be true. Will it be better if change the for loop to be " for i in range(int(firststep)+1, len(Time)): "?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions