Skip to content

Concentration clamp with non-diffusing molecule #29

@jczech

Description

@jczech

If you have a molecule with a diffusion constant of zero which is applied to a concentration clamp, MCell will produce the following (unhelpful) error message:

Error: Failed to parse input file

Here's an MDL that produces this error:

ITERATIONS = 1
TIME_STEP = 1e-6

DEFINE_MOLECULES { vol1 { DIFFUSION_CONSTANT_3D = 0 } }

DEFINE_SURFACE_CLASSES { Surface_Class { CLAMP_CONCENTRATION vol1; = 1e-5 } }

Plane POLYGON_LIST {
  VERTEX_LIST {
    [ -0.899999976158142, -0.899999976158142, 0 ]
    [ 0.899999976158142, -0.899999976158142, 0 ]
    [ -0.899999976158142, 0.899999976158142, 0 ]
    [ 0.899999976158142, 0.899999976158142, 0 ]
  }
  ELEMENT_CONNECTIONS {
    [ 1, 2, 0 ]
    [ 1, 3, 2 ]
  }
}

MODIFY_SURFACE_REGIONS { Plane[ALL] { SURFACE_CLASS = Surface_Class } }

INSTANTIATE Scene OBJECT
{
  Plane OBJECT Plane {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions