- Index
- » Users
- » graush
- » Profile
Posts
Posts
Hi,
Thank you very much.
Best regards
GR
Hello everyone
I'm trying to get the BondLib library works in OpenModelica 1.9.0 but the components icons are only rendered by many squares with diagonals. One for each component that the model has.
I've managed to load it. Several of the included examples have correctly been carried out, both the check and the simulation processes.
I have tried changing "extends Modelica.Icons.Library" by "extends Modelica.Icons.Package" with unsuccessful results.
If someone could give me references of this integration, I'll be very grateful.
Thank you very much in advance
GR
Hi,
I am not an expert user in OM. I want to start with this simple model
model SpringWithMass "Point mass hanging on a spring"
extends Modelica.Icons.Example;
Modelica.Mechanics.MultiBody.Forces.Spring spring(s_unstretched = 0.2, m = 0.1, c = 4000, width = 0.1, massDiameter = 0.07) annotation(Placement(visible = true, transformation(origin = {10,30}, extent = {{-10,10},{10,-10}}, rotation = 270)));
Modelica.Mechanics.MultiBody.Parts.Body body(r_0(start = {0,-0.3,0}, fixed = true), v_0(fixed = true), angles_fixed = true, w_0_fixed = true, r_CM = {0,0,0}, m = 1) annotation(Placement(visible = true, transformation(origin = {10,-10}, extent = {{-10,10},{10,-10}}, rotation = 270)));
inner Modelica.Mechanics.MultiBody.World world(animateGravity = false) annotation(Placement(visible = true, transformation(origin = {-30.7092,59.2199}, extent = {{-10,-10},{10,10}}, rotation = 0)));
equation
connect(world.frame_b,spring.frame_a) annotation(Line(points = {{-20.7092,59.2199},{10,59.2199},{10,40}}));
connect(body.frame_a,spring.frame_b) annotation(Line(points = {{10,0},{10,10},{10,20}}, color = {95,95,95}, thickness = 0.5));
annotation(experiment(StopTime = 5), Documentation(info = "<html>
<p>
This example shows that a force component may have a mass.
The 3-dimensional spring as used in this example, has an optional
point mass between the two points where the spring is attached.
In the animation, this point mass is represented by a small,
light blue, sphere.
</p>
<p align=\"center\">
<IMG SRC=\"../Images/MultiBody/Examples/Elementary/SpringWithMass.png\"
ALT=\"model Examples.Elementary.SpringWithMass\">
</p>
</html>"));
end SpringWithMass;
but the simulation , initially fixed to arrive up to 5 sec , but finished at 0.01 sec without error message.
I couldn't figure out what's happend?
Anybody could give me a clue?
Thanks,
Gustavo
Hi,
The latest nightly build solved the problem.
Thanks a lot.
GR
Hi
I am really pleasure if someone could help me in the OpenModelica installation.
After a successful OM setup, I just started with the tutorials, but unfortunatly I wasn't be able to continue due to the following problem.
I couldn't simulate the dcmotor model in OM1.8.0. because the system rejects with the following message:
>> simulate(dcmotor, startTime=0, stopTime=1, numberOfIntervals=500, tolerance=1e-4, method="dassl", outputFormat="mat")
record SimulationResult
resultFile = "",
simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 0.0001, method = 'dassl', fileNamePrefix = 'dcmotor', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = ''",
messages = "Simulation failed for model: dcmotor
Error: Error building simulator. Buildlog: El sistema no puede hallar la ruta especificada.
gcc -O3 -falign-functions -msse2 -mfpmath=sse -I\"C:/OpenModelica1.8.0/include/omc\" -I. -L\"C:/OpenModelica1.8.0/share/doc/omc/testmodels\" -c -o dcmotor.o dcmotor.c
\"gcc\" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
OpenModelica1.8.0\\MinGW\\bin\\mingw32-make: *** [dcmotor.o] Error 1
",
timeFrontend = 0.0,
timeBackend = 0.0,
timeSimCode = 0.0,
timeTemplates = 0.0,
timeCompile = 0.0,
timeSimulation = 0.0,
timeTotal = 0.0
end SimulationResult;
The host system is an WXP-SP3 with OM1.8.0.
Before to the simulation command, the model "dcmotor.mo" available at "C:/OpenModelica1.8.0/share/doc/omc/testmodels/dcmotor.mo" was successfully flattened.
I tried modifying the System Variables and also has been carried out command compilation from console terminal. In that case, the message was,
>mingw32-make dcmotor
cc dcmotor.c -o dcmotor
process_begin: CreateProcess(NULL, cc dcmotor.c -o dcmotor, ...) failed.
make (e=2): El sistema no puede hallar el archivo especificado.
mingw32-make: *** [dcmotor] Error 2
Could anyone help me with some clue?
Thanks.
Gus
- Index
- » Users
- » graush
- » Profile