Coder Social home page Coder Social logo

Comments (7)

3rav avatar 3rav commented on August 28, 2024 1

Thank you very much, I wrote to Mr. Guido regarding this typo.

from calculix-examples.

mkraska avatar mkraska commented on August 28, 2024 1

The problem could be solved by making "dat2txt.py" accepting "for set" as well as "forset".
Removing the space character after "for" in line 11 of dat2txt.py should do the trick.

pH = re.compile(' (.+) for .*set\s(\S+) and time (.+)')

However, I don't remember why I didn't just ask for "for set". If I find time to do tests I'll see if the trick works without side effects. Let me know if the fix is safe.

from calculix-examples.

mkraska avatar mkraska commented on August 28, 2024

Could you please provide an example input and the .dat-file you generate? (The link in your post doesn't work)

Is the problem in dat2txt not extracting data which actually are in the .dat file?
Or are the data missing in .dat already?

as to a) What would you expect? There is no point in summing up element strains.
as to b) What are you expecting for the totals of E and U?
as to c) Thanks for the feedback, never tested dat2txt with SDV requests. Good to hear that it works.

from calculix-examples.

3rav avatar 3rav commented on August 28, 2024

Hi Martin,

I want the program dat2txt to create a file (for E in *EL PRINT) strain elem, integ.pnt., exx, eyy, ezz, exy, exz, eyz_XYZ (as for S in *EL PRINT) from the .dat file.

My inputs (.inp, .fbd, .dat):
inputs.zip

from calculix-examples.

oldninja avatar oldninja commented on August 28, 2024

Hi 3rav,

There is a typo on the Fortran subroutine that prints the *.dat file - the strains line has the word "forset" together as one word, as opposed to "for set" (two separate words).
Look at line 30 of your *.dat file.
You can edit the Fortran subroutine in ccx to address this and recompile.

Dummy

Looking at ccx_2.15, the Fortran file should be "printout.f" and lines should be 252 and 283:
Strains
You can edit these two lines and recompile. Then test with the dat2txt script :)

Thanks,

from calculix-examples.

oldninja avatar oldninja commented on August 28, 2024

Hi Dr. Kraska,
That's a good point. I went the other way, trying to fix the typo in the source code, because I thought others may use their own scripts and maybe were not getting the right information. I also contacted Dr. Dhondt to let him know about it.
So far the fix in the ccx source code works great with your "dat2txt.py" script. Thanks for your work!

from calculix-examples.

mkraska avatar mkraska commented on August 28, 2024

That's open source community at it's best! Let's hope that your fix finds it's way into the official CCX release.

from calculix-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.