Can I assign varying space charge distribution (like y=kx) varying with respect to thickness (and not with respect to time) in COMSOL? i.e in 2D model. If any body give answer appreciated !!!!
You can make a new variable in definitions, and relate that to either spatial coordinates, or to the thickness if you have it as a variable already. If you don't, you can get that thickness by operating with the features used to define the geometry.
Be careful if the property you're using to define the variable changes with time, because then you'll get an error if you use it under 'definitions', and will need to define your variable as an ODE, as if it were another physics.