Valve simulation for an single cylinder engine

I have a Single cylinder engine model properly simulated with the crank angle and piston movement. Now i am supposed to add the intake and exhaust valves and make them move according to the values observed ( valve movement with respect to crank angle.) could somebody help me how i can do that . i want to integrate the valve movement in the same mechanism .
thanks in advance

1 Answer

what type of engine model do you have? 4s or 2s? bcoz the valve timing will be changed in two stroke engine.
I think using 'cam mating' of cam and crankshaft with proper rpm and gear ratio,you can solve it
Can you please upload the engine model?