[SPICE] N-MOS simulation problem

Hello,
I would like to simulate a schematic with a N-MOS (BSS138), but I have some problems and so, some questions:
The simulation is not working as I was expectecting for.

  • When I put the component, I observe the spice model is “Transistor bipolaire”; su, I put “MOSFET”. Why it was not “MOSFET” (does it means there is a problem with the MOSFET model?)
    Then, the Library field is empty; I do not know what to put inside;where can I found the models ?

Is there a document which explain how it works? A doc. how to configure that ?

Thank you.

Here is the model I found (for this component)

\#
\# BSS138
\#
DEF BSS138 Q 0 0 Y N 1 F N
F0 "Q" 200 75 50 H V L CNN
F1 "BSS138" 200 0 50 H V L CNN
F2 "TO_SOT_Packages_SMD:SOT-23" 200 -75 50 H I L CIN
F3 "" 0 0 50 H I L CNN
ALIAS 2N7002 TP0610T VP0610T
$FPLIST
 SOT?23*
$ENDFPLIST
DRAW
C 65 0 111 0 1 10 N
C 100 -70 11 0 1 0 F
C 100 70 11 0 1 0 F
P 2 0 1 0 30 -70 100 -70 N
P 2 0 1 10 30 -50 30 -90 N
P 2 0 1 0 30 0 100 0 N
P 2 0 1 10 30 20 30 -20 N
P 2 0 1 0 30 70 100 70 N
P 2 0 1 10 30 90 30 50 N
P 2 0 1 0 100 -70 100 -100 N
P 2 0 1 0 100 -70 100 0 N
P 2 0 1 0 100 100 100 70 N
P 3 0 1 10 10 75 10 -75 10 -75 N
P 4 0 1 0 90 0 50 -15 50 15 90 0 F
P 4 0 1 0 100 -70 130 -70 130 70 100 70 N
P 4 0 1 0 110 -20 115 -15 145 -15 150 -10 N
P 4 0 1 0 130 -15 115 10 145 10 130 -15 N
X G 1 -200 0 210 R 50 50 1 1 I
X S 2 100 -200 100 U 50 50 1 1 P
X D 3 100 200 100 D 50 50 1 1 P
ENDDRAW
ENDDEF

maybe this helps?

Thank. This help me,but I still have some problems.
I downloades another model from bss138 and placed it in the component’s spice lib.
But during the simulation, there is a message :
Error on line 11 :
mq2 net-q2-pad1 net-q2-pad2 net-c1-pad1 md
Unable to find definition of model - default assumed

I think that means itdoes not found the model in the libray, so it takes a default model. Am I right ?
So, what do I have to do ?
I do not know if i have to put a spice directive like on some others software ?
like that :slight_smile:https://ashwith.files.wordpress.com/2010/09/diode2.png